From 1302b29b14d2765d16efcc589f0600fcc9295246 Mon Sep 17 00:00:00 2001 From: Eastman Date: Wed, 23 Aug 2023 13:17:45 +0300 Subject: [PATCH] Generated beta models and request builders (#319) * Update generated files with build 123456 * Add multipart dependecy * Fix admin window * Update changelog --------- Co-authored-by: Microsoft Graph DevX Tooling Co-authored-by: rkodev <43806892+rkodev@users.noreply.github.com> --- CHANGELOG.md | 6 + ...file_card_property_item_request_builder.go | 23 +- ...profile_card_properties_request_builder.go | 16 +- admin/people_request_builder.go | 9 +- ...esource_connection_item_request_builder.go | 8 +- ...ts_updatable_asset_item_request_builder.go | 14 +- .../item_get_member_groups_request_builder.go | 4 +- ...tem_participants_invite_request_builder.go | 6 +- ...ings_get_all_recordings_request_builder.go | 86 +++ ...ne_meetings_get_all_recordings_response.go | 88 +++ ...ngs_get_all_transcripts_request_builder.go | 86 +++ ...e_meetings_get_all_transcripts_response.go | 88 +++ ...ngs_call_recording_item_request_builder.go | 9 +- ...recordings_item_content_request_builder.go | 8 +- ...eetings_item_recordings_request_builder.go | 6 +- ...tings_item_registration_request_builder.go | 6 +- ...tem_virtual_appointment_request_builder.go | 170 ----- ...ngs_online_meeting_item_request_builder.go | 4 - app/online_meetings_request_builder.go | 8 + .../item_get_member_groups_request_builder.go | 4 +- .../item_owners_ref_request_builder.go | 6 +- applications/item_owners_request_builder.go | 6 +- ...ations_with_unique_name_request_builder.go | 167 ++++ ..._item_get_member_groups_request_builder.go | 4 +- ...ecords_call_record_item_request_builder.go | 6 +- ...l_records_item_sessions_request_builder.go | 6 +- .../call_records_request_builder.go | 6 +- ...tem_participants_invite_request_builder.go | 6 +- ...ings_get_all_recordings_request_builder.go | 86 +++ ...ne_meetings_get_all_recordings_response.go | 88 +++ ...ngs_get_all_transcripts_request_builder.go | 86 +++ ...e_meetings_get_all_transcripts_response.go | 88 +++ ...ngs_call_recording_item_request_builder.go | 9 +- ...recordings_item_content_request_builder.go | 8 +- ...eetings_item_recordings_request_builder.go | 6 +- ...tings_item_registration_request_builder.go | 6 +- ...tem_virtual_appointment_request_builder.go | 170 ----- ...ngs_online_meeting_item_request_builder.go | 4 - .../online_meetings_request_builder.go | 8 + .../item_get_member_groups_request_builder.go | 4 +- .../item_get_member_groups_request_builder.go | 4 +- ...vice_setting_state_item_request_builder.go | 6 +- ...g_device_setting_states_request_builder.go | 6 +- ...lk_reprovision_cloud_pc_request_builder.go | 2 + ...s_bulk_restore_cloud_pc_request_builder.go | 2 + ...em_reprovision_cloud_pc_request_builder.go | 2 + ...s_item_restore_cloud_pc_request_builder.go | 2 + ...ance_setting_state_item_request_builder.go | 6 +- ...mpliance_setting_states_request_builder.go | 6 +- ...lk_reprovision_cloud_pc_request_builder.go | 2 + ...s_bulk_restore_cloud_pc_request_builder.go | 2 + ...em_reprovision_cloud_pc_request_builder.go | 2 + ...s_item_restore_cloud_pc_request_builder.go | 2 + ...t_device_information_post_request_body.go} | 68 +- ...ent_device_information_request_builder.go} | 30 +- devicemanagement/reports_request_builder.go | 6 +- ..._cloud_p_cs_bulk_resize_request_builder.go | 2 + .../item_get_member_groups_request_builder.go | 4 +- ..._item_get_member_groups_request_builder.go | 4 +- ..._item_get_member_groups_request_builder.go | 4 +- .../item_get_member_groups_request_builder.go | 4 +- .../item_get_member_groups_request_builder.go | 4 +- .../item_get_member_groups_request_builder.go | 4 +- .../item_get_member_groups_request_builder.go | 4 +- domains/domain_item_request_builder.go | 4 + ...item_promote_to_initial_request_builder.go | 60 ++ ...item_items_item_restore_request_builder.go | 4 +- ...item_task_changes_count_request_builder.go | 64 ++ ...eplies_item_task_changes_count_response.go | 110 +++ ...nges_item_at_with_index_request_builder.go | 69 ++ ...plies_item_task_changes_request_builder.go | 151 ++++ ...cument_task_change_item_request_builder.go | 155 ++++ ...plies_item_task_comment_request_builder.go | 89 +-- ...ment_task_changes_count_request_builder.go | 64 ++ ...ask_comment_task_changes_count_response.go | 110 +++ ...nges_item_at_with_index_request_builder.go | 69 ++ ...sk_comment_task_changes_request_builder.go | 151 ++++ ...cument_task_change_item_request_builder.go | 155 ++++ ..._item_task_comment_task_request_builder.go | 159 ++++ ..._item_replies_item_task_request_builder.go | 163 ++++ ...book_comment_reply_item_request_builder.go | 4 + ...item_task_changes_count_request_builder.go | 64 ++ ...mments_item_task_changes_count_response.go | 110 +++ ...nges_item_at_with_index_request_builder.go | 69 ++ ...ments_item_task_changes_request_builder.go | 151 ++++ ...cument_task_change_item_request_builder.go | 155 ++++ ...k_comment_replies_count_request_builder.go | 76 ++ ...item_task_changes_count_request_builder.go | 64 ++ ...eplies_item_task_changes_count_response.go | 110 +++ ...nges_item_at_with_index_request_builder.go | 69 ++ ...plies_item_task_changes_request_builder.go | 151 ++++ ...cument_task_change_item_request_builder.go | 155 ++++ ...mment_replies_item_task_request_builder.go | 159 ++++ ...em_task_comment_replies_request_builder.go | 147 ++++ ...book_comment_reply_item_request_builder.go | 159 ++++ ...ments_item_task_comment_request_builder.go | 159 ++++ ...book_comments_item_task_request_builder.go | 163 ++++ ...s_workbook_comment_item_request_builder.go | 4 + ...rkbook_names_item_range_request_builder.go | 6 +- ...ook_tables_item_columns_request_builder.go | 2 +- ...item_charts_item_series_request_builder.go | 2 +- ..._worksheets_item_charts_request_builder.go | 2 +- ...s_item_names_item_range_request_builder.go | 6 +- ...tem_tables_item_columns_request_builder.go | 2 +- ...sheets_item_tasks_count_request_builder.go | 64 ++ ...ok_worksheets_item_tasks_count_response.go | 110 +++ ...asks_item_at_with_index_request_builder.go | 69 ++ ...asks_item_changes_count_request_builder.go | 64 ++ ..._item_tasks_item_changes_count_response.go | 110 +++ ...nges_item_at_with_index_request_builder.go | 69 ++ ...item_tasks_item_changes_request_builder.go | 151 ++++ ...cument_task_change_item_request_builder.go | 155 ++++ ...m_comment_replies_count_request_builder.go | 76 ++ ...item_task_changes_count_request_builder.go | 64 ++ ...eplies_item_task_changes_count_response.go | 110 +++ ...nges_item_at_with_index_request_builder.go | 69 ++ ...plies_item_task_changes_request_builder.go | 151 ++++ ...cument_task_change_item_request_builder.go | 155 ++++ ...mment_replies_item_task_request_builder.go | 159 ++++ ...ks_item_comment_replies_request_builder.go | 147 ++++ ...book_comment_reply_item_request_builder.go | 159 ++++ ...item_tasks_item_comment_request_builder.go | 163 ++++ ...ment_task_changes_count_request_builder.go | 64 ++ ...tem_comment_task_changes_count_response.go | 110 +++ ...nges_item_at_with_index_request_builder.go | 69 ++ ...em_comment_task_changes_request_builder.go | 151 ++++ ...cument_task_change_item_request_builder.go | 155 ++++ ...tasks_item_comment_task_request_builder.go | 159 ++++ ...k_worksheets_item_tasks_request_builder.go | 151 ++++ ...book_document_task_item_request_builder.go | 163 ++++ ...tem_workbook_worksheets_request_builder.go | 2 +- ...workbook_worksheet_item_request_builder.go | 4 + ...tem_assignment_settings_request_builder.go | 4 +- ...s_education_module_item_request_builder.go | 23 +- ...s_item_modules_item_pin_request_builder.go | 7 +- ...em_modules_item_publish_request_builder.go | 7 +- ...on_module_resource_item_request_builder.go | 23 +- ..._modules_item_resources_request_builder.go | 16 +- ...set_up_resources_folder_request_builder.go | 7 +- ...item_modules_item_unpin_request_builder.go | 7 +- .../classes_item_modules_request_builder.go | 16 +- ...try_data_connector_item_request_builder.go | 20 +- ...ry_data_data_connectors_request_builder.go | 14 +- ...flows_inbound_flow_item_request_builder.go | 20 +- ...stry_data_inbound_flows_request_builder.go | 8 +- ...companies_item_accounts_request_builder.go | 11 + ...m_aged_accounts_payable_request_builder.go | 11 + ...ged_accounts_receivable_request_builder.go | 11 + ...tem_company_information_request_builder.go | 11 + ..._item_countries_regions_request_builder.go | 11 + ...mpanies_item_currencies_request_builder.go | 11 + ...s_item_customer_picture_request_builder.go | 11 + ..._item_customer_payments_request_builder.go | 11 + ...stomer_payment_journals_request_builder.go | 11 + ...s_item_customer_picture_request_builder.go | 11 + ..._item_customer_payments_request_builder.go | 11 + ..._customers_item_picture_request_builder.go | 11 + ...ompanies_item_customers_request_builder.go | 11 + ...s_item_dimension_values_request_builder.go | 11 + ...s_item_dimension_values_request_builder.go | 11 + ...mpanies_item_dimensions_request_builder.go | 11 + ..._employees_item_picture_request_builder.go | 11 + ...ompanies_item_employees_request_builder.go | 11 + ..._general_ledger_entries_request_builder.go | 11 + ...es_item_item_categories_request_builder.go | 11 + ...item_items_item_picture_request_builder.go | 11 + .../companies_item_items_request_builder.go | 11 + ...nies_item_journal_lines_request_builder.go | 11 + ...nals_item_journal_lines_request_builder.go | 11 + ...companies_item_journals_request_builder.go | 11 + ...es_item_payment_methods_request_builder.go | 11 + ...nies_item_payment_terms_request_builder.go | 11 + .../companies_item_picture_request_builder.go | 11 + ...lines_item_item_picture_request_builder.go | 11 + ...lines_item_item_picture_request_builder.go | 11 + ...ces_item_vendor_picture_request_builder.go | 11 + ..._item_purchase_invoices_request_builder.go | 11 + ...lines_item_item_picture_request_builder.go | 11 + ...s_item_customer_picture_request_builder.go | 11 + ...lines_item_item_picture_request_builder.go | 11 + ...item_sales_credit_memos_request_builder.go | 11 + ...lines_item_item_picture_request_builder.go | 11 + ...s_item_customer_picture_request_builder.go | 11 + ...lines_item_item_picture_request_builder.go | 11 + ...ies_item_sales_invoices_request_builder.go | 11 + ...lines_item_item_picture_request_builder.go | 11 + ...s_item_customer_picture_request_builder.go | 11 + ...lines_item_item_picture_request_builder.go | 11 + ...anies_item_sales_orders_request_builder.go | 11 + ...lines_item_item_picture_request_builder.go | 11 + ...s_item_customer_picture_request_builder.go | 11 + ...lines_item_item_picture_request_builder.go | 11 + ...anies_item_sales_quotes_request_builder.go | 11 + ...s_item_shipment_methods_request_builder.go | 11 + ...ompanies_item_tax_areas_request_builder.go | 11 + ...s_item_units_of_measure_request_builder.go | 11 + ...em_vendors_item_picture_request_builder.go | 11 + .../companies_item_vendors_request_builder.go | 11 + financials/companies_request_builder.go | 11 + go.mod | 1 + go.sum | 3 + graph_base_service_client.go | 12 + graph_request_adapter.go | 3 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...ar_view_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ..._events_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...ar_view_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...tions_conversation_item_request_builder.go | 6 +- ...item_threads_item_reply_request_builder.go | 6 +- groups/item_conversations_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ..._events_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- .../item_get_member_groups_request_builder.go | 4 +- ..._item_get_member_groups_request_builder.go | 4 +- ...onversation_member_item_request_builder.go | 6 +- ..._item_get_member_groups_request_builder.go | 4 +- ...onversation_member_item_request_builder.go | 6 +- ...item_threads_item_reply_request_builder.go | 6 +- ...groups_with_unique_name_request_builder.go | 167 ++++ ...ons_named_location_item_request_builder.go | 8 +- ...tication_extension_item_request_builder.go | 8 +- ..._callout_extension_item_request_builder.go | 8 +- ...workflow_extension_item_request_builder.go | 6 +- ...workflows_item_versions_request_builder.go | 11 + ...workflows_item_versions_request_builder.go | 11 + ...tem_alert_configuration_request_builder.go | 6 +- ...reements_agreement_item_request_builder.go | 8 +- kiota-lock.json | 10 +- models/admin.go | 1 - ...eat_protection_onboarding_state_summary.go | 4 +- ...d_device_owner_delegated_app_scope_type.go | 48 ++ ...evice_owner_delegated_scope_app_setting.go | 188 +++++ ...vice_owner_general_device_configuration.go | 48 ++ .../android_device_owner_vpn_configuration.go | 42 + ...d_for_work_general_device_configuration.go | 36 + models/android_lob_app.go | 37 + models/android_targeted_platforms.go | 40 + ...rk_profile_general_device_configuration.go | 36 + .../android_work_profile_vpn_configuration.go | 42 + models/apple_app_list_item.go | 2 + models/application.go | 4 +- models/authentication_behaviors.go | 8 +- models/call_recording.go | 116 ++- models/call_transcript.go | 108 +++ models/chat_restrictions.go | 146 ++++ models/cloud_pc_bulk_action.go | 10 + models/cloud_pc_bulk_reprovision.go | 41 + models/cloud_pc_bulk_resize.go | 77 ++ models/cloud_pc_bulk_restart.go | 41 + models/cloud_pc_bulk_restore.go | 115 +++ models/cloud_pc_bulk_troubleshoot.go | 41 + .../cloud_pc_device_image_status_details.go | 14 +- models/cloud_pc_partner_agent_name.go | 5 +- models/cloud_pc_report_name.go | 5 +- ...o => cloud_realtime_communication_info.go} | 80 +- models/conditional_access_condition_set.go | 8 +- models/conditional_access_conditions.go | 8 +- models/conditional_access_devices.go | 4 +- models/conditional_access_rule.go | 11 +- models/conditional_access_session_controls.go | 4 +- ...nuous_access_evaluation_session_control.go | 4 +- ...ant_access_policy_configuration_partner.go | 36 + .../custom_extension_client_configuration.go | 8 +- models/default_user_role_permissions.go | 4 +- models/delegated_admin_relationship.go | 18 + ...gated_admin_relationship_request_action.go | 5 +- ...compliance_policy_setting_state_summary.go | 4 +- models/device_geo_location.go | 36 - ..._management_cached_report_configuration.go | 30 +- ...on_choice_setting_collection_definition.go | 8 +- ...gement_configuration_setting_definition.go | 28 +- ..._configuration_setting_group_definition.go | 4 +- ...configuration_simple_setting_definition.go | 16 +- ...anagement_configuration_template_family.go | 6 +- models/device_management_export_job.go | 30 +- models/device_restriction_action.go | 154 ---- models/devicemanagement/alert_impact.go | 49 ++ models/devicemanagement/alert_record.go | 4 +- .../devicemanagement/alert_rule_template.go | 5 +- models/directory_object.go | 2 + models/dlp_action.go | 37 - models/dlp_action_info.go | 39 - models/education_assignment.go | 4 +- models/education_channel_resource.go | 4 +- models/education_class.go | 4 +- .../education_linked_assignment_resource.go | 4 +- models/education_module.go | 40 +- models/education_module_resource.go | 4 +- models/entity.go | 40 +- models/group.go | 40 +- models/identity.go | 8 +- models/identity_set.go | 12 +- models/key_value.go | 8 +- models/key_value_pair.go | 8 +- models/mac_o_s_dmg_app.go | 22 +- models/mac_o_s_included_app.go | 8 +- models/mac_o_s_lob_app.go | 8 +- models/mac_o_s_mdatp_app.go | 41 - models/mac_o_s_web_clip.go | 149 ++++ models/mac_os_lob_app_assignment_settings.go | 4 +- models/managed_android_lob_app.go | 37 + models/managed_device.go | 30 + models/managed_identity.go | 72 ++ .../credential_user_registrations_summary.go | 4 +- models/mobile_app.go | 4 +- models/mobile_threat_partner_tenant_state.go | 14 +- models/multi_tenant_organization.go | 269 +++++++ ...anization_identity_sync_policy_template.go | 112 +++ ...tenant_organization_join_request_record.go | 185 +++++ ...ization_join_request_transition_details.go | 220 ++++++ models/multi_tenant_organization_member.go | 333 ++++++++ ...organization_member_collection_response.go | 87 +++ ...t_organization_member_processing_status.go | 43 ++ .../multi_tenant_organization_member_role.go | 37 + .../multi_tenant_organization_member_state.go | 40 + ..._organization_member_transition_details.go | 257 +++++++ ...nization_partner_configuration_template.go | 292 +++++++ models/multi_tenant_organization_state.go | 37 + .../branch_connectivity_configuration.go | 230 ++++++ models/networkaccess/branch_site.go | 36 + .../connectivity_configuration_link.go | 160 ++++ ..._configuration_link_collection_response.go | 88 +++ .../local_connectivity_configuration.go | 255 +++++++ .../peer_connectivity_configuration.go | 218 ++++++ models/on_premises_sip_info.go | 218 ++++++ models/online_meeting.go | 76 +- models/organization_settings.go | 4 +- models/original_transfer_methods.go | 40 + models/package_escaped.go | 12 - models/package_escapedable.go | 19 + models/password_profile.go | 4 +- models/people_admin_settings.go | 4 +- models/policy_template.go | 111 +++ models/publication_facet.go | 36 + models/remote_action.go | 14 +- .../reseller_delegated_admin_relationship.go | 111 +++ models/restriction_action.go | 37 - models/restriction_trigger.go | 49 -- models/search_hit.go | 36 + models/security/alert.go | 40 +- models/security/alert_evidence.go | 12 +- models/security/blob_container_evidence.go | 12 +- models/security/blob_evidence.go | 20 +- models/security/container_evidence.go | 28 +- models/security/container_image_evidence.go | 12 +- .../security/container_registry_evidence.go | 4 +- models/security/device_evidence.go | 4 +- models/security/file_hash.go | 4 +- models/security/host.go | 12 +- models/security/host_pair.go | 12 +- models/security/incident.go | 36 + .../security/kubernetes_cluster_evidence.go | 20 +- .../kubernetes_controller_evidence.go | 16 +- .../security/kubernetes_namespace_evidence.go | 12 +- models/security/kubernetes_pod_evidence.go | 36 +- models/security/kubernetes_secret_evidence.go | 12 +- .../kubernetes_service_account_evidence.go | 8 +- .../security/kubernetes_service_evidence.go | 28 +- models/security/kubernetes_service_port.go | 24 +- models/security/registry_value_evidence.go | 4 +- models/security/threat_intelligence.go | 52 +- models/security/whois_base_record.go | 721 ++++++++++++++++++ models/security/whois_history_record.go | 41 + ...hois_history_record_collection_response.go | 88 +++ models/security/whois_record.go | 662 +--------------- models/service_principal.go | 8 +- models/sign_in.go | 115 ++- models/teams_app_settings.go | 8 +- models/template_application_level.go | 40 + models/tenant_relationship.go | 36 + models/token_protection_status.go | 40 + models/unified_role_management_alert.go | 4 +- models/user.go | 80 +- ...nce_analytics_battery_health_app_impact.go | 8 +- ...alytics_battery_health_capacity_details.go | 16 +- ...lytics_battery_health_device_app_impact.go | 4 +- ...ytics_battery_health_device_performance.go | 88 ++- ...s_battery_health_device_runtime_history.go | 4 +- ...lytics_battery_health_model_performance.go | 201 ++++- ...analytics_battery_health_os_performance.go | 233 +++++- ...nalytics_battery_health_runtime_details.go | 16 +- ...tics_device_startup_process_performance.go | 72 -- models/vendor_escaped.go | 50 -- models/vendor_escapedable.go | 59 ++ models/virtual_appointment.go | 231 ------ models/virtual_event_registrant.go | 341 --------- models/virtual_event_registration.go | 302 ++++++-- ..._event_registration_collection_response.go | 87 +++ ...irtual_event_registration_configuration.go | 177 +++++ models/virtual_event_session.go | 48 ++ models/virtual_event_webinar.go | 74 +- ...vent_webinar_registration_configuration.go | 113 +++ models/win32_lob_app_install_experience.go | 36 + models/windows_device_type.go | 18 +- models/windows_universal_app_x.go | 26 +- .../windowsupdates/build_version_details.go | 254 ++++++ models/windowsupdates/cve_information.go | 182 +++++ models/windowsupdates/cve_severity_level.go | 40 + .../feature_update_catalog_entry.go | 36 + .../windowsupdates/knowledge_base_article.go | 76 ++ models/windowsupdates/product_revision.go | 257 +++++++ .../windowsupdates/quality_update_cadence.go | 37 + .../quality_update_catalog_entry.go | 193 +++++ ...quality_update_cve_severity_information.go | 231 ++++++ models/workbook_comment.go | 36 + models/workbook_comment_reply.go | 36 + models/workbook_document_task.go | 460 +++++++++++ models/workbook_document_task_change.go | 436 +++++++++++ ...ocument_task_change_collection_response.go | 87 +++ ...kbook_document_task_collection_response.go | 87 +++ models/workbook_document_task_schedule.go | 183 +++++ ...ent_user.go => workbook_email_identity.go} | 102 +-- models/workbook_worksheet.go | 48 ++ ...anches_branch_site_item_request_builder.go | 4 + ...configuration_link_item_request_builder.go | 155 ++++ ...nfiguration_links_count_request_builder.go | 76 ++ ...ity_configuration_links_request_builder.go | 147 ++++ ...nectivity_configuration_request_builder.go | 159 ++++ .../item_get_member_groups_request_builder.go | 4 +- ...file_card_property_item_request_builder.go | 9 +- ...profile_card_properties_request_builder.go | 16 +- organization/item_settings_request_builder.go | 9 +- .../item_get_member_groups_request_builder.go | 4 +- ...dentity_synchronization_request_builder.go | 6 +- ...ud_p_c_role_assignments_request_builder.go | 2 +- ...gement_role_assignments_request_builder.go | 2 +- .../schema_extension_item_request_builder.go | 4 +- ...st_pairs_host_pair_item_request_builder.go | 9 +- ...t_pairs_item_child_host_request_builder.go | 6 +- ..._pairs_item_parent_host_request_builder.go | 6 +- ...intelligence_host_pairs_request_builder.go | 6 +- ...st_pairs_host_pair_item_request_builder.go | 6 +- ...s_item_child_host_pairs_request_builder.go | 9 +- ...st_pairs_host_pair_item_request_builder.go | 6 +- ...e_hosts_item_host_pairs_request_builder.go | 9 +- ...st_pairs_host_pair_item_request_builder.go | 6 +- ..._item_parent_host_pairs_request_builder.go | 9 +- .../threat_intelligence_request_builder.go | 4 + ...s_history_records_count_request_builder.go | 76 ++ ...story_records_item_host_request_builder.go | 77 ++ ...e_whois_history_records_request_builder.go | 147 ++++ ...ois_history_record_item_request_builder.go | 159 ++++ ...ords_item_history_count_request_builder.go | 76 ++ ...is_records_item_history_request_builder.go | 104 +++ ...ois_history_record_item_request_builder.go | 77 ++ ...whois_records_item_host_request_builder.go | 2 +- ...cords_whois_record_item_request_builder.go | 6 +- .../item_get_member_groups_request_builder.go | 4 +- ...s_directory_object_item_request_builder.go | 6 +- .../item_owners_ref_request_builder.go | 6 +- .../item_owners_request_builder.go | 6 +- sites/sites_request_builder.go | 8 +- ...ngs_call_recording_item_request_builder.go | 9 +- ...recordings_item_content_request_builder.go | 8 +- ...essions_item_recordings_request_builder.go | 6 +- ...sions_item_registration_request_builder.go | 6 +- ...tem_registrations_count_request_builder.go | 76 ++ ...ions_item_registrations_request_builder.go | 104 +++ ...event_registration_item_request_builder.go | 77 ++ ...tem_virtual_appointment_request_builder.go | 170 ----- ...ts_events_item_sessions_request_builder.go | 6 +- ...tual_event_session_item_request_builder.go | 17 +- ...istration_configuration_request_builder.go | 77 ++ ...inars_item_registration_request_builder.go | 77 -- ...tem_registrations_count_request_builder.go | 76 ++ ...ons_item_sessions_count_request_builder.go | 76 ++ ...m_alternative_recording_request_builder.go | 102 +++ ...ns_item_attendee_report_request_builder.go | 102 +++ ...tem_broadcast_recording_request_builder.go | 102 +++ ...sessions_item_recording_request_builder.go | 102 +++ ...strations_item_sessions_request_builder.go | 104 +++ ...tual_event_session_item_request_builder.go | 93 +++ ...nars_item_registrations_request_builder.go | 147 ++++ ...event_registration_item_request_builder.go | 159 ++++ ...ngs_call_recording_item_request_builder.go | 9 +- ...recordings_item_content_request_builder.go | 8 +- ...essions_item_recordings_request_builder.go | 6 +- ...sions_item_registration_request_builder.go | 6 +- ...tem_registrations_count_request_builder.go | 76 ++ ...ions_item_registrations_request_builder.go | 104 +++ ...event_registration_item_request_builder.go | 77 ++ ..._webinars_item_sessions_request_builder.go | 6 +- ...tual_event_session_item_request_builder.go | 17 +- ...tual_event_webinar_item_request_builder.go | 10 +- ...onversation_member_item_request_builder.go | 6 +- ..._item_get_member_groups_request_builder.go | 4 +- ...onversation_member_item_request_builder.go | 6 +- ...onversation_member_item_request_builder.go | 6 +- ..._item_get_member_groups_request_builder.go | 4 +- ...onversation_member_item_request_builder.go | 6 +- ...onversation_member_item_request_builder.go | 6 +- ...ification_to_recipients_request_builder.go | 4 +- ...onversation_member_item_request_builder.go | 6 +- ..._item_get_member_groups_request_builder.go | 4 +- ...onversation_member_item_request_builder.go | 6 +- ...ganization_join_request_request_builder.go | 155 ++++ ...lti_tenant_organization_request_builder.go | 163 ++++ ...anization_tenants_count_request_builder.go | 76 ++ ...rganization_member_item_request_builder.go | 155 ++++ ...nt_organization_tenants_request_builder.go | 147 ++++ .../tenant_relationships_request_builder.go | 4 + ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...ar_view_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ..._events_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...ar_view_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ..._events_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...ar_view_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...ar_view_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ..._events_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ..._item_get_member_groups_request_builder.go | 4 +- ..._cloud_p_cs_bulk_resize_request_builder.go | 2 + ..._item_get_member_groups_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- ..._events_item_extensions_request_builder.go | 4 +- ...rrences_item_extensions_request_builder.go | 4 +- ...stances_item_extensions_request_builder.go | 4 +- .../item_get_member_groups_request_builder.go | 4 +- ...ssages_item_attachments_request_builder.go | 8 +- ...essages_item_extensions_request_builder.go | 4 +- ...ders_item_child_folders_request_builder.go | 6 +- ...ssages_item_attachments_request_builder.go | 8 +- ...essages_item_extensions_request_builder.go | 4 +- ...lk_reprovision_cloud_pc_request_builder.go | 2 + ...s_bulk_restore_cloud_pc_request_builder.go | 2 + ...em_reprovision_cloud_pc_request_builder.go | 2 + ...s_item_restore_cloud_pc_request_builder.go | 2 + ...ssages_item_attachments_request_builder.go | 8 +- ...essages_item_extensions_request_builder.go | 4 +- ...ages_item_value_content_request_builder.go | 2 +- ...m_messages_message_item_request_builder.go | 8 +- users/item_messages_request_builder.go | 6 +- ...ings_get_all_recordings_request_builder.go | 86 +++ ...ne_meetings_get_all_recordings_response.go | 88 +++ ...ngs_get_all_transcripts_request_builder.go | 86 +++ ...e_meetings_get_all_transcripts_response.go | 88 +++ ...ngs_call_recording_item_request_builder.go | 9 +- ...recordings_item_content_request_builder.go | 8 +- ...eetings_item_recordings_request_builder.go | 6 +- ...tings_item_registration_request_builder.go | 6 +- ...tem_virtual_appointment_request_builder.go | 170 ----- ...ngs_online_meeting_item_request_builder.go | 4 - users/item_online_meetings_request_builder.go | 8 + ...s_directory_object_item_request_builder.go | 6 +- users/item_owned_objects_request_builder.go | 6 +- ..._item_get_member_groups_request_builder.go | 4 +- .../item_permission_grants_request_builder.go | 9 +- ...c_permission_grant_item_request_builder.go | 6 +- users/item_presence_request_builder.go | 8 +- 590 files changed, 23967 insertions(+), 3833 deletions(-) create mode 100644 app/online_meetings_get_all_recordings_request_builder.go create mode 100644 app/online_meetings_get_all_recordings_response.go create mode 100644 app/online_meetings_get_all_transcripts_request_builder.go create mode 100644 app/online_meetings_get_all_transcripts_response.go delete mode 100644 app/online_meetings_item_virtual_appointment_request_builder.go create mode 100644 applicationswithuniquename/applications_with_unique_name_request_builder.go create mode 100644 communications/online_meetings_get_all_recordings_request_builder.go create mode 100644 communications/online_meetings_get_all_recordings_response.go create mode 100644 communications/online_meetings_get_all_transcripts_request_builder.go create mode 100644 communications/online_meetings_get_all_transcripts_response.go delete mode 100644 communications/online_meetings_item_virtual_appointment_request_builder.go rename devicemanagement/{reports_get_autopilot_deployment_status_post_request_body.go => reports_get_autopilot_deployment_device_information_post_request_body.go} (73%) rename devicemanagement/{reports_get_autopilot_deployment_status_request_builder.go => reports_get_autopilot_deployment_device_information_request_builder.go} (50%) create mode 100644 domains/item_promote_to_initial_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_replies_item_task_changes_count_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_replies_item_task_changes_count_response.go create mode 100644 drives/item_items_item_workbook_comments_item_replies_item_task_changes_item_at_with_index_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_replies_item_task_changes_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_replies_item_task_changes_workbook_document_task_change_item_request_builder.go rename solutions/virtual_events_webinars_item_sessions_item_virtual_appointment_request_builder.go => drives/item_items_item_workbook_comments_item_replies_item_task_comment_request_builder.go (54%) create mode 100644 drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_count_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_count_response.go create mode 100644 drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_item_at_with_index_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_workbook_document_task_change_item_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_replies_item_task_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_changes_count_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_changes_count_response.go create mode 100644 drives/item_items_item_workbook_comments_item_task_changes_item_at_with_index_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_changes_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_changes_workbook_document_task_change_item_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_comment_replies_count_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_count_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_count_response.go create mode 100644 drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_item_at_with_index_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_workbook_document_task_change_item_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_comment_replies_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_comment_replies_workbook_comment_reply_item_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_comment_request_builder.go create mode 100644 drives/item_items_item_workbook_comments_item_task_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_count_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_count_response.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_at_with_index_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_changes_count_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_changes_count_response.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_changes_item_at_with_index_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_changes_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_changes_workbook_document_task_change_item_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_count_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_count_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_count_response.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_item_at_with_index_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_workbook_document_task_change_item_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_workbook_comment_reply_item_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_count_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_count_response.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_item_at_with_index_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_workbook_document_task_change_item_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_request_builder.go create mode 100644 drives/item_items_item_workbook_worksheets_item_tasks_workbook_document_task_item_request_builder.go create mode 100644 groupswithuniquename/groups_with_unique_name_request_builder.go create mode 100644 models/android_device_owner_delegated_app_scope_type.go create mode 100644 models/android_device_owner_delegated_scope_app_setting.go create mode 100644 models/android_targeted_platforms.go create mode 100644 models/chat_restrictions.go create mode 100644 models/cloud_pc_bulk_reprovision.go create mode 100644 models/cloud_pc_bulk_resize.go create mode 100644 models/cloud_pc_bulk_restart.go create mode 100644 models/cloud_pc_bulk_restore.go create mode 100644 models/cloud_pc_bulk_troubleshoot.go rename models/{virtual_appointment_settings.go => cloud_realtime_communication_info.go} (57%) delete mode 100644 models/device_restriction_action.go delete mode 100644 models/dlp_action.go delete mode 100644 models/mac_o_s_mdatp_app.go create mode 100644 models/mac_o_s_web_clip.go create mode 100644 models/multi_tenant_organization.go create mode 100644 models/multi_tenant_organization_identity_sync_policy_template.go create mode 100644 models/multi_tenant_organization_join_request_record.go create mode 100644 models/multi_tenant_organization_join_request_transition_details.go create mode 100644 models/multi_tenant_organization_member.go create mode 100644 models/multi_tenant_organization_member_collection_response.go create mode 100644 models/multi_tenant_organization_member_processing_status.go create mode 100644 models/multi_tenant_organization_member_role.go create mode 100644 models/multi_tenant_organization_member_state.go create mode 100644 models/multi_tenant_organization_member_transition_details.go create mode 100644 models/multi_tenant_organization_partner_configuration_template.go create mode 100644 models/multi_tenant_organization_state.go create mode 100644 models/networkaccess/branch_connectivity_configuration.go create mode 100644 models/networkaccess/connectivity_configuration_link.go create mode 100644 models/networkaccess/connectivity_configuration_link_collection_response.go create mode 100644 models/networkaccess/local_connectivity_configuration.go create mode 100644 models/networkaccess/peer_connectivity_configuration.go create mode 100644 models/on_premises_sip_info.go create mode 100644 models/original_transfer_methods.go create mode 100644 models/package_escapedable.go create mode 100644 models/policy_template.go create mode 100644 models/reseller_delegated_admin_relationship.go delete mode 100644 models/restriction_action.go delete mode 100644 models/restriction_trigger.go create mode 100644 models/security/whois_base_record.go create mode 100644 models/security/whois_history_record.go create mode 100644 models/security/whois_history_record_collection_response.go create mode 100644 models/template_application_level.go create mode 100644 models/token_protection_status.go create mode 100644 models/vendor_escapedable.go delete mode 100644 models/virtual_appointment.go delete mode 100644 models/virtual_event_registrant.go create mode 100644 models/virtual_event_registration_collection_response.go create mode 100644 models/virtual_event_registration_configuration.go create mode 100644 models/virtual_event_webinar_registration_configuration.go create mode 100644 models/windowsupdates/build_version_details.go create mode 100644 models/windowsupdates/cve_information.go create mode 100644 models/windowsupdates/cve_severity_level.go create mode 100644 models/windowsupdates/knowledge_base_article.go create mode 100644 models/windowsupdates/product_revision.go create mode 100644 models/windowsupdates/quality_update_cadence.go create mode 100644 models/windowsupdates/quality_update_cve_severity_information.go create mode 100644 models/workbook_document_task.go create mode 100644 models/workbook_document_task_change.go create mode 100644 models/workbook_document_task_change_collection_response.go create mode 100644 models/workbook_document_task_collection_response.go create mode 100644 models/workbook_document_task_schedule.go rename models/{virtual_appointment_user.go => workbook_email_identity.go} (57%) create mode 100644 networkaccess/connectivity_branches_item_connectivity_configuration_links_connectivity_configuration_link_item_request_builder.go create mode 100644 networkaccess/connectivity_branches_item_connectivity_configuration_links_count_request_builder.go create mode 100644 networkaccess/connectivity_branches_item_connectivity_configuration_links_request_builder.go create mode 100644 networkaccess/connectivity_branches_item_connectivity_configuration_request_builder.go create mode 100644 security/threat_intelligence_whois_history_records_count_request_builder.go create mode 100644 security/threat_intelligence_whois_history_records_item_host_request_builder.go create mode 100644 security/threat_intelligence_whois_history_records_request_builder.go create mode 100644 security/threat_intelligence_whois_history_records_whois_history_record_item_request_builder.go create mode 100644 security/threat_intelligence_whois_records_item_history_count_request_builder.go create mode 100644 security/threat_intelligence_whois_records_item_history_request_builder.go create mode 100644 security/threat_intelligence_whois_records_item_history_whois_history_record_item_request_builder.go create mode 100644 solutions/virtual_events_events_item_sessions_item_registrations_count_request_builder.go create mode 100644 solutions/virtual_events_events_item_sessions_item_registrations_request_builder.go create mode 100644 solutions/virtual_events_events_item_sessions_item_registrations_virtual_event_registration_item_request_builder.go delete mode 100644 solutions/virtual_events_events_item_sessions_item_virtual_appointment_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_registration_configuration_request_builder.go delete mode 100644 solutions/virtual_events_webinars_item_registration_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_registrations_count_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_registrations_item_sessions_count_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_registrations_item_sessions_item_alternative_recording_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_registrations_item_sessions_item_attendee_report_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_registrations_item_sessions_item_broadcast_recording_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_registrations_item_sessions_item_recording_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_registrations_item_sessions_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_registrations_item_sessions_virtual_event_session_item_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_registrations_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_registrations_virtual_event_registration_item_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_sessions_item_registrations_count_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_sessions_item_registrations_request_builder.go create mode 100644 solutions/virtual_events_webinars_item_sessions_item_registrations_virtual_event_registration_item_request_builder.go create mode 100644 tenantrelationships/multi_tenant_organization_join_request_request_builder.go create mode 100644 tenantrelationships/multi_tenant_organization_request_builder.go create mode 100644 tenantrelationships/multi_tenant_organization_tenants_count_request_builder.go create mode 100644 tenantrelationships/multi_tenant_organization_tenants_multi_tenant_organization_member_item_request_builder.go create mode 100644 tenantrelationships/multi_tenant_organization_tenants_request_builder.go create mode 100644 users/item_online_meetings_get_all_recordings_request_builder.go create mode 100644 users/item_online_meetings_get_all_recordings_response.go create mode 100644 users/item_online_meetings_get_all_transcripts_request_builder.go create mode 100644 users/item_online_meetings_get_all_transcripts_response.go delete mode 100644 users/item_online_meetings_item_virtual_appointment_request_builder.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c9475d5f00..7ff123a4ca5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [0.78.0]- 2023-08-23 + +### Added + +- Weekly generation. + ## [0.77.0]- 2023-08-02 ### Added diff --git a/admin/people_profile_card_properties_profile_card_property_item_request_builder.go b/admin/people_profile_card_properties_profile_card_property_item_request_builder.go index a3b5eb14ddf..f8fe7d64c2c 100644 --- a/admin/people_profile_card_properties_profile_card_property_item_request_builder.go +++ b/admin/people_profile_card_properties_profile_card_property_item_request_builder.go @@ -18,7 +18,7 @@ type PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilderDeleteReque // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilderGetQueryParameters get profileCardProperties from admin +// PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilderGetQueryParameters retrieve the properties of a profileCardProperty entity. The profileCardProperty is identified by its directoryPropertyName property. type PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,7 +54,10 @@ func NewPeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewPeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete navigation property profileCardProperties for admin +// Delete delete the profileCardProperty object specified by its directoryPropertyName from the organization's profile card, and remove any localized customizations for that property. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/profilecardproperty-delete?view=graph-rest-1.0 func (m *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -70,7 +73,10 @@ func (m *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilder) Delet } return nil } -// Get get profileCardProperties from admin +// Get retrieve the properties of a profileCardProperty entity. The profileCardProperty is identified by its directoryPropertyName property. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/profilecardproperty-get?view=graph-rest-1.0 func (m *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -89,7 +95,10 @@ func (m *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilder) Get(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable), nil } -// Patch update the navigation property profileCardProperties in admin +// Patch update the properties of a profileCardProperty object, identified by its directoryPropertyName property. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/profilecardproperty-update?view=graph-rest-1.0 func (m *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable, requestConfiguration *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -108,7 +117,7 @@ func (m *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilder) Patch } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable), nil } -// ToDeleteRequestInformation delete navigation property profileCardProperties for admin +// ToDeleteRequestInformation delete the profileCardProperty object specified by its directoryPropertyName from the organization's profile card, and remove any localized customizations for that property. func (m *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -120,7 +129,7 @@ func (m *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilder) ToDel } return requestInfo, nil } -// ToGetRequestInformation get profileCardProperties from admin +// ToGetRequestInformation retrieve the properties of a profileCardProperty entity. The profileCardProperty is identified by its directoryPropertyName property. func (m *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -136,7 +145,7 @@ func (m *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilder) ToGet } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property profileCardProperties in admin +// ToPatchRequestInformation update the properties of a profileCardProperty object, identified by its directoryPropertyName property. func (m *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable, requestConfiguration *PeopleProfileCardPropertiesProfileCardPropertyItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/admin/people_profile_card_properties_request_builder.go b/admin/people_profile_card_properties_request_builder.go index 23eb18b9616..ad08b256551 100644 --- a/admin/people_profile_card_properties_request_builder.go +++ b/admin/people_profile_card_properties_request_builder.go @@ -11,7 +11,7 @@ import ( type PeopleProfileCardPropertiesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// PeopleProfileCardPropertiesRequestBuilderGetQueryParameters get profileCardProperties from admin +// PeopleProfileCardPropertiesRequestBuilderGetQueryParameters get a collection of profileCardProperty resources for an organization. Each resource is identified by its directoryPropertyName property. type PeopleProfileCardPropertiesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,10 @@ func NewPeopleProfileCardPropertiesRequestBuilder(rawUrl string, requestAdapter func (m *PeopleProfileCardPropertiesRequestBuilder) Count()(*PeopleProfileCardPropertiesCountRequestBuilder) { return NewPeopleProfileCardPropertiesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get profileCardProperties from admin +// Get get a collection of profileCardProperty resources for an organization. Each resource is identified by its directoryPropertyName property. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/peopleadminsettings-list-profilecardproperties?view=graph-rest-1.0 func (m *PeopleProfileCardPropertiesRequestBuilder) Get(ctx context.Context, requestConfiguration *PeopleProfileCardPropertiesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -93,7 +96,10 @@ func (m *PeopleProfileCardPropertiesRequestBuilder) Get(ctx context.Context, req } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyCollectionResponseable), nil } -// Post create new navigation property to profileCardProperties for admin +// Post create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information about how to add properties to the profile card for an organization, see Add or delete custom attributes on a profile card using the profile card API. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/peopleadminsettings-post-profilecardproperties?view=graph-rest-1.0 func (m *PeopleProfileCardPropertiesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable, requestConfiguration *PeopleProfileCardPropertiesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -112,7 +118,7 @@ func (m *PeopleProfileCardPropertiesRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable), nil } -// ToGetRequestInformation get profileCardProperties from admin +// ToGetRequestInformation get a collection of profileCardProperty resources for an organization. Each resource is identified by its directoryPropertyName property. func (m *PeopleProfileCardPropertiesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PeopleProfileCardPropertiesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -128,7 +134,7 @@ func (m *PeopleProfileCardPropertiesRequestBuilder) ToGetRequestInformation(ctx } return requestInfo, nil } -// ToPostRequestInformation create new navigation property to profileCardProperties for admin +// ToPostRequestInformation create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information about how to add properties to the profile card for an organization, see Add or delete custom attributes on a profile card using the profile card API. func (m *PeopleProfileCardPropertiesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable, requestConfiguration *PeopleProfileCardPropertiesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/admin/people_request_builder.go b/admin/people_request_builder.go index 92381fe6c0b..c401fcf5422 100644 --- a/admin/people_request_builder.go +++ b/admin/people_request_builder.go @@ -18,7 +18,7 @@ type PeopleRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// PeopleRequestBuilderGetQueryParameters get people from admin +// PeopleRequestBuilderGetQueryParameters retrieve the properties and relationships of a peopleAdminSettings object. type PeopleRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,10 @@ func (m *PeopleRequestBuilder) Delete(ctx context.Context, requestConfiguration } return nil } -// Get get people from admin +// Get retrieve the properties and relationships of a peopleAdminSettings object. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/peopleadminsettings-get?view=graph-rest-1.0 func (m *PeopleRequestBuilder) Get(ctx context.Context, requestConfiguration *PeopleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PeopleAdminSettingsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -128,7 +131,7 @@ func (m *PeopleRequestBuilder) ToDeleteRequestInformation(ctx context.Context, r } return requestInfo, nil } -// ToGetRequestInformation get people from admin +// ToGetRequestInformation retrieve the properties and relationships of a peopleAdminSettings object. func (m *PeopleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PeopleRequestBuilderGetRequestConfiguration)(*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 071fd684bc1..23de51826c0 100644 --- a/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go +++ b/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go @@ -18,7 +18,7 @@ type WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderDelete // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters read the properties and relationships of a resourceConnection object. +// WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters read the properties and relationships of an operationalInsightsConnection object. type WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,10 +73,10 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) } return nil } -// Get read the properties and relationships of a resourceConnection object. +// Get read the properties and relationships of an operationalInsightsConnection object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-1.0 func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ResourceConnectionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -126,7 +126,7 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) } return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of a resourceConnection object. +// ToGetRequestInformation read the properties and relationships of an operationalInsightsConnection object. func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetRequestConfiguration)(*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 17754139229..a4bc3e9720a 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 updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. +// Delete delete an updatableAsset object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-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://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.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 updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. +// ToDeleteRequestInformation delete an updatableAsset object. 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/administrativeunits/item_get_member_groups_request_builder.go b/administrativeunits/item_get_member_groups_request_builder.go index 29b7fcd840f..172fcb32b1f 100644 --- a/administrativeunits/item_get_member_groups_request_builder.go +++ b/administrativeunits/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*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 260d494fdbf..74648f22a29 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://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.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_get_all_recordings_request_builder.go b/app/online_meetings_get_all_recordings_request_builder.go new file mode 100644 index 00000000000..de1d59c07b5 --- /dev/null +++ b/app/online_meetings_get_all_recordings_request_builder.go @@ -0,0 +1,86 @@ +package app + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// OnlineMeetingsGetAllRecordingsRequestBuilder provides operations to call the getAllRecordings method. +type OnlineMeetingsGetAllRecordingsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// OnlineMeetingsGetAllRecordingsRequestBuilderGetQueryParameters invoke function getAllRecordings +type OnlineMeetingsGetAllRecordingsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // 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"` +} +// OnlineMeetingsGetAllRecordingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type OnlineMeetingsGetAllRecordingsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *OnlineMeetingsGetAllRecordingsRequestBuilderGetQueryParameters +} +// NewOnlineMeetingsGetAllRecordingsRequestBuilderInternal instantiates a new GetAllRecordingsRequestBuilder and sets the default values. +func NewOnlineMeetingsGetAllRecordingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OnlineMeetingsGetAllRecordingsRequestBuilder) { + m := &OnlineMeetingsGetAllRecordingsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/app/onlineMeetings/getAllRecordings(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters), + } + return m +} +// NewOnlineMeetingsGetAllRecordingsRequestBuilder instantiates a new GetAllRecordingsRequestBuilder and sets the default values. +func NewOnlineMeetingsGetAllRecordingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OnlineMeetingsGetAllRecordingsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewOnlineMeetingsGetAllRecordingsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getAllRecordings +func (m *OnlineMeetingsGetAllRecordingsRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsGetAllRecordingsRequestBuilderGetRequestConfiguration)(OnlineMeetingsGetAllRecordingsResponseable, 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, CreateOnlineMeetingsGetAllRecordingsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(OnlineMeetingsGetAllRecordingsResponseable), nil +} +// ToGetRequestInformation invoke function getAllRecordings +func (m *OnlineMeetingsGetAllRecordingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsGetAllRecordingsRequestBuilderGetRequestConfiguration)(*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/app/online_meetings_get_all_recordings_response.go b/app/online_meetings_get_all_recordings_response.go new file mode 100644 index 00000000000..4a331085222 --- /dev/null +++ b/app/online_meetings_get_all_recordings_response.go @@ -0,0 +1,88 @@ +package app + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// OnlineMeetingsGetAllRecordingsResponse +type OnlineMeetingsGetAllRecordingsResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewOnlineMeetingsGetAllRecordingsResponse instantiates a new OnlineMeetingsGetAllRecordingsResponse and sets the default values. +func NewOnlineMeetingsGetAllRecordingsResponse()(*OnlineMeetingsGetAllRecordingsResponse) { + m := &OnlineMeetingsGetAllRecordingsResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateOnlineMeetingsGetAllRecordingsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnlineMeetingsGetAllRecordingsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnlineMeetingsGetAllRecordingsResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnlineMeetingsGetAllRecordingsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCallRecordingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *OnlineMeetingsGetAllRecordingsResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable) + } + return nil +} +// Serialize serializes information the current object +func (m *OnlineMeetingsGetAllRecordingsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *OnlineMeetingsGetAllRecordingsResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// OnlineMeetingsGetAllRecordingsResponseable +type OnlineMeetingsGetAllRecordingsResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable)() +} diff --git a/app/online_meetings_get_all_transcripts_request_builder.go b/app/online_meetings_get_all_transcripts_request_builder.go new file mode 100644 index 00000000000..12f73d6adf2 --- /dev/null +++ b/app/online_meetings_get_all_transcripts_request_builder.go @@ -0,0 +1,86 @@ +package app + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// OnlineMeetingsGetAllTranscriptsRequestBuilder provides operations to call the getAllTranscripts method. +type OnlineMeetingsGetAllTranscriptsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// OnlineMeetingsGetAllTranscriptsRequestBuilderGetQueryParameters invoke function getAllTranscripts +type OnlineMeetingsGetAllTranscriptsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // 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"` +} +// OnlineMeetingsGetAllTranscriptsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type OnlineMeetingsGetAllTranscriptsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *OnlineMeetingsGetAllTranscriptsRequestBuilderGetQueryParameters +} +// NewOnlineMeetingsGetAllTranscriptsRequestBuilderInternal instantiates a new GetAllTranscriptsRequestBuilder and sets the default values. +func NewOnlineMeetingsGetAllTranscriptsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OnlineMeetingsGetAllTranscriptsRequestBuilder) { + m := &OnlineMeetingsGetAllTranscriptsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/app/onlineMeetings/getAllTranscripts(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters), + } + return m +} +// NewOnlineMeetingsGetAllTranscriptsRequestBuilder instantiates a new GetAllTranscriptsRequestBuilder and sets the default values. +func NewOnlineMeetingsGetAllTranscriptsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OnlineMeetingsGetAllTranscriptsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewOnlineMeetingsGetAllTranscriptsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getAllTranscripts +func (m *OnlineMeetingsGetAllTranscriptsRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsGetAllTranscriptsRequestBuilderGetRequestConfiguration)(OnlineMeetingsGetAllTranscriptsResponseable, 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, CreateOnlineMeetingsGetAllTranscriptsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(OnlineMeetingsGetAllTranscriptsResponseable), nil +} +// ToGetRequestInformation invoke function getAllTranscripts +func (m *OnlineMeetingsGetAllTranscriptsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsGetAllTranscriptsRequestBuilderGetRequestConfiguration)(*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/app/online_meetings_get_all_transcripts_response.go b/app/online_meetings_get_all_transcripts_response.go new file mode 100644 index 00000000000..3a7f4803ce4 --- /dev/null +++ b/app/online_meetings_get_all_transcripts_response.go @@ -0,0 +1,88 @@ +package app + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// OnlineMeetingsGetAllTranscriptsResponse +type OnlineMeetingsGetAllTranscriptsResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewOnlineMeetingsGetAllTranscriptsResponse instantiates a new OnlineMeetingsGetAllTranscriptsResponse and sets the default values. +func NewOnlineMeetingsGetAllTranscriptsResponse()(*OnlineMeetingsGetAllTranscriptsResponse) { + m := &OnlineMeetingsGetAllTranscriptsResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateOnlineMeetingsGetAllTranscriptsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnlineMeetingsGetAllTranscriptsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnlineMeetingsGetAllTranscriptsResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnlineMeetingsGetAllTranscriptsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCallTranscriptFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *OnlineMeetingsGetAllTranscriptsResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable) + } + return nil +} +// Serialize serializes information the current object +func (m *OnlineMeetingsGetAllTranscriptsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *OnlineMeetingsGetAllTranscriptsResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// OnlineMeetingsGetAllTranscriptsResponseable +type OnlineMeetingsGetAllTranscriptsResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable)() +} diff --git a/app/online_meetings_item_recordings_call_recording_item_request_builder.go b/app/online_meetings_item_recordings_call_recording_item_request_builder.go index 0ec193fe9e9..c0a934617a6 100644 --- a/app/online_meetings_item_recordings_call_recording_item_request_builder.go +++ b/app/online_meetings_item_recordings_call_recording_item_request_builder.go @@ -18,7 +18,7 @@ type OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderDeleteRequestCon // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters get recordings from app +// OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. type OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,10 @@ func (m *OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) Delete(ctx } return nil } -// Get get recordings from app +// Get get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/callrecording-get?view=graph-rest-1.0 func (m *OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +127,7 @@ func (m *OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) ToDeleteRe } return requestInfo, nil } -// ToGetRequestInformation get recordings from app +// ToGetRequestInformation get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/app/online_meetings_item_recordings_item_content_request_builder.go b/app/online_meetings_item_recordings_item_content_request_builder.go index 808a1c99f41..c1fc75ce757 100644 --- a/app/online_meetings_item_recordings_item_content_request_builder.go +++ b/app/online_meetings_item_recordings_item_content_request_builder.go @@ -38,7 +38,7 @@ func NewOnlineMeetingsItemRecordingsItemContentRequestBuilder(rawUrl string, req urlParams["request-raw-url"] = rawUrl return NewOnlineMeetingsItemRecordingsItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get get content for the navigation property recordings from app +// Get the content of the recording. Read-only. func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsItemRecordingsItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -57,7 +57,7 @@ func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) Get(ctx context. } return res.([]byte), nil } -// Put update content for the navigation property recordings in app +// Put the content of the recording. Read-only. func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *OnlineMeetingsItemRecordingsItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -76,7 +76,7 @@ func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) Put(ctx context. } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } -// ToGetRequestInformation get content for the navigation property recordings from app +// ToGetRequestInformation the content of the recording. Read-only. func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRecordingsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -88,7 +88,7 @@ func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) ToGetRequestInfo } return requestInfo, nil } -// ToPutRequestInformation update content for the navigation property recordings in app +// ToPutRequestInformation the content of the recording. Read-only. func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *OnlineMeetingsItemRecordingsItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/app/online_meetings_item_recordings_request_builder.go b/app/online_meetings_item_recordings_request_builder.go index 4f629764fce..481ab99dada 100644 --- a/app/online_meetings_item_recordings_request_builder.go +++ b/app/online_meetings_item_recordings_request_builder.go @@ -11,7 +11,7 @@ import ( type OnlineMeetingsItemRecordingsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// OnlineMeetingsItemRecordingsRequestBuilderGetQueryParameters get recordings from app +// OnlineMeetingsItemRecordingsRequestBuilderGetQueryParameters get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. type OnlineMeetingsItemRecordingsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewOnlineMeetingsItemRecordingsRequestBuilder(rawUrl string, requestAdapter func (m *OnlineMeetingsItemRecordingsRequestBuilder) Count()(*OnlineMeetingsItemRecordingsCountRequestBuilder) { return NewOnlineMeetingsItemRecordingsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get recordings from app +// Get get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *OnlineMeetingsItemRecordingsRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsItemRecordingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *OnlineMeetingsItemRecordingsRequestBuilder) Post(ctx context.Context, b } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } -// ToGetRequestInformation get recordings from app +// ToGetRequestInformation get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *OnlineMeetingsItemRecordingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRecordingsRequestBuilderGetRequestConfiguration)(*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 9f4efa66f20..dbbf6e2a6a3 100644 --- a/app/online_meetings_item_registration_request_builder.go +++ b/app/online_meetings_item_registration_request_builder.go @@ -58,10 +58,10 @@ func NewOnlineMeetingsItemRegistrationRequestBuilder(rawUrl string, requestAdapt func (m *OnlineMeetingsItemRegistrationRequestBuilder) CustomQuestions()(*OnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) { return NewOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. +// Delete disable and delete the externalMeetingRegistration of an onlineMeeting. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 func (m *OnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -125,7 +125,7 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) Patch(ctx context.Context func (m *OnlineMeetingsItemRegistrationRequestBuilder) Registrants()(*OnlineMeetingsItemRegistrationRegistrantsRequestBuilder) { return NewOnlineMeetingsItemRegistrationRegistrantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. +// ToDeleteRequestInformation disable and delete the externalMeetingRegistration of an onlineMeeting. func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/app/online_meetings_item_virtual_appointment_request_builder.go b/app/online_meetings_item_virtual_appointment_request_builder.go deleted file mode 100644 index 2a0728322ad..00000000000 --- a/app/online_meetings_item_virtual_appointment_request_builder.go +++ /dev/null @@ -1,170 +0,0 @@ -package app - -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" -) - -// OnlineMeetingsItemVirtualAppointmentRequestBuilder provides operations to manage the virtualAppointment property of the microsoft.graph.onlineMeeting entity. -type OnlineMeetingsItemVirtualAppointmentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// OnlineMeetingsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type OnlineMeetingsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// OnlineMeetingsItemVirtualAppointmentRequestBuilderGetQueryParameters read the properties and relationships of a virtualAppointment object. -type OnlineMeetingsItemVirtualAppointmentRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// OnlineMeetingsItemVirtualAppointmentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type OnlineMeetingsItemVirtualAppointmentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *OnlineMeetingsItemVirtualAppointmentRequestBuilderGetQueryParameters -} -// OnlineMeetingsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type OnlineMeetingsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewOnlineMeetingsItemVirtualAppointmentRequestBuilderInternal instantiates a new VirtualAppointmentRequestBuilder and sets the default values. -func NewOnlineMeetingsItemVirtualAppointmentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OnlineMeetingsItemVirtualAppointmentRequestBuilder) { - m := &OnlineMeetingsItemVirtualAppointmentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/app/onlineMeetings/{onlineMeeting%2Did}/virtualAppointment{?%24select,%24expand}", pathParameters), - } - return m -} -// NewOnlineMeetingsItemVirtualAppointmentRequestBuilder instantiates a new VirtualAppointmentRequestBuilder and sets the default values. -func NewOnlineMeetingsItemVirtualAppointmentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OnlineMeetingsItemVirtualAppointmentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewOnlineMeetingsItemVirtualAppointmentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-delete?view=graph-rest-1.0 -func (m *OnlineMeetingsItemVirtualAppointmentRequestBuilder) Delete(ctx context.Context, requestConfiguration *OnlineMeetingsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get read the properties and relationships of a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-get?view=graph-rest-1.0 -func (m *OnlineMeetingsItemVirtualAppointmentRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsItemVirtualAppointmentRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, 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.CreateVirtualAppointmentFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable), nil -} -// Patch create a new virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-put?view=graph-rest-1.0 -func (m *OnlineMeetingsItemVirtualAppointmentRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, requestConfiguration *OnlineMeetingsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, 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.CreateVirtualAppointmentFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable), nil -} -// ToDeleteRequestInformation delete a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *OnlineMeetingsItemVirtualAppointmentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration)(*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 a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *OnlineMeetingsItemVirtualAppointmentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemVirtualAppointmentRequestBuilderGetRequestConfiguration)(*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 create a new virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *OnlineMeetingsItemVirtualAppointmentRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, requestConfiguration *OnlineMeetingsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration)(*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/app/online_meetings_online_meeting_item_request_builder.go b/app/online_meetings_online_meeting_item_request_builder.go index 527c1e8a5f7..395fb8f8276 100644 --- a/app/online_meetings_online_meeting_item_request_builder.go +++ b/app/online_meetings_online_meeting_item_request_builder.go @@ -193,7 +193,3 @@ func (m *OnlineMeetingsOnlineMeetingItemRequestBuilder) ToPatchRequestInformatio func (m *OnlineMeetingsOnlineMeetingItemRequestBuilder) Transcripts()(*OnlineMeetingsItemTranscriptsRequestBuilder) { return NewOnlineMeetingsItemTranscriptsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// VirtualAppointment provides operations to manage the virtualAppointment property of the microsoft.graph.onlineMeeting entity. -func (m *OnlineMeetingsOnlineMeetingItemRequestBuilder) VirtualAppointment()(*OnlineMeetingsItemVirtualAppointmentRequestBuilder) { - return NewOnlineMeetingsItemVirtualAppointmentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/app/online_meetings_request_builder.go b/app/online_meetings_request_builder.go index bd5a3a3cc85..e0ce89be8b3 100644 --- a/app/online_meetings_request_builder.go +++ b/app/online_meetings_request_builder.go @@ -97,6 +97,14 @@ func (m *OnlineMeetingsRequestBuilder) Get(ctx context.Context, requestConfigura } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingCollectionResponseable), nil } +// GetAllRecordings provides operations to call the getAllRecordings method. +func (m *OnlineMeetingsRequestBuilder) GetAllRecordings()(*OnlineMeetingsGetAllRecordingsRequestBuilder) { + return NewOnlineMeetingsGetAllRecordingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// GetAllTranscripts provides operations to call the getAllTranscripts method. +func (m *OnlineMeetingsRequestBuilder) GetAllTranscripts()(*OnlineMeetingsGetAllTranscriptsRequestBuilder) { + return NewOnlineMeetingsGetAllTranscriptsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create new navigation property to onlineMeetings for app func (m *OnlineMeetingsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, requestConfiguration *OnlineMeetingsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); diff --git a/applications/item_get_member_groups_request_builder.go b/applications/item_get_member_groups_request_builder.go index 294b3f5ace2..8fc306183ef 100644 --- a/applications/item_get_member_groups_request_builder.go +++ b/applications/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/applications/item_owners_ref_request_builder.go b/applications/item_owners_ref_request_builder.go index 560635b6366..b32c89508e0 100644 --- a/applications/item_owners_ref_request_builder.go +++ b/applications/item_owners_ref_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOwnersRefRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOwnersRefRequestBuilderGetQueryParameters directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ItemOwnersRefRequestBuilderGetQueryParameters directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. type ItemOwnersRefRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -55,7 +55,7 @@ func NewItemOwnersRefRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee urlParams["request-raw-url"] = rawUrl return NewItemOwnersRefRequestBuilderInternal(urlParams, requestAdapter) } -// Get directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// Get directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/application-list-owners?view=graph-rest-1.0 @@ -96,7 +96,7 @@ func (m *ItemOwnersRefRequestBuilder) Post(ctx context.Context, body ie233ee762e } return nil } -// ToGetRequestInformation directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ToGetRequestInformation directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. func (m *ItemOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/applications/item_owners_request_builder.go b/applications/item_owners_request_builder.go index f0c2bb1f111..277cb3baaca 100644 --- a/applications/item_owners_request_builder.go +++ b/applications/item_owners_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOwnersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOwnersRequestBuilderGetQueryParameters directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ItemOwnersRequestBuilderGetQueryParameters directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. type ItemOwnersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -67,7 +67,7 @@ func NewItemOwnersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 func (m *ItemOwnersRequestBuilder) Count()(*ItemOwnersCountRequestBuilder) { return NewItemOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// Get directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/application-list-owners?view=graph-rest-1.0 @@ -105,7 +105,7 @@ func (m *ItemOwnersRequestBuilder) GraphUser()(*ItemOwnersGraphUserRequestBuilde func (m *ItemOwnersRequestBuilder) Ref()(*ItemOwnersRefRequestBuilder) { return NewItemOwnersRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ToGetRequestInformation directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. func (m *ItemOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/applicationswithuniquename/applications_with_unique_name_request_builder.go b/applicationswithuniquename/applications_with_unique_name_request_builder.go new file mode 100644 index 00000000000..eb3eb339d9e --- /dev/null +++ b/applicationswithuniquename/applications_with_unique_name_request_builder.go @@ -0,0 +1,167 @@ +package applicationswithuniquename + +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" +) + +// ApplicationsWithUniqueNameRequestBuilder provides operations to manage the collection of application entities. +type ApplicationsWithUniqueNameRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApplicationsWithUniqueNameRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApplicationsWithUniqueNameRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ApplicationsWithUniqueNameRequestBuilderGetQueryParameters get the properties and relationships of an application object. +type ApplicationsWithUniqueNameRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ApplicationsWithUniqueNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApplicationsWithUniqueNameRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApplicationsWithUniqueNameRequestBuilderGetQueryParameters +} +// ApplicationsWithUniqueNameRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApplicationsWithUniqueNameRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewApplicationsWithUniqueNameRequestBuilderInternal instantiates a new ApplicationsWithUniqueNameRequestBuilder and sets the default values. +func NewApplicationsWithUniqueNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, uniqueName *string)(*ApplicationsWithUniqueNameRequestBuilder) { + m := &ApplicationsWithUniqueNameRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/applications(uniqueName='{uniqueName}'){?%24select,%24expand}", pathParameters), + } + if uniqueName != nil { + m.BaseRequestBuilder.PathParameters["uniqueName"] = *uniqueName + } + return m +} +// NewApplicationsWithUniqueNameRequestBuilder instantiates a new ApplicationsWithUniqueNameRequestBuilder and sets the default values. +func NewApplicationsWithUniqueNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApplicationsWithUniqueNameRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApplicationsWithUniqueNameRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Delete deletes an application. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/application-delete?view=graph-rest-1.0 +func (m *ApplicationsWithUniqueNameRequestBuilder) Delete(ctx context.Context, requestConfiguration *ApplicationsWithUniqueNameRequestBuilderDeleteRequestConfiguration)(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 and relationships of an application object. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/application-get?view=graph-rest-1.0 +func (m *ApplicationsWithUniqueNameRequestBuilder) Get(ctx context.Context, requestConfiguration *ApplicationsWithUniqueNameRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, 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.CreateApplicationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable), nil +} +// Patch update the properties of an application object. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/application-update?view=graph-rest-1.0 +func (m *ApplicationsWithUniqueNameRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, requestConfiguration *ApplicationsWithUniqueNameRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, 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.CreateApplicationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable), nil +} +// ToDeleteRequestInformation deletes an application. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. +func (m *ApplicationsWithUniqueNameRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ApplicationsWithUniqueNameRequestBuilderDeleteRequestConfiguration)(*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 and relationships of an application object. +func (m *ApplicationsWithUniqueNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApplicationsWithUniqueNameRequestBuilderGetRequestConfiguration)(*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 an application object. +func (m *ApplicationsWithUniqueNameRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, requestConfiguration *ApplicationsWithUniqueNameRequestBuilderPatchRequestConfiguration)(*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/chats/item_permission_grants_item_get_member_groups_request_builder.go b/chats/item_permission_grants_item_get_member_groups_request_builder.go index c10ef73431b..3fbf4e6ae7f 100644 --- a/chats/item_permission_grants_item_get_member_groups_request_builder.go +++ b/chats/item_permission_grants_item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemPermissionGrantsItemGetMemberGroupsRequestBuilder(rawUrl string, req urlParams["request-raw-url"] = rawUrl return NewItemPermissionGrantsItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemPermissionGrantsItemGetMemberGroupsRequestBuilder) Post(ctx context } return res.(ItemPermissionGrantsItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemPermissionGrantsItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPermissionGrantsItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemPermissionGrantsItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/communications/call_records_call_record_item_request_builder.go b/communications/call_records_call_record_item_request_builder.go index 3fd5ce6d907..a27898a26a8 100644 --- a/communications/call_records_call_record_item_request_builder.go +++ b/communications/call_records_call_record_item_request_builder.go @@ -18,7 +18,7 @@ type CallRecordsCallRecordItemRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// CallRecordsCallRecordItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: +// CallRecordsCallRecordItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. type CallRecordsCallRecordItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *CallRecordsCallRecordItemRequestBuilder) Delete(ctx context.Context, re } return nil } -// Get retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: +// Get retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/callrecords-callrecord-get?view=graph-rest-1.0 @@ -127,7 +127,7 @@ func (m *CallRecordsCallRecordItemRequestBuilder) ToDeleteRequestInformation(ctx } return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: +// ToGetRequestInformation retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. func (m *CallRecordsCallRecordItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CallRecordsCallRecordItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/communications/call_records_item_sessions_request_builder.go b/communications/call_records_item_sessions_request_builder.go index f9e5174964e..8725e1e746f 100644 --- a/communications/call_records_item_sessions_request_builder.go +++ b/communications/call_records_item_sessions_request_builder.go @@ -11,7 +11,7 @@ import ( type CallRecordsItemSessionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// CallRecordsItemSessionsRequestBuilderGetQueryParameters retrieve the list of sessions associated with a callRecord object. +// CallRecordsItemSessionsRequestBuilderGetQueryParameters retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. type CallRecordsItemSessionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewCallRecordsItemSessionsRequestBuilder(rawUrl string, requestAdapter i2ae func (m *CallRecordsItemSessionsRequestBuilder) Count()(*CallRecordsItemSessionsCountRequestBuilder) { return NewCallRecordsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the list of sessions associated with a callRecord object. +// Get retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/callrecords-session-list?view=graph-rest-1.0 @@ -115,7 +115,7 @@ func (m *CallRecordsItemSessionsRequestBuilder) Post(ctx context.Context, body i } return res.(iabe42a55de44a0960e4cc683a105812061defb936fe89e1bc4ab83c390c3839f.Sessionable), nil } -// ToGetRequestInformation retrieve the list of sessions associated with a callRecord object. +// ToGetRequestInformation retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. func (m *CallRecordsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CallRecordsItemSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/communications/call_records_request_builder.go b/communications/call_records_request_builder.go index 1feb08bf1d2..a3cdbbc0bbd 100644 --- a/communications/call_records_request_builder.go +++ b/communications/call_records_request_builder.go @@ -12,7 +12,7 @@ import ( type CallRecordsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// CallRecordsRequestBuilderGetQueryParameters retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: +// CallRecordsRequestBuilderGetQueryParameters retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. type CallRecordsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -75,7 +75,7 @@ func NewCallRecordsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26 func (m *CallRecordsRequestBuilder) Count()(*CallRecordsCountRequestBuilder) { return NewCallRecordsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: +// Get retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. func (m *CallRecordsRequestBuilder) Get(ctx context.Context, requestConfiguration *CallRecordsRequestBuilderGetRequestConfiguration)(iabe42a55de44a0960e4cc683a105812061defb936fe89e1bc4ab83c390c3839f.CallRecordCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *CallRecordsRequestBuilder) Post(ctx context.Context, body iabe42a55de44 } return res.(iabe42a55de44a0960e4cc683a105812061defb936fe89e1bc4ab83c390c3839f.CallRecordable), nil } -// ToGetRequestInformation retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: +// ToGetRequestInformation retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. func (m *CallRecordsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CallRecordsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/communications/calls_item_participants_invite_request_builder.go b/communications/calls_item_participants_invite_request_builder.go index 58b240a09d7..c887f0ff2d8 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://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.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_get_all_recordings_request_builder.go b/communications/online_meetings_get_all_recordings_request_builder.go new file mode 100644 index 00000000000..2024350146e --- /dev/null +++ b/communications/online_meetings_get_all_recordings_request_builder.go @@ -0,0 +1,86 @@ +package communications + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// OnlineMeetingsGetAllRecordingsRequestBuilder provides operations to call the getAllRecordings method. +type OnlineMeetingsGetAllRecordingsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// OnlineMeetingsGetAllRecordingsRequestBuilderGetQueryParameters invoke function getAllRecordings +type OnlineMeetingsGetAllRecordingsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // 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"` +} +// OnlineMeetingsGetAllRecordingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type OnlineMeetingsGetAllRecordingsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *OnlineMeetingsGetAllRecordingsRequestBuilderGetQueryParameters +} +// NewOnlineMeetingsGetAllRecordingsRequestBuilderInternal instantiates a new GetAllRecordingsRequestBuilder and sets the default values. +func NewOnlineMeetingsGetAllRecordingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OnlineMeetingsGetAllRecordingsRequestBuilder) { + m := &OnlineMeetingsGetAllRecordingsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/communications/onlineMeetings/getAllRecordings(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters), + } + return m +} +// NewOnlineMeetingsGetAllRecordingsRequestBuilder instantiates a new GetAllRecordingsRequestBuilder and sets the default values. +func NewOnlineMeetingsGetAllRecordingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OnlineMeetingsGetAllRecordingsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewOnlineMeetingsGetAllRecordingsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getAllRecordings +func (m *OnlineMeetingsGetAllRecordingsRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsGetAllRecordingsRequestBuilderGetRequestConfiguration)(OnlineMeetingsGetAllRecordingsResponseable, 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, CreateOnlineMeetingsGetAllRecordingsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(OnlineMeetingsGetAllRecordingsResponseable), nil +} +// ToGetRequestInformation invoke function getAllRecordings +func (m *OnlineMeetingsGetAllRecordingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsGetAllRecordingsRequestBuilderGetRequestConfiguration)(*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/communications/online_meetings_get_all_recordings_response.go b/communications/online_meetings_get_all_recordings_response.go new file mode 100644 index 00000000000..76337ab0e39 --- /dev/null +++ b/communications/online_meetings_get_all_recordings_response.go @@ -0,0 +1,88 @@ +package communications + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// OnlineMeetingsGetAllRecordingsResponse +type OnlineMeetingsGetAllRecordingsResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewOnlineMeetingsGetAllRecordingsResponse instantiates a new OnlineMeetingsGetAllRecordingsResponse and sets the default values. +func NewOnlineMeetingsGetAllRecordingsResponse()(*OnlineMeetingsGetAllRecordingsResponse) { + m := &OnlineMeetingsGetAllRecordingsResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateOnlineMeetingsGetAllRecordingsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnlineMeetingsGetAllRecordingsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnlineMeetingsGetAllRecordingsResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnlineMeetingsGetAllRecordingsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCallRecordingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *OnlineMeetingsGetAllRecordingsResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable) + } + return nil +} +// Serialize serializes information the current object +func (m *OnlineMeetingsGetAllRecordingsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *OnlineMeetingsGetAllRecordingsResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// OnlineMeetingsGetAllRecordingsResponseable +type OnlineMeetingsGetAllRecordingsResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable)() +} diff --git a/communications/online_meetings_get_all_transcripts_request_builder.go b/communications/online_meetings_get_all_transcripts_request_builder.go new file mode 100644 index 00000000000..307ef5ff109 --- /dev/null +++ b/communications/online_meetings_get_all_transcripts_request_builder.go @@ -0,0 +1,86 @@ +package communications + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// OnlineMeetingsGetAllTranscriptsRequestBuilder provides operations to call the getAllTranscripts method. +type OnlineMeetingsGetAllTranscriptsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// OnlineMeetingsGetAllTranscriptsRequestBuilderGetQueryParameters invoke function getAllTranscripts +type OnlineMeetingsGetAllTranscriptsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // 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"` +} +// OnlineMeetingsGetAllTranscriptsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type OnlineMeetingsGetAllTranscriptsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *OnlineMeetingsGetAllTranscriptsRequestBuilderGetQueryParameters +} +// NewOnlineMeetingsGetAllTranscriptsRequestBuilderInternal instantiates a new GetAllTranscriptsRequestBuilder and sets the default values. +func NewOnlineMeetingsGetAllTranscriptsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OnlineMeetingsGetAllTranscriptsRequestBuilder) { + m := &OnlineMeetingsGetAllTranscriptsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/communications/onlineMeetings/getAllTranscripts(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters), + } + return m +} +// NewOnlineMeetingsGetAllTranscriptsRequestBuilder instantiates a new GetAllTranscriptsRequestBuilder and sets the default values. +func NewOnlineMeetingsGetAllTranscriptsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OnlineMeetingsGetAllTranscriptsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewOnlineMeetingsGetAllTranscriptsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getAllTranscripts +func (m *OnlineMeetingsGetAllTranscriptsRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsGetAllTranscriptsRequestBuilderGetRequestConfiguration)(OnlineMeetingsGetAllTranscriptsResponseable, 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, CreateOnlineMeetingsGetAllTranscriptsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(OnlineMeetingsGetAllTranscriptsResponseable), nil +} +// ToGetRequestInformation invoke function getAllTranscripts +func (m *OnlineMeetingsGetAllTranscriptsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsGetAllTranscriptsRequestBuilderGetRequestConfiguration)(*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/communications/online_meetings_get_all_transcripts_response.go b/communications/online_meetings_get_all_transcripts_response.go new file mode 100644 index 00000000000..b9764b38a30 --- /dev/null +++ b/communications/online_meetings_get_all_transcripts_response.go @@ -0,0 +1,88 @@ +package communications + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// OnlineMeetingsGetAllTranscriptsResponse +type OnlineMeetingsGetAllTranscriptsResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewOnlineMeetingsGetAllTranscriptsResponse instantiates a new OnlineMeetingsGetAllTranscriptsResponse and sets the default values. +func NewOnlineMeetingsGetAllTranscriptsResponse()(*OnlineMeetingsGetAllTranscriptsResponse) { + m := &OnlineMeetingsGetAllTranscriptsResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateOnlineMeetingsGetAllTranscriptsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnlineMeetingsGetAllTranscriptsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnlineMeetingsGetAllTranscriptsResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnlineMeetingsGetAllTranscriptsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCallTranscriptFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *OnlineMeetingsGetAllTranscriptsResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable) + } + return nil +} +// Serialize serializes information the current object +func (m *OnlineMeetingsGetAllTranscriptsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *OnlineMeetingsGetAllTranscriptsResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// OnlineMeetingsGetAllTranscriptsResponseable +type OnlineMeetingsGetAllTranscriptsResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable)() +} diff --git a/communications/online_meetings_item_recordings_call_recording_item_request_builder.go b/communications/online_meetings_item_recordings_call_recording_item_request_builder.go index 8213be54647..05655f63a2b 100644 --- a/communications/online_meetings_item_recordings_call_recording_item_request_builder.go +++ b/communications/online_meetings_item_recordings_call_recording_item_request_builder.go @@ -18,7 +18,7 @@ type OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderDeleteRequestCon // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters get recordings from communications +// OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. type OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,10 @@ func (m *OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) Delete(ctx } return nil } -// Get get recordings from communications +// Get get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/callrecording-get?view=graph-rest-1.0 func (m *OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +127,7 @@ func (m *OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) ToDeleteRe } return requestInfo, nil } -// ToGetRequestInformation get recordings from communications +// ToGetRequestInformation get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/communications/online_meetings_item_recordings_item_content_request_builder.go b/communications/online_meetings_item_recordings_item_content_request_builder.go index d8e3fcce328..74e93f0db46 100644 --- a/communications/online_meetings_item_recordings_item_content_request_builder.go +++ b/communications/online_meetings_item_recordings_item_content_request_builder.go @@ -38,7 +38,7 @@ func NewOnlineMeetingsItemRecordingsItemContentRequestBuilder(rawUrl string, req urlParams["request-raw-url"] = rawUrl return NewOnlineMeetingsItemRecordingsItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get get content for the navigation property recordings from communications +// Get the content of the recording. Read-only. func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsItemRecordingsItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -57,7 +57,7 @@ func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) Get(ctx context. } return res.([]byte), nil } -// Put update content for the navigation property recordings in communications +// Put the content of the recording. Read-only. func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *OnlineMeetingsItemRecordingsItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -76,7 +76,7 @@ func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) Put(ctx context. } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } -// ToGetRequestInformation get content for the navigation property recordings from communications +// ToGetRequestInformation the content of the recording. Read-only. func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRecordingsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -88,7 +88,7 @@ func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) ToGetRequestInfo } return requestInfo, nil } -// ToPutRequestInformation update content for the navigation property recordings in communications +// ToPutRequestInformation the content of the recording. Read-only. func (m *OnlineMeetingsItemRecordingsItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *OnlineMeetingsItemRecordingsItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/communications/online_meetings_item_recordings_request_builder.go b/communications/online_meetings_item_recordings_request_builder.go index 23f3be6eaf6..506ba2a3fb2 100644 --- a/communications/online_meetings_item_recordings_request_builder.go +++ b/communications/online_meetings_item_recordings_request_builder.go @@ -11,7 +11,7 @@ import ( type OnlineMeetingsItemRecordingsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// OnlineMeetingsItemRecordingsRequestBuilderGetQueryParameters get recordings from communications +// OnlineMeetingsItemRecordingsRequestBuilderGetQueryParameters get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. type OnlineMeetingsItemRecordingsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewOnlineMeetingsItemRecordingsRequestBuilder(rawUrl string, requestAdapter func (m *OnlineMeetingsItemRecordingsRequestBuilder) Count()(*OnlineMeetingsItemRecordingsCountRequestBuilder) { return NewOnlineMeetingsItemRecordingsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get recordings from communications +// Get get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *OnlineMeetingsItemRecordingsRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsItemRecordingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *OnlineMeetingsItemRecordingsRequestBuilder) Post(ctx context.Context, b } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } -// ToGetRequestInformation get recordings from communications +// ToGetRequestInformation get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *OnlineMeetingsItemRecordingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRecordingsRequestBuilderGetRequestConfiguration)(*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 393a4b8ba55..8e739de5cb2 100644 --- a/communications/online_meetings_item_registration_request_builder.go +++ b/communications/online_meetings_item_registration_request_builder.go @@ -58,10 +58,10 @@ func NewOnlineMeetingsItemRegistrationRequestBuilder(rawUrl string, requestAdapt func (m *OnlineMeetingsItemRegistrationRequestBuilder) CustomQuestions()(*OnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) { return NewOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. +// Delete disable and delete the externalMeetingRegistration of an onlineMeeting. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 func (m *OnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -125,7 +125,7 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) Patch(ctx context.Context func (m *OnlineMeetingsItemRegistrationRequestBuilder) Registrants()(*OnlineMeetingsItemRegistrationRegistrantsRequestBuilder) { return NewOnlineMeetingsItemRegistrationRegistrantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. +// ToDeleteRequestInformation disable and delete the externalMeetingRegistration of an onlineMeeting. func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/communications/online_meetings_item_virtual_appointment_request_builder.go b/communications/online_meetings_item_virtual_appointment_request_builder.go deleted file mode 100644 index 99aa390eea9..00000000000 --- a/communications/online_meetings_item_virtual_appointment_request_builder.go +++ /dev/null @@ -1,170 +0,0 @@ -package communications - -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" -) - -// OnlineMeetingsItemVirtualAppointmentRequestBuilder provides operations to manage the virtualAppointment property of the microsoft.graph.onlineMeeting entity. -type OnlineMeetingsItemVirtualAppointmentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// OnlineMeetingsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type OnlineMeetingsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// OnlineMeetingsItemVirtualAppointmentRequestBuilderGetQueryParameters read the properties and relationships of a virtualAppointment object. -type OnlineMeetingsItemVirtualAppointmentRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// OnlineMeetingsItemVirtualAppointmentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type OnlineMeetingsItemVirtualAppointmentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *OnlineMeetingsItemVirtualAppointmentRequestBuilderGetQueryParameters -} -// OnlineMeetingsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type OnlineMeetingsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewOnlineMeetingsItemVirtualAppointmentRequestBuilderInternal instantiates a new VirtualAppointmentRequestBuilder and sets the default values. -func NewOnlineMeetingsItemVirtualAppointmentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OnlineMeetingsItemVirtualAppointmentRequestBuilder) { - m := &OnlineMeetingsItemVirtualAppointmentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/virtualAppointment{?%24select,%24expand}", pathParameters), - } - return m -} -// NewOnlineMeetingsItemVirtualAppointmentRequestBuilder instantiates a new VirtualAppointmentRequestBuilder and sets the default values. -func NewOnlineMeetingsItemVirtualAppointmentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OnlineMeetingsItemVirtualAppointmentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewOnlineMeetingsItemVirtualAppointmentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-delete?view=graph-rest-1.0 -func (m *OnlineMeetingsItemVirtualAppointmentRequestBuilder) Delete(ctx context.Context, requestConfiguration *OnlineMeetingsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get read the properties and relationships of a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-get?view=graph-rest-1.0 -func (m *OnlineMeetingsItemVirtualAppointmentRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsItemVirtualAppointmentRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, 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.CreateVirtualAppointmentFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable), nil -} -// Patch create a new virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-put?view=graph-rest-1.0 -func (m *OnlineMeetingsItemVirtualAppointmentRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, requestConfiguration *OnlineMeetingsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, 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.CreateVirtualAppointmentFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable), nil -} -// ToDeleteRequestInformation delete a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *OnlineMeetingsItemVirtualAppointmentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration)(*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 a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *OnlineMeetingsItemVirtualAppointmentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemVirtualAppointmentRequestBuilderGetRequestConfiguration)(*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 create a new virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *OnlineMeetingsItemVirtualAppointmentRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, requestConfiguration *OnlineMeetingsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration)(*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/communications/online_meetings_online_meeting_item_request_builder.go b/communications/online_meetings_online_meeting_item_request_builder.go index bd4a3d41a64..fbacf1d8e26 100644 --- a/communications/online_meetings_online_meeting_item_request_builder.go +++ b/communications/online_meetings_online_meeting_item_request_builder.go @@ -193,7 +193,3 @@ func (m *OnlineMeetingsOnlineMeetingItemRequestBuilder) ToPatchRequestInformatio func (m *OnlineMeetingsOnlineMeetingItemRequestBuilder) Transcripts()(*OnlineMeetingsItemTranscriptsRequestBuilder) { return NewOnlineMeetingsItemTranscriptsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// VirtualAppointment provides operations to manage the virtualAppointment property of the microsoft.graph.onlineMeeting entity. -func (m *OnlineMeetingsOnlineMeetingItemRequestBuilder) VirtualAppointment()(*OnlineMeetingsItemVirtualAppointmentRequestBuilder) { - return NewOnlineMeetingsItemVirtualAppointmentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/communications/online_meetings_request_builder.go b/communications/online_meetings_request_builder.go index ebeb14f7759..c20b779b1b4 100644 --- a/communications/online_meetings_request_builder.go +++ b/communications/online_meetings_request_builder.go @@ -100,6 +100,14 @@ func (m *OnlineMeetingsRequestBuilder) Get(ctx context.Context, requestConfigura } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingCollectionResponseable), nil } +// GetAllRecordings provides operations to call the getAllRecordings method. +func (m *OnlineMeetingsRequestBuilder) GetAllRecordings()(*OnlineMeetingsGetAllRecordingsRequestBuilder) { + return NewOnlineMeetingsGetAllRecordingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// GetAllTranscripts provides operations to call the getAllTranscripts method. +func (m *OnlineMeetingsRequestBuilder) GetAllTranscripts()(*OnlineMeetingsGetAllTranscriptsRequestBuilder) { + return NewOnlineMeetingsGetAllTranscriptsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create new navigation property to onlineMeetings for communications func (m *OnlineMeetingsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, requestConfiguration *OnlineMeetingsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); diff --git a/contacts/item_get_member_groups_request_builder.go b/contacts/item_get_member_groups_request_builder.go index 4c8ce15cb0e..65f54a1723f 100644 --- a/contacts/item_get_member_groups_request_builder.go +++ b/contacts/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/contracts/item_get_member_groups_request_builder.go b/contracts/item_get_member_groups_request_builder.go index 5381e2d48ee..b898565e020 100644 --- a/contracts/item_get_member_groups_request_builder.go +++ b/contracts/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/advanced_threat_protection_onboarding_state_summary_advanced_threat_protection_onboarding_device_setting_states_advanced_threat_protection_onboarding_device_setting_state_item_request_builder.go b/devicemanagement/advanced_threat_protection_onboarding_state_summary_advanced_threat_protection_onboarding_device_setting_states_advanced_threat_protection_onboarding_device_setting_state_item_request_builder.go index 508bc35cceb..a87694c0760 100644 --- a/devicemanagement/advanced_threat_protection_onboarding_state_summary_advanced_threat_protection_onboarding_device_setting_states_advanced_threat_protection_onboarding_device_setting_state_item_request_builder.go +++ b/devicemanagement/advanced_threat_protection_onboarding_state_summary_advanced_threat_protection_onboarding_device_setting_states_advanced_threat_protection_onboarding_device_setting_state_item_request_builder.go @@ -18,7 +18,7 @@ type AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboa // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesAdvancedThreatProtectionOnboardingDeviceSettingStateItemRequestBuilderGetQueryParameters not yet documented +// AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesAdvancedThreatProtectionOnboardingDeviceSettingStateItemRequestBuilderGetQueryParameters get advancedThreatProtectionOnboardingDeviceSettingStates from deviceManagement type AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesAdvancedThreatProtectionOnboardingDeviceSettingStateItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionO } return nil } -// Get not yet documented +// Get get advancedThreatProtectionOnboardingDeviceSettingStates from deviceManagement func (m *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesAdvancedThreatProtectionOnboardingDeviceSettingStateItemRequestBuilder) Get(ctx context.Context, requestConfiguration *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesAdvancedThreatProtectionOnboardingDeviceSettingStateItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdvancedThreatProtectionOnboardingDeviceSettingStateable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +120,7 @@ func (m *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionO } return requestInfo, nil } -// ToGetRequestInformation not yet documented +// ToGetRequestInformation get advancedThreatProtectionOnboardingDeviceSettingStates from deviceManagement func (m *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesAdvancedThreatProtectionOnboardingDeviceSettingStateItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesAdvancedThreatProtectionOnboardingDeviceSettingStateItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/advanced_threat_protection_onboarding_state_summary_advanced_threat_protection_onboarding_device_setting_states_request_builder.go b/devicemanagement/advanced_threat_protection_onboarding_state_summary_advanced_threat_protection_onboarding_device_setting_states_request_builder.go index caacf8a2021..8835761f94c 100644 --- a/devicemanagement/advanced_threat_protection_onboarding_state_summary_advanced_threat_protection_onboarding_device_setting_states_request_builder.go +++ b/devicemanagement/advanced_threat_protection_onboarding_state_summary_advanced_threat_protection_onboarding_device_setting_states_request_builder.go @@ -11,7 +11,7 @@ import ( type AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesRequestBuilderGetQueryParameters not yet documented +// AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesRequestBuilderGetQueryParameters get advancedThreatProtectionOnboardingDeviceSettingStates from deviceManagement type AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewAdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOn func (m *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesRequestBuilder) Count()(*AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCountRequestBuilder) { return NewAdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get not yet documented +// Get get advancedThreatProtectionOnboardingDeviceSettingStates from deviceManagement func (m *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesRequestBuilder) Get(ctx context.Context, requestConfiguration *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdvancedThreatProtectionOnboardingDeviceSettingStateCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionO } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdvancedThreatProtectionOnboardingDeviceSettingStateable), nil } -// ToGetRequestInformation not yet documented +// ToGetRequestInformation get advancedThreatProtectionOnboardingDeviceSettingStates from deviceManagement func (m *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/comanaged_devices_bulk_reprovision_cloud_pc_request_builder.go b/devicemanagement/comanaged_devices_bulk_reprovision_cloud_pc_request_builder.go index e58fa4bed53..79f3517c49e 100644 --- a/devicemanagement/comanaged_devices_bulk_reprovision_cloud_pc_request_builder.go +++ b/devicemanagement/comanaged_devices_bulk_reprovision_cloud_pc_request_builder.go @@ -32,6 +32,7 @@ func NewComanagedDevicesBulkReprovisionCloudPcRequestBuilder(rawUrl string, requ return NewComanagedDevicesBulkReprovisionCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post bulk reprovision a set of Cloud PC devices with Intune managed device IDs. +// Deprecated: The bulkReprovisionCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkReprovisionCloudPc on 2023-05-24 and will be removed 2023-09-24 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/manageddevice-bulkreprovisioncloudpc?view=graph-rest-1.0 @@ -54,6 +55,7 @@ func (m *ComanagedDevicesBulkReprovisionCloudPcRequestBuilder) Post(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcBulkRemoteActionResultable), nil } // ToPostRequestInformation bulk reprovision a set of Cloud PC devices with Intune managed device IDs. +// Deprecated: The bulkReprovisionCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkReprovisionCloudPc on 2023-05-24 and will be removed 2023-09-24 func (m *ComanagedDevicesBulkReprovisionCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ComanagedDevicesBulkReprovisionCloudPcPostRequestBodyable, requestConfiguration *ComanagedDevicesBulkReprovisionCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/comanaged_devices_bulk_restore_cloud_pc_request_builder.go b/devicemanagement/comanaged_devices_bulk_restore_cloud_pc_request_builder.go index d33ea553300..f40521d3637 100644 --- a/devicemanagement/comanaged_devices_bulk_restore_cloud_pc_request_builder.go +++ b/devicemanagement/comanaged_devices_bulk_restore_cloud_pc_request_builder.go @@ -32,6 +32,7 @@ func NewComanagedDevicesBulkRestoreCloudPcRequestBuilder(rawUrl string, requestA return NewComanagedDevicesBulkRestoreCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post restore multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices and a restore point date and time. +// Deprecated: The bulkRestoreCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkRestoreCloudPc on 2023-05-24 and will be removed 2023-09-24 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/manageddevice-bulkrestorecloudpc?view=graph-rest-1.0 @@ -54,6 +55,7 @@ func (m *ComanagedDevicesBulkRestoreCloudPcRequestBuilder) Post(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcBulkRemoteActionResultable), nil } // ToPostRequestInformation restore multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices and a restore point date and time. +// Deprecated: The bulkRestoreCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkRestoreCloudPc on 2023-05-24 and will be removed 2023-09-24 func (m *ComanagedDevicesBulkRestoreCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ComanagedDevicesBulkRestoreCloudPcPostRequestBodyable, requestConfiguration *ComanagedDevicesBulkRestoreCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/comanaged_devices_item_reprovision_cloud_pc_request_builder.go b/devicemanagement/comanaged_devices_item_reprovision_cloud_pc_request_builder.go index a6677e09ea1..7d2488a03ed 100644 --- a/devicemanagement/comanaged_devices_item_reprovision_cloud_pc_request_builder.go +++ b/devicemanagement/comanaged_devices_item_reprovision_cloud_pc_request_builder.go @@ -31,6 +31,7 @@ func NewComanagedDevicesItemReprovisionCloudPcRequestBuilder(rawUrl string, requ return NewComanagedDevicesItemReprovisionCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post reprovision a Cloud PC with an Intune managed device ID. +// Deprecated: The reprovisionCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use reprovision instead as of 2023-07/reprovisionCloudPc on 2023-07-17 and will be removed 2023-09-30 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/manageddevice-reprovisioncloudpc?view=graph-rest-1.0 @@ -50,6 +51,7 @@ func (m *ComanagedDevicesItemReprovisionCloudPcRequestBuilder) Post(ctx context. return nil } // ToPostRequestInformation reprovision a Cloud PC with an Intune managed device ID. +// Deprecated: The reprovisionCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use reprovision instead as of 2023-07/reprovisionCloudPc on 2023-07-17 and will be removed 2023-09-30 func (m *ComanagedDevicesItemReprovisionCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ComanagedDevicesItemReprovisionCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/comanaged_devices_item_restore_cloud_pc_request_builder.go b/devicemanagement/comanaged_devices_item_restore_cloud_pc_request_builder.go index 7b0b4ef8cf3..9771fb6c0f4 100644 --- a/devicemanagement/comanaged_devices_item_restore_cloud_pc_request_builder.go +++ b/devicemanagement/comanaged_devices_item_restore_cloud_pc_request_builder.go @@ -31,6 +31,7 @@ func NewComanagedDevicesItemRestoreCloudPcRequestBuilder(rawUrl string, requestA return NewComanagedDevicesItemRestoreCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post restore a Cloud PC device to a previous state with an Intune managed device ID. +// Deprecated: The restoreCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use restore instead as of 2023-07/restoreCloudPc on 2023-07-17 and will be removed 2023-09-30 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/manageddevice-restorecloudpc?view=graph-rest-1.0 @@ -50,6 +51,7 @@ func (m *ComanagedDevicesItemRestoreCloudPcRequestBuilder) Post(ctx context.Cont return nil } // ToPostRequestInformation restore a Cloud PC device to a previous state with an Intune managed device ID. +// Deprecated: The restoreCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use restore instead as of 2023-07/restoreCloudPc on 2023-07-17 and will be removed 2023-09-30 func (m *ComanagedDevicesItemRestoreCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ComanagedDevicesItemRestoreCloudPcPostRequestBodyable, requestConfiguration *ComanagedDevicesItemRestoreCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/device_compliance_policy_setting_state_summaries_item_device_compliance_setting_states_device_compliance_setting_state_item_request_builder.go b/devicemanagement/device_compliance_policy_setting_state_summaries_item_device_compliance_setting_states_device_compliance_setting_state_item_request_builder.go index 4e8d3035606..f1b0494e45c 100644 --- a/devicemanagement/device_compliance_policy_setting_state_summaries_item_device_compliance_setting_states_device_compliance_setting_state_item_request_builder.go +++ b/devicemanagement/device_compliance_policy_setting_state_summaries_item_device_compliance_setting_states_device_compliance_setting_state_item_request_builder.go @@ -18,7 +18,7 @@ type DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingState // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesDeviceComplianceSettingStateItemRequestBuilderGetQueryParameters not yet documented +// DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesDeviceComplianceSettingStateItemRequestBuilderGetQueryParameters get deviceComplianceSettingStates from deviceManagement type DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesDeviceComplianceSettingStateItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingS } return nil } -// Get not yet documented +// Get get deviceComplianceSettingStates from deviceManagement func (m *DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesDeviceComplianceSettingStateItemRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesDeviceComplianceSettingStateItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceComplianceSettingStateable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +120,7 @@ func (m *DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingS } return requestInfo, nil } -// ToGetRequestInformation not yet documented +// ToGetRequestInformation get deviceComplianceSettingStates from deviceManagement func (m *DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesDeviceComplianceSettingStateItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesDeviceComplianceSettingStateItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/device_compliance_policy_setting_state_summaries_item_device_compliance_setting_states_request_builder.go b/devicemanagement/device_compliance_policy_setting_state_summaries_item_device_compliance_setting_states_request_builder.go index 4cb599ce9c5..4478d42ae63 100644 --- a/devicemanagement/device_compliance_policy_setting_state_summaries_item_device_compliance_setting_states_request_builder.go +++ b/devicemanagement/device_compliance_policy_setting_state_summaries_item_device_compliance_setting_states_request_builder.go @@ -11,7 +11,7 @@ import ( type DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesRequestBuilderGetQueryParameters not yet documented +// DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesRequestBuilderGetQueryParameters get deviceComplianceSettingStates from deviceManagement type DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewDeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingSt func (m *DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesRequestBuilder) Count()(*DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesCountRequestBuilder) { return NewDeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get not yet documented +// Get get deviceComplianceSettingStates from deviceManagement func (m *DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceComplianceSettingStateCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingS } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceComplianceSettingStateable), nil } -// ToGetRequestInformation not yet documented +// ToGetRequestInformation get deviceComplianceSettingStates from deviceManagement func (m *DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceCompliancePolicySettingStateSummariesItemDeviceComplianceSettingStatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/managed_devices_bulk_reprovision_cloud_pc_request_builder.go b/devicemanagement/managed_devices_bulk_reprovision_cloud_pc_request_builder.go index 3280e623a86..f25fbce3302 100644 --- a/devicemanagement/managed_devices_bulk_reprovision_cloud_pc_request_builder.go +++ b/devicemanagement/managed_devices_bulk_reprovision_cloud_pc_request_builder.go @@ -32,6 +32,7 @@ func NewManagedDevicesBulkReprovisionCloudPcRequestBuilder(rawUrl string, reques return NewManagedDevicesBulkReprovisionCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post bulk reprovision a set of Cloud PC devices with Intune managed device IDs. +// Deprecated: The bulkReprovisionCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkReprovisionCloudPc on 2023-05-24 and will be removed 2023-09-24 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/manageddevice-bulkreprovisioncloudpc?view=graph-rest-1.0 @@ -54,6 +55,7 @@ func (m *ManagedDevicesBulkReprovisionCloudPcRequestBuilder) Post(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcBulkRemoteActionResultable), nil } // ToPostRequestInformation bulk reprovision a set of Cloud PC devices with Intune managed device IDs. +// Deprecated: The bulkReprovisionCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkReprovisionCloudPc on 2023-05-24 and will be removed 2023-09-24 func (m *ManagedDevicesBulkReprovisionCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ManagedDevicesBulkReprovisionCloudPcPostRequestBodyable, requestConfiguration *ManagedDevicesBulkReprovisionCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/managed_devices_bulk_restore_cloud_pc_request_builder.go b/devicemanagement/managed_devices_bulk_restore_cloud_pc_request_builder.go index a09b1f59ac2..f66e6800929 100644 --- a/devicemanagement/managed_devices_bulk_restore_cloud_pc_request_builder.go +++ b/devicemanagement/managed_devices_bulk_restore_cloud_pc_request_builder.go @@ -32,6 +32,7 @@ func NewManagedDevicesBulkRestoreCloudPcRequestBuilder(rawUrl string, requestAda return NewManagedDevicesBulkRestoreCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post restore multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices and a restore point date and time. +// Deprecated: The bulkRestoreCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkRestoreCloudPc on 2023-05-24 and will be removed 2023-09-24 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/manageddevice-bulkrestorecloudpc?view=graph-rest-1.0 @@ -54,6 +55,7 @@ func (m *ManagedDevicesBulkRestoreCloudPcRequestBuilder) Post(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcBulkRemoteActionResultable), nil } // ToPostRequestInformation restore multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices and a restore point date and time. +// Deprecated: The bulkRestoreCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkRestoreCloudPc on 2023-05-24 and will be removed 2023-09-24 func (m *ManagedDevicesBulkRestoreCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ManagedDevicesBulkRestoreCloudPcPostRequestBodyable, requestConfiguration *ManagedDevicesBulkRestoreCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/managed_devices_item_reprovision_cloud_pc_request_builder.go b/devicemanagement/managed_devices_item_reprovision_cloud_pc_request_builder.go index e0b1dfc4934..00b4c0db263 100644 --- a/devicemanagement/managed_devices_item_reprovision_cloud_pc_request_builder.go +++ b/devicemanagement/managed_devices_item_reprovision_cloud_pc_request_builder.go @@ -31,6 +31,7 @@ func NewManagedDevicesItemReprovisionCloudPcRequestBuilder(rawUrl string, reques return NewManagedDevicesItemReprovisionCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post reprovision a Cloud PC with an Intune managed device ID. +// Deprecated: The reprovisionCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use reprovision instead as of 2023-07/reprovisionCloudPc on 2023-07-17 and will be removed 2023-09-30 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/manageddevice-reprovisioncloudpc?view=graph-rest-1.0 @@ -50,6 +51,7 @@ func (m *ManagedDevicesItemReprovisionCloudPcRequestBuilder) Post(ctx context.Co return nil } // ToPostRequestInformation reprovision a Cloud PC with an Intune managed device ID. +// Deprecated: The reprovisionCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use reprovision instead as of 2023-07/reprovisionCloudPc on 2023-07-17 and will be removed 2023-09-30 func (m *ManagedDevicesItemReprovisionCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ManagedDevicesItemReprovisionCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/managed_devices_item_restore_cloud_pc_request_builder.go b/devicemanagement/managed_devices_item_restore_cloud_pc_request_builder.go index 415c2e4ddf2..b8a94456e5d 100644 --- a/devicemanagement/managed_devices_item_restore_cloud_pc_request_builder.go +++ b/devicemanagement/managed_devices_item_restore_cloud_pc_request_builder.go @@ -31,6 +31,7 @@ func NewManagedDevicesItemRestoreCloudPcRequestBuilder(rawUrl string, requestAda return NewManagedDevicesItemRestoreCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post restore a Cloud PC device to a previous state with an Intune managed device ID. +// Deprecated: The restoreCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use restore instead as of 2023-07/restoreCloudPc on 2023-07-17 and will be removed 2023-09-30 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/manageddevice-restorecloudpc?view=graph-rest-1.0 @@ -50,6 +51,7 @@ func (m *ManagedDevicesItemRestoreCloudPcRequestBuilder) Post(ctx context.Contex return nil } // ToPostRequestInformation restore a Cloud PC device to a previous state with an Intune managed device ID. +// Deprecated: The restoreCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use restore instead as of 2023-07/restoreCloudPc on 2023-07-17 and will be removed 2023-09-30 func (m *ManagedDevicesItemRestoreCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ManagedDevicesItemRestoreCloudPcPostRequestBodyable, requestConfiguration *ManagedDevicesItemRestoreCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/reports_get_autopilot_deployment_status_post_request_body.go b/devicemanagement/reports_get_autopilot_deployment_device_information_post_request_body.go similarity index 73% rename from devicemanagement/reports_get_autopilot_deployment_status_post_request_body.go rename to devicemanagement/reports_get_autopilot_deployment_device_information_post_request_body.go index ec2388a720a..f75924b90eb 100644 --- a/devicemanagement/reports_get_autopilot_deployment_status_post_request_body.go +++ b/devicemanagement/reports_get_autopilot_deployment_device_information_post_request_body.go @@ -5,25 +5,25 @@ import ( ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) -// ReportsGetAutopilotDeploymentStatusPostRequestBody -type ReportsGetAutopilotDeploymentStatusPostRequestBody struct { +// ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody +type ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewReportsGetAutopilotDeploymentStatusPostRequestBody instantiates a new ReportsGetAutopilotDeploymentStatusPostRequestBody and sets the default values. -func NewReportsGetAutopilotDeploymentStatusPostRequestBody()(*ReportsGetAutopilotDeploymentStatusPostRequestBody) { - m := &ReportsGetAutopilotDeploymentStatusPostRequestBody{ +// NewReportsGetAutopilotDeploymentDeviceInformationPostRequestBody instantiates a new ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody and sets the default values. +func NewReportsGetAutopilotDeploymentDeviceInformationPostRequestBody()(*ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) { + m := &ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) return m } -// CreateReportsGetAutopilotDeploymentStatusPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateReportsGetAutopilotDeploymentStatusPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsGetAutopilotDeploymentStatusPostRequestBody(), nil +// CreateReportsGetAutopilotDeploymentDeviceInformationPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateReportsGetAutopilotDeploymentDeviceInformationPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsGetAutopilotDeploymentDeviceInformationPostRequestBody(), 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 *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetAdditionalData()(map[string]any) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) GetAdditionalData()(map[string]any) { val , err := m.backingStore.Get("additionalData") if err != nil { panic(err) @@ -35,11 +35,11 @@ func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetAdditionalData() return val.(map[string]any) } // GetBackingStore gets the backingStore property value. Stores model information. -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } // GetFieldDeserializers the deserialization information for the current model -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["filter"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() @@ -152,7 +152,7 @@ func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetFieldDeserialize return res } // GetFilter gets the filter property value. The filter property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetFilter()(*string) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) GetFilter()(*string) { val, err := m.GetBackingStore().Get("filter") if err != nil { panic(err) @@ -163,7 +163,7 @@ func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetFilter()(*string return nil } // GetGroupBy gets the groupBy property value. The groupBy property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetGroupBy()([]string) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) GetGroupBy()([]string) { val, err := m.GetBackingStore().Get("groupBy") if err != nil { panic(err) @@ -174,7 +174,7 @@ func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetGroupBy()([]stri return nil } // GetName gets the name property value. The name property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetName()(*string) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { panic(err) @@ -185,7 +185,7 @@ func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetName()(*string) return nil } // GetOrderBy gets the orderBy property value. The orderBy property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetOrderBy()([]string) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) GetOrderBy()([]string) { val, err := m.GetBackingStore().Get("orderBy") if err != nil { panic(err) @@ -196,7 +196,7 @@ func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetOrderBy()([]stri return nil } // GetSearch gets the search property value. The search property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetSearch()(*string) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) GetSearch()(*string) { val, err := m.GetBackingStore().Get("search") if err != nil { panic(err) @@ -207,7 +207,7 @@ func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetSearch()(*string return nil } // GetSelectEscaped gets the select property value. The select property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetSelectEscaped()([]string) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) GetSelectEscaped()([]string) { val, err := m.GetBackingStore().Get("selectEscaped") if err != nil { panic(err) @@ -218,7 +218,7 @@ func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetSelectEscaped()( return nil } // GetSessionId gets the sessionId property value. The sessionId property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetSessionId()(*string) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) GetSessionId()(*string) { val, err := m.GetBackingStore().Get("sessionId") if err != nil { panic(err) @@ -229,7 +229,7 @@ func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetSessionId()(*str return nil } // GetSkip gets the skip property value. The skip property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetSkip()(*int32) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) GetSkip()(*int32) { val, err := m.GetBackingStore().Get("skip") if err != nil { panic(err) @@ -240,7 +240,7 @@ func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetSkip()(*int32) { return nil } // GetTop gets the top property value. The top property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetTop()(*int32) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) GetTop()(*int32) { val, err := m.GetBackingStore().Get("top") if err != nil { panic(err) @@ -251,7 +251,7 @@ func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) GetTop()(*int32) { return nil } // Serialize serializes information the current object -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { err := writer.WriteStringValue("filter", m.GetFilter()) if err != nil { @@ -315,81 +315,81 @@ func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) Serialize(writer i8 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 *ReportsGetAutopilotDeploymentStatusPostRequestBody) SetAdditionalData(value map[string]any)() { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) 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 *ReportsGetAutopilotDeploymentStatusPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } // SetFilter sets the filter property value. The filter property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) SetFilter(value *string)() { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) SetFilter(value *string)() { err := m.GetBackingStore().Set("filter", value) if err != nil { panic(err) } } // SetGroupBy sets the groupBy property value. The groupBy property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) SetGroupBy(value []string)() { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) SetGroupBy(value []string)() { err := m.GetBackingStore().Set("groupBy", value) if err != nil { panic(err) } } // SetName sets the name property value. The name property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) SetName(value *string)() { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } // SetOrderBy sets the orderBy property value. The orderBy property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) SetOrderBy(value []string)() { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) SetOrderBy(value []string)() { err := m.GetBackingStore().Set("orderBy", value) if err != nil { panic(err) } } // SetSearch sets the search property value. The search property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) SetSearch(value *string)() { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) SetSearch(value *string)() { err := m.GetBackingStore().Set("search", value) if err != nil { panic(err) } } // SetSelectEscaped sets the select property value. The select property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) SetSelectEscaped(value []string)() { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) SetSelectEscaped(value []string)() { err := m.GetBackingStore().Set("selectEscaped", value) if err != nil { panic(err) } } // SetSessionId sets the sessionId property value. The sessionId property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) SetSessionId(value *string)() { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) SetSessionId(value *string)() { err := m.GetBackingStore().Set("sessionId", value) if err != nil { panic(err) } } // SetSkip sets the skip property value. The skip property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) SetSkip(value *int32)() { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) SetSkip(value *int32)() { err := m.GetBackingStore().Set("skip", value) if err != nil { panic(err) } } // SetTop sets the top property value. The top property -func (m *ReportsGetAutopilotDeploymentStatusPostRequestBody) SetTop(value *int32)() { +func (m *ReportsGetAutopilotDeploymentDeviceInformationPostRequestBody) SetTop(value *int32)() { err := m.GetBackingStore().Set("top", value) if err != nil { panic(err) } } -// ReportsGetAutopilotDeploymentStatusPostRequestBodyable -type ReportsGetAutopilotDeploymentStatusPostRequestBodyable interface { +// ReportsGetAutopilotDeploymentDeviceInformationPostRequestBodyable +type ReportsGetAutopilotDeploymentDeviceInformationPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable diff --git a/devicemanagement/reports_get_autopilot_deployment_status_request_builder.go b/devicemanagement/reports_get_autopilot_deployment_device_information_request_builder.go similarity index 50% rename from devicemanagement/reports_get_autopilot_deployment_status_request_builder.go rename to devicemanagement/reports_get_autopilot_deployment_device_information_request_builder.go index 27d163023c1..80ec9932b4a 100644 --- a/devicemanagement/reports_get_autopilot_deployment_status_request_builder.go +++ b/devicemanagement/reports_get_autopilot_deployment_device_information_request_builder.go @@ -6,32 +6,32 @@ import ( i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) -// ReportsGetAutopilotDeploymentStatusRequestBuilder provides operations to call the getAutopilotDeploymentStatus method. -type ReportsGetAutopilotDeploymentStatusRequestBuilder struct { +// ReportsGetAutopilotDeploymentDeviceInformationRequestBuilder provides operations to call the getAutopilotDeploymentDeviceInformation method. +type ReportsGetAutopilotDeploymentDeviceInformationRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ReportsGetAutopilotDeploymentStatusRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ReportsGetAutopilotDeploymentStatusRequestBuilderPostRequestConfiguration struct { +// ReportsGetAutopilotDeploymentDeviceInformationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportsGetAutopilotDeploymentDeviceInformationRequestBuilderPostRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// NewReportsGetAutopilotDeploymentStatusRequestBuilderInternal instantiates a new GetAutopilotDeploymentStatusRequestBuilder and sets the default values. -func NewReportsGetAutopilotDeploymentStatusRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsGetAutopilotDeploymentStatusRequestBuilder) { - m := &ReportsGetAutopilotDeploymentStatusRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceManagement/reports/getAutopilotDeploymentStatus", pathParameters), +// NewReportsGetAutopilotDeploymentDeviceInformationRequestBuilderInternal instantiates a new GetAutopilotDeploymentDeviceInformationRequestBuilder and sets the default values. +func NewReportsGetAutopilotDeploymentDeviceInformationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsGetAutopilotDeploymentDeviceInformationRequestBuilder) { + m := &ReportsGetAutopilotDeploymentDeviceInformationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceManagement/reports/getAutopilotDeploymentDeviceInformation", pathParameters), } return m } -// NewReportsGetAutopilotDeploymentStatusRequestBuilder instantiates a new GetAutopilotDeploymentStatusRequestBuilder and sets the default values. -func NewReportsGetAutopilotDeploymentStatusRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsGetAutopilotDeploymentStatusRequestBuilder) { +// NewReportsGetAutopilotDeploymentDeviceInformationRequestBuilder instantiates a new GetAutopilotDeploymentDeviceInformationRequestBuilder and sets the default values. +func NewReportsGetAutopilotDeploymentDeviceInformationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsGetAutopilotDeploymentDeviceInformationRequestBuilder) { urlParams := make(map[string]string) urlParams["request-raw-url"] = rawUrl - return NewReportsGetAutopilotDeploymentStatusRequestBuilderInternal(urlParams, requestAdapter) + return NewReportsGetAutopilotDeploymentDeviceInformationRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action getAutopilotDeploymentStatus -func (m *ReportsGetAutopilotDeploymentStatusRequestBuilder) Post(ctx context.Context, body ReportsGetAutopilotDeploymentStatusPostRequestBodyable, requestConfiguration *ReportsGetAutopilotDeploymentStatusRequestBuilderPostRequestConfiguration)([]byte, error) { +// Post invoke action getAutopilotDeploymentDeviceInformation +func (m *ReportsGetAutopilotDeploymentDeviceInformationRequestBuilder) Post(ctx context.Context, body ReportsGetAutopilotDeploymentDeviceInformationPostRequestBodyable, requestConfiguration *ReportsGetAutopilotDeploymentDeviceInformationRequestBuilderPostRequestConfiguration)([]byte, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { return nil, err @@ -49,8 +49,8 @@ func (m *ReportsGetAutopilotDeploymentStatusRequestBuilder) Post(ctx context.Con } return res.([]byte), nil } -// ToPostRequestInformation invoke action getAutopilotDeploymentStatus -func (m *ReportsGetAutopilotDeploymentStatusRequestBuilder) ToPostRequestInformation(ctx context.Context, body ReportsGetAutopilotDeploymentStatusPostRequestBodyable, requestConfiguration *ReportsGetAutopilotDeploymentStatusRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { +// ToPostRequestInformation invoke action getAutopilotDeploymentDeviceInformation +func (m *ReportsGetAutopilotDeploymentDeviceInformationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ReportsGetAutopilotDeploymentDeviceInformationPostRequestBodyable, requestConfiguration *ReportsGetAutopilotDeploymentDeviceInformationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters diff --git a/devicemanagement/reports_request_builder.go b/devicemanagement/reports_request_builder.go index fae7a16ee86..c71c966057a 100644 --- a/devicemanagement/reports_request_builder.go +++ b/devicemanagement/reports_request_builder.go @@ -117,9 +117,9 @@ func (m *ReportsRequestBuilder) GetAppsInstallSummaryReport()(*ReportsGetAppsIns func (m *ReportsRequestBuilder) GetAppStatusOverviewReport()(*ReportsGetAppStatusOverviewReportRequestBuilder) { return NewReportsGetAppStatusOverviewReportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// GetAutopilotDeploymentStatus provides operations to call the getAutopilotDeploymentStatus method. -func (m *ReportsRequestBuilder) GetAutopilotDeploymentStatus()(*ReportsGetAutopilotDeploymentStatusRequestBuilder) { - return NewReportsGetAutopilotDeploymentStatusRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +// GetAutopilotDeploymentDeviceInformation provides operations to call the getAutopilotDeploymentDeviceInformation method. +func (m *ReportsRequestBuilder) GetAutopilotDeploymentDeviceInformation()(*ReportsGetAutopilotDeploymentDeviceInformationRequestBuilder) { + return NewReportsGetAutopilotDeploymentDeviceInformationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // GetCachedReport provides operations to call the getCachedReport method. func (m *ReportsRequestBuilder) GetCachedReport()(*ReportsGetCachedReportRequestBuilder) { diff --git a/devicemanagement/virtual_endpoint_cloud_p_cs_bulk_resize_request_builder.go b/devicemanagement/virtual_endpoint_cloud_p_cs_bulk_resize_request_builder.go index 22afac333a3..22b13f8bbb7 100644 --- a/devicemanagement/virtual_endpoint_cloud_p_cs_bulk_resize_request_builder.go +++ b/devicemanagement/virtual_endpoint_cloud_p_cs_bulk_resize_request_builder.go @@ -31,6 +31,7 @@ func NewVirtualEndpointCloudPCsBulkResizeRequestBuilder(rawUrl string, requestAd return NewVirtualEndpointCloudPCsBulkResizeRequestBuilderInternal(urlParams, requestAdapter) } // Post perform a bulk resize action to resize a group of cloudPCs that have successfully passed validation. If any devices cannot be resized, those devices will indicate 'resize failed'. The remaining devices will be provisioned for the resize process. +// Deprecated: The bulkResize action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkResize on 2023-05-24 and will be removed 2023-09-24 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/cloudpc-bulkresize?view=graph-rest-1.0 @@ -53,6 +54,7 @@ func (m *VirtualEndpointCloudPCsBulkResizeRequestBuilder) Post(ctx context.Conte return res.(VirtualEndpointCloudPCsBulkResizeResponseable), nil } // ToPostRequestInformation perform a bulk resize action to resize a group of cloudPCs that have successfully passed validation. If any devices cannot be resized, those devices will indicate 'resize failed'. The remaining devices will be provisioned for the resize process. +// Deprecated: The bulkResize action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkResize on 2023-05-24 and will be removed 2023-09-24 func (m *VirtualEndpointCloudPCsBulkResizeRequestBuilder) ToPostRequestInformation(ctx context.Context, body VirtualEndpointCloudPCsBulkResizePostRequestBodyable, requestConfiguration *VirtualEndpointCloudPCsBulkResizeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devices/item_get_member_groups_request_builder.go b/devices/item_get_member_groups_request_builder.go index 07cffbd58a4..7f45ac7674c 100644 --- a/devices/item_get_member_groups_request_builder.go +++ b/devices/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/directory/administrative_units_item_get_member_groups_request_builder.go b/directory/administrative_units_item_get_member_groups_request_builder.go index c41025e0168..ee8894673ce 100644 --- a/directory/administrative_units_item_get_member_groups_request_builder.go +++ b/directory/administrative_units_item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewAdministrativeUnitsItemGetMemberGroupsRequestBuilder(rawUrl string, requ urlParams["request-raw-url"] = rawUrl return NewAdministrativeUnitsItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *AdministrativeUnitsItemGetMemberGroupsRequestBuilder) Post(ctx context. } return res.(AdministrativeUnitsItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *AdministrativeUnitsItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body AdministrativeUnitsItemGetMemberGroupsPostRequestBodyable, requestConfiguration *AdministrativeUnitsItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/directory/deleted_items_item_get_member_groups_request_builder.go b/directory/deleted_items_item_get_member_groups_request_builder.go index fb89b17e071..be15dcfcdca 100644 --- a/directory/deleted_items_item_get_member_groups_request_builder.go +++ b/directory/deleted_items_item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewDeletedItemsItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdap urlParams["request-raw-url"] = rawUrl return NewDeletedItemsItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *DeletedItemsItemGetMemberGroupsRequestBuilder) Post(ctx context.Context } return res.(DeletedItemsItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *DeletedItemsItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body DeletedItemsItemGetMemberGroupsPostRequestBodyable, requestConfiguration *DeletedItemsItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/directoryobjects/item_get_member_groups_request_builder.go b/directoryobjects/item_get_member_groups_request_builder.go index 4a6c41259a4..03b97d4cc52 100644 --- a/directoryobjects/item_get_member_groups_request_builder.go +++ b/directoryobjects/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/directoryroles/item_get_member_groups_request_builder.go b/directoryroles/item_get_member_groups_request_builder.go index 4a9b04438c2..2d97b5972ba 100644 --- a/directoryroles/item_get_member_groups_request_builder.go +++ b/directoryroles/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/directoryroletemplates/item_get_member_groups_request_builder.go b/directoryroletemplates/item_get_member_groups_request_builder.go index 5b8291239a2..df21662bdbc 100644 --- a/directoryroletemplates/item_get_member_groups_request_builder.go +++ b/directoryroletemplates/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/directorysettingtemplates/item_get_member_groups_request_builder.go b/directorysettingtemplates/item_get_member_groups_request_builder.go index 83d3397160b..4d21921a9a8 100644 --- a/directorysettingtemplates/item_get_member_groups_request_builder.go +++ b/directorysettingtemplates/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/domains/domain_item_request_builder.go b/domains/domain_item_request_builder.go index 2cde3e710c3..2e7ae6b15a1 100644 --- a/domains/domain_item_request_builder.go +++ b/domains/domain_item_request_builder.go @@ -133,6 +133,10 @@ func (m *DomainItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29 func (m *DomainItemRequestBuilder) Promote()(*ItemPromoteRequestBuilder) { return NewItemPromoteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PromoteToInitial provides operations to call the promoteToInitial method. +func (m *DomainItemRequestBuilder) PromoteToInitial()(*ItemPromoteToInitialRequestBuilder) { + return NewItemPromoteToInitialRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ServiceConfigurationRecords provides operations to manage the serviceConfigurationRecords property of the microsoft.graph.domain entity. func (m *DomainItemRequestBuilder) ServiceConfigurationRecords()(*ItemServiceConfigurationRecordsRequestBuilder) { return NewItemServiceConfigurationRecordsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/domains/item_promote_to_initial_request_builder.go b/domains/item_promote_to_initial_request_builder.go new file mode 100644 index 00000000000..24eddba11d8 --- /dev/null +++ b/domains/item_promote_to_initial_request_builder.go @@ -0,0 +1,60 @@ +package domains + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPromoteToInitialRequestBuilder provides operations to call the promoteToInitial method. +type ItemPromoteToInitialRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPromoteToInitialRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPromoteToInitialRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPromoteToInitialRequestBuilderInternal instantiates a new PromoteToInitialRequestBuilder and sets the default values. +func NewItemPromoteToInitialRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPromoteToInitialRequestBuilder) { + m := &ItemPromoteToInitialRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/domains/{domain%2Did}/promoteToInitial", pathParameters), + } + return m +} +// NewItemPromoteToInitialRequestBuilder instantiates a new PromoteToInitialRequestBuilder and sets the default values. +func NewItemPromoteToInitialRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPromoteToInitialRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPromoteToInitialRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action promoteToInitial +func (m *ItemPromoteToInitialRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemPromoteToInitialRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action promoteToInitial +func (m *ItemPromoteToInitialRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPromoteToInitialRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_restore_request_builder.go b/drives/item_items_item_restore_request_builder.go index 976510b5b19..09f974f75c1 100644 --- a/drives/item_items_item_restore_request_builder.go +++ b/drives/item_items_item_restore_request_builder.go @@ -31,7 +31,7 @@ func NewItemItemsItemRestoreRequestBuilder(rawUrl string, requestAdapter i2ae418 urlParams["request-raw-url"] = rawUrl return NewItemItemsItemRestoreRequestBuilderInternal(urlParams, requestAdapter) } -// Post restore a driveItem that has been deleted and is currently in the recycle bin. +// Post restore a driveItem that has been deleted and is currently in the recycle bin. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-restore?view=graph-rest-1.0 @@ -53,7 +53,7 @@ func (m *ItemItemsItemRestoreRequestBuilder) Post(ctx context.Context, body Item } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToPostRequestInformation restore a driveItem that has been deleted and is currently in the recycle bin. +// ToPostRequestInformation restore a driveItem that has been deleted and is currently in the recycle bin. func (m *ItemItemsItemRestoreRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemRestorePostRequestBodyable, requestConfiguration *ItemItemsItemRestoreRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/drives/item_items_item_workbook_comments_item_replies_item_task_changes_count_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_item_task_changes_count_request_builder.go new file mode 100644 index 00000000000..bc2a6efd5a7 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_changes_count_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilder provides operations to call the count method. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/count()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function count +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilderGetRequestConfiguration)(ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponseable, 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, CreateItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponseable), nil +} +// ToGetRequestInformation invoke function count +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_comments_item_replies_item_task_changes_count_response.go b/drives/item_items_item_workbook_comments_item_replies_item_task_changes_count_response.go new file mode 100644 index 00000000000..e705f827794 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_changes_count_response.go @@ -0,0 +1,110 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse instantiates a new ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse()(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse(), 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 *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse) 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 *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse) GetValue()(*int32) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("value", m.GetValue()) + 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 *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse) 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 *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponse) SetValue(value *int32)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponseable +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value *int32)() +} diff --git a/drives/item_items_item_workbook_comments_item_replies_item_task_changes_item_at_with_index_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_item_task_changes_item_at_with_index_request_builder.go new file mode 100644 index 00000000000..20e49bdd797 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_changes_item_at_with_index_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + 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" +) + +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilder provides operations to call the itemAt method. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilderInternal instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/itemAt(index={index})", pathParameters), + } + if index != nil { + m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) + } + return m +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilder instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function itemAt +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation invoke function itemAt +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_comments_item_replies_item_task_changes_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_item_task_changes_request_builder.go new file mode 100644 index 00000000000..8c47dde9151 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_changes_request_builder.go @@ -0,0 +1,151 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderGetQueryParameters 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"` +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByWorkbookDocumentTaskChangeId provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder) ByWorkbookDocumentTaskChangeId(workbookDocumentTaskChangeId string)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if workbookDocumentTaskChangeId != "" { + urlTplParams["workbookDocumentTaskChange%2Did"] = workbookDocumentTaskChangeId + } + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderInternal instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to call the count method. +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder) Count()(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get changes from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable, 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.CreateWorkbookDocumentTaskChangeCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable), nil +} +// ItemAtWithIndex provides operations to call the itemAt method. +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder) ItemAtWithIndex(index *int32)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) +} +// Post create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation get changes from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/drives/item_items_item_workbook_comments_item_replies_item_task_changes_workbook_document_task_change_item_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_item_task_changes_workbook_document_task_change_item_request_builder.go new file mode 100644 index 00000000000..0e2aa82c6a5 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_changes_workbook_document_task_change_item_request_builder.go @@ -0,0 +1,155 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property changes for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(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 changes from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// Patch update the navigation property changes in drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToDeleteRequestInformation delete navigation property changes for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(*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 changes from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(*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 changes in drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(*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/solutions/virtual_events_webinars_item_sessions_item_virtual_appointment_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_request_builder.go similarity index 54% rename from solutions/virtual_events_webinars_item_sessions_item_virtual_appointment_request_builder.go rename to drives/item_items_item_workbook_comments_item_replies_item_task_comment_request_builder.go index 449b1c37395..a95e8232cac 100644 --- a/solutions/virtual_events_webinars_item_sessions_item_virtual_appointment_request_builder.go +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_request_builder.go @@ -1,4 +1,4 @@ -package solutions +package drives import ( "context" @@ -7,59 +7,55 @@ import ( i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) -// VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder provides operations to manage the virtualAppointment property of the microsoft.graph.onlineMeeting entity. -type VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder struct { +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration struct { +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderDeleteRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderGetQueryParameters read the properties and relationships of a virtualAppointment object. -type VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderGetQueryParameters struct { +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderGetQueryParameters get comment from drives +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` // Select properties to be returned Select []string `uriparametername:"%24select"` } -// VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderGetRequestConfiguration struct { +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters - QueryParameters *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderGetQueryParameters + QueryParameters *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderGetQueryParameters } -// VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration struct { +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderPatchRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// NewVirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderInternal instantiates a new VirtualAppointmentRequestBuilder and sets the default values. -func NewVirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) { - m := &VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/sessions/{virtualEventSession%2Did}/virtualAppointment{?%24select,%24expand}", pathParameters), +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderInternal instantiates a new CommentRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment{?%24select,%24expand}", pathParameters), } return m } -// NewVirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder instantiates a new VirtualAppointmentRequestBuilder and sets the default values. -func NewVirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) { +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder instantiates a new CommentRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder) { urlParams := make(map[string]string) urlParams["request-raw-url"] = rawUrl - return NewVirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderInternal(urlParams, requestAdapter) + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-delete?view=graph-rest-1.0 -func (m *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration)(error) { +// Delete delete navigation property comment for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { return err @@ -74,12 +70,8 @@ func (m *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) } return nil } -// Get read the properties and relationships of a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-get?view=graph-rest-1.0 -func (m *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, error) { +// Get get comment from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err @@ -88,21 +80,17 @@ func (m *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualAppointmentFromDiscriminatorValue, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookCommentFromDiscriminatorValue, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable), nil + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable), nil } -// Patch create a new virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-put?view=graph-rest-1.0 -func (m *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, requestConfiguration *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, error) { +// Patch update the navigation property comment in drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { return nil, err @@ -111,18 +99,21 @@ func (m *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualAppointmentFromDiscriminatorValue, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookCommentFromDiscriminatorValue, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable), nil + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable), nil } -// ToDeleteRequestInformation delete a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { +// Task provides operations to manage the task property of the microsoft.graph.workbookComment entity. +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder) Task()(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property comment for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters @@ -133,9 +124,8 @@ func (m *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) } return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { +// ToGetRequestInformation get comment from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters @@ -150,9 +140,8 @@ func (m *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) } return requestInfo, nil } -// ToPatchRequestInformation create a new virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, requestConfiguration *VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { +// ToPatchRequestInformation update the navigation property comment in drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters diff --git a/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_count_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_count_request_builder.go new file mode 100644 index 00000000000..e9f13750435 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_count_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilder provides operations to call the count method. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/count()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function count +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilderGetRequestConfiguration)(ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponseable, 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, CreateItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponseable), nil +} +// ToGetRequestInformation invoke function count +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_count_response.go b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_count_response.go new file mode 100644 index 00000000000..ff65bf500dd --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_count_response.go @@ -0,0 +1,110 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse instantiates a new ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse()(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse(), 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 *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse) 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 *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse) GetValue()(*int32) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("value", m.GetValue()) + 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 *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse) 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 *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponse) SetValue(value *int32)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponseable +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value *int32)() +} diff --git a/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_item_at_with_index_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_item_at_with_index_request_builder.go new file mode 100644 index 00000000000..cf3db39f039 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_item_at_with_index_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + 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" +) + +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilder provides operations to call the itemAt method. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilderInternal instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/itemAt(index={index})", pathParameters), + } + if index != nil { + m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) + } + return m +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilder instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function itemAt +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation invoke function itemAt +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_request_builder.go new file mode 100644 index 00000000000..96c63123e27 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_request_builder.go @@ -0,0 +1,151 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderGetQueryParameters 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"` +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByWorkbookDocumentTaskChangeId provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder) ByWorkbookDocumentTaskChangeId(workbookDocumentTaskChangeId string)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if workbookDocumentTaskChangeId != "" { + urlTplParams["workbookDocumentTaskChange%2Did"] = workbookDocumentTaskChangeId + } + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderInternal instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to call the count method. +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder) Count()(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get changes from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable, 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.CreateWorkbookDocumentTaskChangeCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable), nil +} +// ItemAtWithIndex provides operations to call the itemAt method. +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder) ItemAtWithIndex(index *int32)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) +} +// Post create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation get changes from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_workbook_document_task_change_item_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_workbook_document_task_change_item_request_builder.go new file mode 100644 index 00000000000..3b40914e743 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_changes_workbook_document_task_change_item_request_builder.go @@ -0,0 +1,155 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/{workbookDocumentTaskChange%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property changes for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(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 changes from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// Patch update the navigation property changes in drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToDeleteRequestInformation delete navigation property changes for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(*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 changes from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(*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 changes in drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_request_builder.go new file mode 100644 index 00000000000..65a13b23a8b --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_comment_task_request_builder.go @@ -0,0 +1,159 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder provides operations to manage the task property of the microsoft.graph.workbookComment entity. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderGetQueryParameters get task from drives +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Changes provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder) Changes()(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskChangesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderInternal instantiates a new TaskRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder instantiates a new TaskRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property task for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderDeleteRequestConfiguration)(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 task from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// Patch update the navigation property task in drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// ToDeleteRequestInformation delete navigation property task for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderDeleteRequestConfiguration)(*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 task from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderGetRequestConfiguration)(*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 task in drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentTaskRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_comments_item_replies_item_task_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_item_task_request_builder.go new file mode 100644 index 00000000000..1029d74bef0 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_replies_item_task_request_builder.go @@ -0,0 +1,163 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderGetQueryParameters get task from drives +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Changes provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder) Changes()(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskChangesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Comment provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder) Comment()(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskCommentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderInternal instantiates a new TaskRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder instantiates a new TaskRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property task for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderDeleteRequestConfiguration)(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 task from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// Patch update the navigation property task in drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// ToDeleteRequestInformation delete navigation property task for drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderDeleteRequestConfiguration)(*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 task from drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderGetRequestConfiguration)(*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 task in drives +func (m *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_comments_item_replies_workbook_comment_reply_item_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_workbook_comment_reply_item_request_builder.go index 526077c9ba9..c1c52dea006 100644 --- a/drives/item_items_item_workbook_comments_item_replies_workbook_comment_reply_item_request_builder.go +++ b/drives/item_items_item_workbook_comments_item_replies_workbook_comment_reply_item_request_builder.go @@ -108,6 +108,10 @@ func (m *ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequest } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable), nil } +// Task provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. +func (m *ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) Task()(*ItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemRepliesItemTaskRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property replies for drives func (m *ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() diff --git a/drives/item_items_item_workbook_comments_item_task_changes_count_request_builder.go b/drives/item_items_item_workbook_comments_item_task_changes_count_request_builder.go new file mode 100644 index 00000000000..313965344b7 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_changes_count_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilder provides operations to call the count method. +type ItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/changes/count()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function count +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilderGetRequestConfiguration)(ItemItemsItemWorkbookCommentsItemTaskChangesCountResponseable, 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, CreateItemItemsItemWorkbookCommentsItemTaskChangesCountResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemItemsItemWorkbookCommentsItemTaskChangesCountResponseable), nil +} +// ToGetRequestInformation invoke function count +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_comments_item_task_changes_count_response.go b/drives/item_items_item_workbook_comments_item_task_changes_count_response.go new file mode 100644 index 00000000000..6b814edea77 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_changes_count_response.go @@ -0,0 +1,110 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse +type ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookCommentsItemTaskChangesCountResponse instantiates a new ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskChangesCountResponse()(*ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse) { + m := &ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookCommentsItemTaskChangesCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemItemsItemWorkbookCommentsItemTaskChangesCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookCommentsItemTaskChangesCountResponse(), 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 *ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse) 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 *ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse) GetValue()(*int32) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("value", m.GetValue()) + 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 *ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse) 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 *ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesCountResponse) SetValue(value *int32)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ItemItemsItemWorkbookCommentsItemTaskChangesCountResponseable +type ItemItemsItemWorkbookCommentsItemTaskChangesCountResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value *int32)() +} diff --git a/drives/item_items_item_workbook_comments_item_task_changes_item_at_with_index_request_builder.go b/drives/item_items_item_workbook_comments_item_task_changes_item_at_with_index_request_builder.go new file mode 100644 index 00000000000..a00fcbef48a --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_changes_item_at_with_index_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + 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" +) + +// ItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilder provides operations to call the itemAt method. +type ItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilderInternal instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*ItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/changes/itemAt(index={index})", pathParameters), + } + if index != nil { + m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilder instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function itemAt +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation invoke function itemAt +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_comments_item_task_changes_request_builder.go b/drives/item_items_item_workbook_comments_item_task_changes_request_builder.go new file mode 100644 index 00000000000..3505c66f927 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_changes_request_builder.go @@ -0,0 +1,151 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderGetQueryParameters 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"` +} +// ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByWorkbookDocumentTaskChangeId provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder) ByWorkbookDocumentTaskChangeId(workbookDocumentTaskChangeId string)(*ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if workbookDocumentTaskChangeId != "" { + urlTplParams["workbookDocumentTaskChange%2Did"] = workbookDocumentTaskChangeId + } + return NewItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderInternal instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/changes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to call the count method. +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder) Count()(*ItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemTaskChangesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get changes from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable, 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.CreateWorkbookDocumentTaskChangeCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable), nil +} +// ItemAtWithIndex provides operations to call the itemAt method. +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder) ItemAtWithIndex(index *int32)(*ItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemTaskChangesItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) +} +// Post create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation get changes from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/drives/item_items_item_workbook_comments_item_task_changes_workbook_document_task_change_item_request_builder.go b/drives/item_items_item_workbook_comments_item_task_changes_workbook_document_task_change_item_request_builder.go new file mode 100644 index 00000000000..3673785dc6d --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_changes_workbook_document_task_change_item_request_builder.go @@ -0,0 +1,155 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property changes for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(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 changes from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// Patch update the navigation property changes in drives +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToDeleteRequestInformation delete navigation property changes for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(*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 changes from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(*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 changes in drives +func (m *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_comments_item_task_comment_replies_count_request_builder.go b/drives/item_items_item_workbook_comments_item_task_comment_replies_count_request_builder.go new file mode 100644 index 00000000000..0aa232f5e3b --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_comment_replies_count_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilder provides operations to count the resources in the collection. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilderGetQueryParameters get the number of the resource +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilderGetRequestConfiguration)(*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/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_count_request_builder.go b/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_count_request_builder.go new file mode 100644 index 00000000000..71a410cde72 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_count_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilder provides operations to call the count method. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/count()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function count +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilderGetRequestConfiguration)(ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponseable, 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, CreateItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponseable), nil +} +// ToGetRequestInformation invoke function count +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_count_response.go b/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_count_response.go new file mode 100644 index 00000000000..116021292f4 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_count_response.go @@ -0,0 +1,110 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse instantiates a new ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse()(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse) { + m := &ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse(), 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 *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse) 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 *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse) GetValue()(*int32) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("value", m.GetValue()) + 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 *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse) 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 *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponse) SetValue(value *int32)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponseable +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value *int32)() +} diff --git a/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_item_at_with_index_request_builder.go b/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_item_at_with_index_request_builder.go new file mode 100644 index 00000000000..a53da9caa4e --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_item_at_with_index_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + 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" +) + +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder provides operations to call the itemAt method. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderInternal instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/itemAt(index={index})", pathParameters), + } + if index != nil { + m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function itemAt +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation invoke function itemAt +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_request_builder.go b/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_request_builder.go new file mode 100644 index 00000000000..d568fa2bddf --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_request_builder.go @@ -0,0 +1,151 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderGetQueryParameters 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"` +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByWorkbookDocumentTaskChangeId provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder) ByWorkbookDocumentTaskChangeId(workbookDocumentTaskChangeId string)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if workbookDocumentTaskChangeId != "" { + urlTplParams["workbookDocumentTaskChange%2Did"] = workbookDocumentTaskChangeId + } + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderInternal instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to call the count method. +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder) Count()(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get changes from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable, 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.CreateWorkbookDocumentTaskChangeCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable), nil +} +// ItemAtWithIndex provides operations to call the itemAt method. +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder) ItemAtWithIndex(index *int32)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) +} +// Post create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation get changes from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_workbook_document_task_change_item_request_builder.go b/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_workbook_document_task_change_item_request_builder.go new file mode 100644 index 00000000000..98bd5cf0389 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_changes_workbook_document_task_change_item_request_builder.go @@ -0,0 +1,155 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property changes for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(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 changes from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// Patch update the navigation property changes in drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToDeleteRequestInformation delete navigation property changes for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(*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 changes from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(*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 changes in drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_request_builder.go b/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_request_builder.go new file mode 100644 index 00000000000..c1693f8aa58 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_comment_replies_item_task_request_builder.go @@ -0,0 +1,159 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderGetQueryParameters get task from drives +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Changes provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder) Changes()(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskChangesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderInternal instantiates a new TaskRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder instantiates a new TaskRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property task for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderDeleteRequestConfiguration)(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 task from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// Patch update the navigation property task in drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// ToDeleteRequestInformation delete navigation property task for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderDeleteRequestConfiguration)(*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 task from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderGetRequestConfiguration)(*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 task in drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_comments_item_task_comment_replies_request_builder.go b/drives/item_items_item_workbook_comments_item_task_comment_replies_request_builder.go new file mode 100644 index 00000000000..50ac6172860 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_comment_replies_request_builder.go @@ -0,0 +1,147 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder provides operations to manage the replies property of the microsoft.graph.workbookComment entity. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderGetQueryParameters get replies from drives +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderGetQueryParameters 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"` +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByWorkbookCommentReplyId provides operations to manage the replies property of the microsoft.graph.workbookComment entity. +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) ByWorkbookCommentReplyId(workbookCommentReplyId string)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if workbookCommentReplyId != "" { + urlTplParams["workbookCommentReply%2Did"] = workbookCommentReplyId + } + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderInternal instantiates a new RepliesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder instantiates a new RepliesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) Count()(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get replies from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyCollectionResponseable, 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.CreateWorkbookCommentReplyCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyCollectionResponseable), nil +} +// Post create new navigation property to replies for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookCommentReplyFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable), nil +} +// ToGetRequestInformation get replies from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to replies for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/drives/item_items_item_workbook_comments_item_task_comment_replies_workbook_comment_reply_item_request_builder.go b/drives/item_items_item_workbook_comments_item_task_comment_replies_workbook_comment_reply_item_request_builder.go new file mode 100644 index 00000000000..7b350271fd5 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_comment_replies_workbook_comment_reply_item_request_builder.go @@ -0,0 +1,159 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder provides operations to manage the replies property of the microsoft.graph.workbookComment entity. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters get replies from drives +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderInternal instantiates a new WorkbookCommentReplyItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder instantiates a new WorkbookCommentReplyItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property replies for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration)(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 replies from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, 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.CreateWorkbookCommentReplyFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable), nil +} +// Patch update the navigation property replies in drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, 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.CreateWorkbookCommentReplyFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable), nil +} +// Task provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder) Task()(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesItemTaskRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property replies for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration)(*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 replies from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration)(*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 replies in drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_comments_item_task_comment_request_builder.go b/drives/item_items_item_workbook_comments_item_task_comment_request_builder.go new file mode 100644 index 00000000000..fd06b3f7865 --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_comment_request_builder.go @@ -0,0 +1,159 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderGetQueryParameters get comment from drives +type ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderInternal instantiates a new CommentRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder instantiates a new CommentRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property comment for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderDeleteRequestConfiguration)(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 comment from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable, 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.CreateWorkbookCommentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable), nil +} +// Patch update the navigation property comment in drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable, 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.CreateWorkbookCommentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable), nil +} +// Replies provides operations to manage the replies property of the microsoft.graph.workbookComment entity. +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder) Replies()(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property comment for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderDeleteRequestConfiguration)(*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 comment from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderGetRequestConfiguration)(*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 comment in drives +func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_comments_item_task_request_builder.go b/drives/item_items_item_workbook_comments_item_task_request_builder.go new file mode 100644 index 00000000000..9cfac95354f --- /dev/null +++ b/drives/item_items_item_workbook_comments_item_task_request_builder.go @@ -0,0 +1,163 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookCommentsItemTaskRequestBuilder provides operations to manage the task property of the microsoft.graph.workbookComment entity. +type ItemItemsItemWorkbookCommentsItemTaskRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookCommentsItemTaskRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookCommentsItemTaskRequestBuilderGetQueryParameters get task from drives +type ItemItemsItemWorkbookCommentsItemTaskRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookCommentsItemTaskRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookCommentsItemTaskRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookCommentsItemTaskRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookCommentsItemTaskRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Changes provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookCommentsItemTaskRequestBuilder) Changes()(*ItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemTaskChangesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Comment provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookCommentsItemTaskRequestBuilder) Comment()(*ItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemTaskCommentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookCommentsItemTaskRequestBuilderInternal instantiates a new TaskRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskRequestBuilder) { + m := &ItemItemsItemWorkbookCommentsItemTaskRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookCommentsItemTaskRequestBuilder instantiates a new TaskRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookCommentsItemTaskRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookCommentsItemTaskRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookCommentsItemTaskRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property task for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskRequestBuilderDeleteRequestConfiguration)(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 task from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// Patch update the navigation property task in drives +func (m *ItemItemsItemWorkbookCommentsItemTaskRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// ToDeleteRequestInformation delete navigation property task for drives +func (m *ItemItemsItemWorkbookCommentsItemTaskRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskRequestBuilderDeleteRequestConfiguration)(*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 task from drives +func (m *ItemItemsItemWorkbookCommentsItemTaskRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskRequestBuilderGetRequestConfiguration)(*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 task in drives +func (m *ItemItemsItemWorkbookCommentsItemTaskRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_comments_workbook_comment_item_request_builder.go b/drives/item_items_item_workbook_comments_workbook_comment_item_request_builder.go index 54751beec60..85209e2a9d7 100644 --- a/drives/item_items_item_workbook_comments_workbook_comment_item_request_builder.go +++ b/drives/item_items_item_workbook_comments_workbook_comment_item_request_builder.go @@ -112,6 +112,10 @@ func (m *ItemItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) Patch(c func (m *ItemItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) Replies()(*ItemItemsItemWorkbookCommentsItemRepliesRequestBuilder) { return NewItemItemsItemWorkbookCommentsItemRepliesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// Task provides operations to manage the task property of the microsoft.graph.workbookComment entity. +func (m *ItemItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) Task()(*ItemItemsItemWorkbookCommentsItemTaskRequestBuilder) { + return NewItemItemsItemWorkbookCommentsItemTaskRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property comments for drives func (m *ItemItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() 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 7b38aa57269..96b7e942ba3 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 retrieve the properties and relationships of range object. +// Get returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/nameditem-range?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 retrieve the properties and relationships of range object. +// ToGetRequestInformation returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. 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_tables_item_columns_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_request_builder.go index 8b98717aeb3..584e5015325 100644 --- a/drives/item_items_item_workbook_tables_item_columns_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_columns_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Count()(*ItemItem // Get retrieve a list of tablecolumn objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_series_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_series_request_builder.go index 0b7cc3c59ab..726dc3d910a 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_series_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_series_request_builder.go @@ -77,7 +77,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) Coun // Get retrieve a list of chartseries objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chart-list-series?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chartseries-list?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 33afd3f437b..440336b6023 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Count()(*ItemI // Get retrieve a list of chart objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/worksheet-list-charts?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chart-list?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 a854d63e0e5..27352eec305 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 retrieve the properties and relationships of range object. +// Get returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/nameditem-range?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 retrieve the properties and relationships of range object. +// ToGetRequestInformation returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. 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 39ceb081eee..24f097e519a 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Cou // Get retrieve a list of tablecolumn objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_count_request_builder.go new file mode 100644 index 00000000000..7831be4c924 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_count_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilder provides operations to call the count method. +type ItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/count()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function count +func (m *ItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilderGetRequestConfiguration)(ItemItemsItemWorkbookWorksheetsItemTasksCountResponseable, 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, CreateItemItemsItemWorkbookWorksheetsItemTasksCountResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemItemsItemWorkbookWorksheetsItemTasksCountResponseable), nil +} +// ToGetRequestInformation invoke function count +func (m *ItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_count_response.go b/drives/item_items_item_workbook_worksheets_item_tasks_count_response.go new file mode 100644 index 00000000000..17a16bd43ca --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_count_response.go @@ -0,0 +1,110 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksCountResponse +type ItemItemsItemWorkbookWorksheetsItemTasksCountResponse struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTasksCountResponse instantiates a new ItemItemsItemWorkbookWorksheetsItemTasksCountResponse and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksCountResponse()(*ItemItemsItemWorkbookWorksheetsItemTasksCountResponse) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksCountResponse{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTasksCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemItemsItemWorkbookWorksheetsItemTasksCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTasksCountResponse(), 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 *ItemItemsItemWorkbookWorksheetsItemTasksCountResponse) 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 *ItemItemsItemWorkbookWorksheetsItemTasksCountResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemItemsItemWorkbookWorksheetsItemTasksCountResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ItemItemsItemWorkbookWorksheetsItemTasksCountResponse) GetValue()(*int32) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTasksCountResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("value", m.GetValue()) + 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 *ItemItemsItemWorkbookWorksheetsItemTasksCountResponse) 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 *ItemItemsItemWorkbookWorksheetsItemTasksCountResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemItemsItemWorkbookWorksheetsItemTasksCountResponse) SetValue(value *int32)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ItemItemsItemWorkbookWorksheetsItemTasksCountResponseable +type ItemItemsItemWorkbookWorksheetsItemTasksCountResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value *int32)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_item_at_with_index_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_at_with_index_request_builder.go new file mode 100644 index 00000000000..543e2713fb2 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_at_with_index_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + 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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilder provides operations to call the itemAt method. +type ItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilderInternal instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*ItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/itemAt(index={index})", pathParameters), + } + if index != nil { + m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilder instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function itemAt +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// ToGetRequestInformation invoke function itemAt +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_count_request_builder.go new file mode 100644 index 00000000000..f4c6ebaf4ae --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_count_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilder provides operations to call the count method. +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes/count()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function count +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilderGetRequestConfiguration)(ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponseable, 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, CreateItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponseable), nil +} +// ToGetRequestInformation invoke function count +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_count_response.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_count_response.go new file mode 100644 index 00000000000..3d6397bce7e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_count_response.go @@ -0,0 +1,110 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse instantiates a new ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse()(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse(), 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 *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse) 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 *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse) GetValue()(*int32) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("value", m.GetValue()) + 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 *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse) 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 *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponse) SetValue(value *int32)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponseable +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value *int32)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_item_at_with_index_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_item_at_with_index_request_builder.go new file mode 100644 index 00000000000..9cad835340f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_item_at_with_index_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + 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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilder provides operations to call the itemAt method. +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilderInternal instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes/itemAt(index={index})", pathParameters), + } + if index != nil { + m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilder instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function itemAt +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation invoke function itemAt +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_request_builder.go new file mode 100644 index 00000000000..5fa567f6c77 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_request_builder.go @@ -0,0 +1,151 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderGetQueryParameters 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"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByWorkbookDocumentTaskChangeId provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder) ByWorkbookDocumentTaskChangeId(workbookDocumentTaskChangeId string)(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if workbookDocumentTaskChangeId != "" { + urlTplParams["workbookDocumentTaskChange%2Did"] = workbookDocumentTaskChangeId + } + return NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderInternal instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to call the count method. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get changes from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable, 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.CreateWorkbookDocumentTaskChangeCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable), nil +} +// ItemAtWithIndex provides operations to call the itemAt method. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder) ItemAtWithIndex(index *int32)(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) +} +// Post create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation get changes from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_workbook_document_task_change_item_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_workbook_document_task_change_item_request_builder.go new file mode 100644 index 00000000000..12e44f3a61f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_changes_workbook_document_task_change_item_request_builder.go @@ -0,0 +1,155 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes/{workbookDocumentTaskChange%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property changes for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(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 changes from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// Patch update the navigation property changes in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToDeleteRequestInformation delete navigation property changes for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(*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 changes from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(*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 changes in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_count_request_builder.go new file mode 100644 index 00000000000..e6ca1182ba1 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_count_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilder provides operations to count the resources in the collection. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilderGetQueryParameters get the number of the resource +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilderGetRequestConfiguration)(*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/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_count_request_builder.go new file mode 100644 index 00000000000..2183597fa89 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_count_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilder provides operations to call the count method. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/count()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function count +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilderGetRequestConfiguration)(ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponseable, 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, CreateItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponseable), nil +} +// ToGetRequestInformation invoke function count +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_count_response.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_count_response.go new file mode 100644 index 00000000000..74d4cc929b7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_count_response.go @@ -0,0 +1,110 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse instantiates a new ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse()(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse(), 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 *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse) 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 *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse) GetValue()(*int32) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("value", m.GetValue()) + 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 *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse) 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 *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponse) SetValue(value *int32)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponseable +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value *int32)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_item_at_with_index_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_item_at_with_index_request_builder.go new file mode 100644 index 00000000000..b4de8635b8e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_item_at_with_index_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + 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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder provides operations to call the itemAt method. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderInternal instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/itemAt(index={index})", pathParameters), + } + if index != nil { + m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function itemAt +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation invoke function itemAt +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_request_builder.go new file mode 100644 index 00000000000..76d4381682c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_request_builder.go @@ -0,0 +1,151 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderGetQueryParameters 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"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByWorkbookDocumentTaskChangeId provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder) ByWorkbookDocumentTaskChangeId(workbookDocumentTaskChangeId string)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if workbookDocumentTaskChangeId != "" { + urlTplParams["workbookDocumentTaskChange%2Did"] = workbookDocumentTaskChangeId + } + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderInternal instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to call the count method. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get changes from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable, 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.CreateWorkbookDocumentTaskChangeCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable), nil +} +// ItemAtWithIndex provides operations to call the itemAt method. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder) ItemAtWithIndex(index *int32)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) +} +// Post create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation get changes from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_workbook_document_task_change_item_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_workbook_document_task_change_item_request_builder.go new file mode 100644 index 00000000000..edd964c1d39 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_changes_workbook_document_task_change_item_request_builder.go @@ -0,0 +1,155 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property changes for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(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 changes from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// Patch update the navigation property changes in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToDeleteRequestInformation delete navigation property changes for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(*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 changes from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(*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 changes in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_request_builder.go new file mode 100644 index 00000000000..0fb2de58bba --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_item_task_request_builder.go @@ -0,0 +1,159 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderGetQueryParameters get task from drives +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Changes provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder) Changes()(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskChangesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderInternal instantiates a new TaskRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder instantiates a new TaskRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property task for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderDeleteRequestConfiguration)(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 task from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// Patch update the navigation property task in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// ToDeleteRequestInformation delete navigation property task for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderDeleteRequestConfiguration)(*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 task from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderGetRequestConfiguration)(*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 task in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_request_builder.go new file mode 100644 index 00000000000..a87fde4c9e8 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_request_builder.go @@ -0,0 +1,147 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder provides operations to manage the replies property of the microsoft.graph.workbookComment entity. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderGetQueryParameters get replies from drives +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderGetQueryParameters 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"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByWorkbookCommentReplyId provides operations to manage the replies property of the microsoft.graph.workbookComment entity. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder) ByWorkbookCommentReplyId(workbookCommentReplyId string)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if workbookCommentReplyId != "" { + urlTplParams["workbookCommentReply%2Did"] = workbookCommentReplyId + } + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderInternal instantiates a new RepliesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder instantiates a new RepliesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get replies from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyCollectionResponseable, 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.CreateWorkbookCommentReplyCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyCollectionResponseable), nil +} +// Post create new navigation property to replies for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookCommentReplyFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable), nil +} +// ToGetRequestInformation get replies from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to replies for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_workbook_comment_reply_item_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_workbook_comment_reply_item_request_builder.go new file mode 100644 index 00000000000..edab41f3ec3 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_workbook_comment_reply_item_request_builder.go @@ -0,0 +1,159 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder provides operations to manage the replies property of the microsoft.graph.workbookComment entity. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters get replies from drives +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderInternal instantiates a new WorkbookCommentReplyItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder instantiates a new WorkbookCommentReplyItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property replies for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration)(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 replies from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, 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.CreateWorkbookCommentReplyFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable), nil +} +// Patch update the navigation property replies in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, 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.CreateWorkbookCommentReplyFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable), nil +} +// Task provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder) Task()(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesItemTaskRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property replies for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration)(*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 replies from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration)(*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 replies in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_request_builder.go new file mode 100644 index 00000000000..8c03782eb7e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_request_builder.go @@ -0,0 +1,163 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderGetQueryParameters get comment from drives +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderInternal instantiates a new CommentRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder instantiates a new CommentRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property comment for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderDeleteRequestConfiguration)(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 comment from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable, 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.CreateWorkbookCommentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable), nil +} +// Patch update the navigation property comment in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable, 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.CreateWorkbookCommentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable), nil +} +// Replies provides operations to manage the replies property of the microsoft.graph.workbookComment entity. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder) Replies()(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Task provides operations to manage the task property of the microsoft.graph.workbookComment entity. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder) Task()(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property comment for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderDeleteRequestConfiguration)(*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 comment from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderGetRequestConfiguration)(*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 comment in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_count_request_builder.go new file mode 100644 index 00000000000..2781c80050c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_count_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilder provides operations to call the count method. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/count()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function count +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilderGetRequestConfiguration)(ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponseable, 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, CreateItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponseable), nil +} +// ToGetRequestInformation invoke function count +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_count_response.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_count_response.go new file mode 100644 index 00000000000..f66523ed01b --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_count_response.go @@ -0,0 +1,110 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse instantiates a new ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse()(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse(), 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 *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse) 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 *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse) GetValue()(*int32) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("value", m.GetValue()) + 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 *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse) 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 *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponse) SetValue(value *int32)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponseable +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value *int32)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_item_at_with_index_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_item_at_with_index_request_builder.go new file mode 100644 index 00000000000..88fe85f6248 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_item_at_with_index_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + 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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilder provides operations to call the itemAt method. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilderInternal instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/itemAt(index={index})", pathParameters), + } + if index != nil { + m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilder instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function itemAt +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation invoke function itemAt +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilderGetRequestConfiguration)(*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 { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_request_builder.go new file mode 100644 index 00000000000..32a0e07f455 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_request_builder.go @@ -0,0 +1,151 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderGetQueryParameters 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"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByWorkbookDocumentTaskChangeId provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder) ByWorkbookDocumentTaskChangeId(workbookDocumentTaskChangeId string)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if workbookDocumentTaskChangeId != "" { + urlTplParams["workbookDocumentTaskChange%2Did"] = workbookDocumentTaskChangeId + } + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderInternal instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder instantiates a new ChangesRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to call the count method. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get changes from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable, 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.CreateWorkbookDocumentTaskChangeCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeCollectionResponseable), nil +} +// ItemAtWithIndex provides operations to call the itemAt method. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder) ItemAtWithIndex(index *int32)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) +} +// Post create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToGetRequestInformation get changes from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to changes for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_workbook_document_task_change_item_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_workbook_document_task_change_item_request_builder.go new file mode 100644 index 00000000000..36b5cfb73b7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_changes_workbook_document_task_change_item_request_builder.go @@ -0,0 +1,155 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters get changes from drives +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/{workbookDocumentTaskChange%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder instantiates a new WorkbookDocumentTaskChangeItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property changes for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(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 changes from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// Patch update the navigation property changes in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, 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.CreateWorkbookDocumentTaskChangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable), nil +} +// ToDeleteRequestInformation delete navigation property changes for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderDeleteRequestConfiguration)(*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 changes from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderGetRequestConfiguration)(*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 changes in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskChangeable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesWorkbookDocumentTaskChangeItemRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_request_builder.go new file mode 100644 index 00000000000..e1fa62dc4ba --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_task_request_builder.go @@ -0,0 +1,159 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder provides operations to manage the task property of the microsoft.graph.workbookComment entity. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderGetQueryParameters get task from drives +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Changes provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder) Changes()(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskChangesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderInternal instantiates a new TaskRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder instantiates a new TaskRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property task for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderDeleteRequestConfiguration)(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 task from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// Patch update the navigation property task in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// ToDeleteRequestInformation delete navigation property task for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderDeleteRequestConfiguration)(*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 task from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderGetRequestConfiguration)(*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 task in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentTaskRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_worksheets_item_tasks_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_request_builder.go new file mode 100644 index 00000000000..67f38e77a01 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_request_builder.go @@ -0,0 +1,151 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder provides operations to manage the tasks property of the microsoft.graph.workbookWorksheet entity. +type ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderGetQueryParameters get tasks from drives +type ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderGetQueryParameters 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"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByWorkbookDocumentTaskId provides operations to manage the tasks property of the microsoft.graph.workbookWorksheet entity. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder) ByWorkbookDocumentTaskId(workbookDocumentTaskId string)(*ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if workbookDocumentTaskId != "" { + urlTplParams["workbookDocumentTask%2Did"] = workbookDocumentTaskId + } + return NewItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderInternal instantiates a new TasksRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder instantiates a new TasksRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to call the count method. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get tasks from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskCollectionResponseable, 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.CreateWorkbookDocumentTaskCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskCollectionResponseable), nil +} +// ItemAtWithIndex provides operations to call the itemAt method. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder) ItemAtWithIndex(index *int32)(*ItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) +} +// Post create new navigation property to tasks for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// ToGetRequestInformation get tasks from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to tasks for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/drives/item_items_item_workbook_worksheets_item_tasks_workbook_document_task_item_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_workbook_document_task_item_request_builder.go new file mode 100644 index 00000000000..19f23861587 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tasks_workbook_document_task_item_request_builder.go @@ -0,0 +1,163 @@ +package drives + +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" +) + +// ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder provides operations to manage the tasks property of the microsoft.graph.workbookWorksheet entity. +type ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderGetQueryParameters get tasks from drives +type ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Changes provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder) Changes()(*ItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemChangesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Comment provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. +func (m *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder) Comment()(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderInternal instantiates a new WorkbookDocumentTaskItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder instantiates a new WorkbookDocumentTaskItemRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property tasks for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderDeleteRequestConfiguration)(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 tasks from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// Patch update the navigation property tasks in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, 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.CreateWorkbookDocumentTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable), nil +} +// ToDeleteRequestInformation delete navigation property tasks for drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderDeleteRequestConfiguration)(*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 tasks from drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderGetRequestConfiguration)(*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 tasks in drives +func (m *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookDocumentTaskable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksWorkbookDocumentTaskItemRequestBuilderPatchRequestConfiguration)(*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/drives/item_items_item_workbook_worksheets_request_builder.go b/drives/item_items_item_workbook_worksheets_request_builder.go index 6f5dea6c0b2..5f3d21686b1 100644 --- a/drives/item_items_item_workbook_worksheets_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookWorksheetsRequestBuilder) Count()(*ItemItemsItemWo // Get retrieve a list of worksheet objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/worksheet-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.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/drives/item_items_item_workbook_worksheets_workbook_worksheet_item_request_builder.go b/drives/item_items_item_workbook_worksheets_workbook_worksheet_item_request_builder.go index 8039925cb5d..382e200908e 100644 --- a/drives/item_items_item_workbook_worksheets_workbook_worksheet_item_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_workbook_worksheet_item_request_builder.go @@ -149,6 +149,10 @@ func (m *ItemItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) Ran func (m *ItemItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) Tables()(*ItemItemsItemWorkbookWorksheetsItemTablesRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// Tasks provides operations to manage the tasks property of the microsoft.graph.workbookWorksheet entity. +func (m *ItemItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) Tasks()(*ItemItemsItemWorkbookWorksheetsItemTasksRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTasksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation deletes the worksheet from the workbook. func (m *ItemItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() diff --git a/education/classes_item_assignment_settings_request_builder.go b/education/classes_item_assignment_settings_request_builder.go index 534eb56b1da..a6e675b7e93 100644 --- a/education/classes_item_assignment_settings_request_builder.go +++ b/education/classes_item_assignment_settings_request_builder.go @@ -96,7 +96,7 @@ func (m *ClassesItemAssignmentSettingsRequestBuilder) Get(ctx context.Context, r func (m *ClassesItemAssignmentSettingsRequestBuilder) GradingCategories()(*ClassesItemAssignmentSettingsGradingCategoriesRequestBuilder) { return NewClassesItemAssignmentSettingsGradingCategoriesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of an educationAssignmentSettings object. Only Teachers can update these settings. +// Patch update the properties of an educationAssignmentSettings object. Only teachers can update these settings. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/educationassignmentsettings-update?view=graph-rest-1.0 @@ -146,7 +146,7 @@ func (m *ClassesItemAssignmentSettingsRequestBuilder) ToGetRequestInformation(ct } return requestInfo, nil } -// ToPatchRequestInformation update the properties of an educationAssignmentSettings object. Only Teachers can update these settings. +// ToPatchRequestInformation update the properties of an educationAssignmentSettings object. Only teachers can update these settings. func (m *ClassesItemAssignmentSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationAssignmentSettingsable, requestConfiguration *ClassesItemAssignmentSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/education/classes_item_modules_education_module_item_request_builder.go b/education/classes_item_modules_education_module_item_request_builder.go index 200472b7951..a8675fa36f4 100644 --- a/education/classes_item_modules_education_module_item_request_builder.go +++ b/education/classes_item_modules_education_module_item_request_builder.go @@ -18,7 +18,7 @@ type ClassesItemModulesEducationModuleItemRequestBuilderDeleteRequestConfigurati // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ClassesItemModulesEducationModuleItemRequestBuilderGetQueryParameters get modules from education +// ClassesItemModulesEducationModuleItemRequestBuilderGetQueryParameters get the properties and relationships of a module. Only teachers, students, and applications with application permissions can perform this operation. Students can only see published modules; teachers and applications with application permissions can see all modules in a class. type ClassesItemModulesEducationModuleItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,7 +54,10 @@ func NewClassesItemModulesEducationModuleItemRequestBuilder(rawUrl string, reque urlParams["request-raw-url"] = rawUrl return NewClassesItemModulesEducationModuleItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete navigation property modules for education +// Delete delete an existing module in a class. Only teachers within a class can delete modules. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationmodule-delete?view=graph-rest-1.0 func (m *ClassesItemModulesEducationModuleItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ClassesItemModulesEducationModuleItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -70,7 +73,10 @@ func (m *ClassesItemModulesEducationModuleItemRequestBuilder) Delete(ctx context } return nil } -// Get get modules from education +// Get get the properties and relationships of a module. Only teachers, students, and applications with application permissions can perform this operation. Students can only see published modules; teachers and applications with application permissions can see all modules in a class. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationmodule-get?view=graph-rest-1.0 func (m *ClassesItemModulesEducationModuleItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ClassesItemModulesEducationModuleItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -89,7 +95,10 @@ func (m *ClassesItemModulesEducationModuleItemRequestBuilder) Get(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable), nil } -// Patch update the navigation property modules in education +// Patch update an educationModule object in a class. Only teachers in the class can perform this operation. Note that you can't use a PATCH request to change the status of a module. Use the publish action to change the module status. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationmodule-update?view=graph-rest-1.0 func (m *ClassesItemModulesEducationModuleItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable, requestConfiguration *ClassesItemModulesEducationModuleItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -124,7 +133,7 @@ func (m *ClassesItemModulesEducationModuleItemRequestBuilder) Resources()(*Class func (m *ClassesItemModulesEducationModuleItemRequestBuilder) SetUpResourcesFolder()(*ClassesItemModulesItemSetUpResourcesFolderRequestBuilder) { return NewClassesItemModulesItemSetUpResourcesFolderRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete navigation property modules for education +// ToDeleteRequestInformation delete an existing module in a class. Only teachers within a class can delete modules. func (m *ClassesItemModulesEducationModuleItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ClassesItemModulesEducationModuleItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -136,7 +145,7 @@ func (m *ClassesItemModulesEducationModuleItemRequestBuilder) ToDeleteRequestInf } return requestInfo, nil } -// ToGetRequestInformation get modules from education +// ToGetRequestInformation get the properties and relationships of a module. Only teachers, students, and applications with application permissions can perform this operation. Students can only see published modules; teachers and applications with application permissions can see all modules in a class. func (m *ClassesItemModulesEducationModuleItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ClassesItemModulesEducationModuleItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -152,7 +161,7 @@ func (m *ClassesItemModulesEducationModuleItemRequestBuilder) ToGetRequestInform } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property modules in education +// ToPatchRequestInformation update an educationModule object in a class. Only teachers in the class can perform this operation. Note that you can't use a PATCH request to change the status of a module. Use the publish action to change the module status. func (m *ClassesItemModulesEducationModuleItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable, requestConfiguration *ClassesItemModulesEducationModuleItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/education/classes_item_modules_item_pin_request_builder.go b/education/classes_item_modules_item_pin_request_builder.go index ba71f4d1263..ead72096b1e 100644 --- a/education/classes_item_modules_item_pin_request_builder.go +++ b/education/classes_item_modules_item_pin_request_builder.go @@ -31,7 +31,10 @@ func NewClassesItemModulesItemPinRequestBuilder(rawUrl string, requestAdapter i2 urlParams["request-raw-url"] = rawUrl return NewClassesItemModulesItemPinRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action pin +// Post pin an educationModule in the classwork list. This action sets the isPinned property to true for an educationModule. Only teachers can perform this action and only one module at a time can be pinned in the classwork list. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationmodule-pin?view=graph-rest-1.0 func (m *ClassesItemModulesItemPinRequestBuilder) Post(ctx context.Context, requestConfiguration *ClassesItemModulesItemPinRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { @@ -50,7 +53,7 @@ func (m *ClassesItemModulesItemPinRequestBuilder) Post(ctx context.Context, requ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable), nil } -// ToPostRequestInformation invoke action pin +// ToPostRequestInformation pin an educationModule in the classwork list. This action sets the isPinned property to true for an educationModule. Only teachers can perform this action and only one module at a time can be pinned in the classwork list. func (m *ClassesItemModulesItemPinRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ClassesItemModulesItemPinRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/education/classes_item_modules_item_publish_request_builder.go b/education/classes_item_modules_item_publish_request_builder.go index 581592f40da..4802a517b2b 100644 --- a/education/classes_item_modules_item_publish_request_builder.go +++ b/education/classes_item_modules_item_publish_request_builder.go @@ -31,7 +31,10 @@ func NewClassesItemModulesItemPublishRequestBuilder(rawUrl string, requestAdapte urlParams["request-raw-url"] = rawUrl return NewClassesItemModulesItemPublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action publish +// Post change the state of an educationModule from its original draft status to the published status. Only teachers in the class can perform this operation. When a module is in draft status, students will not see the module. When you call this API, the module appears in the student's classwork list. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationmodule-publish?view=graph-rest-1.0 func (m *ClassesItemModulesItemPublishRequestBuilder) Post(ctx context.Context, requestConfiguration *ClassesItemModulesItemPublishRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { @@ -50,7 +53,7 @@ func (m *ClassesItemModulesItemPublishRequestBuilder) Post(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable), nil } -// ToPostRequestInformation invoke action publish +// ToPostRequestInformation change the state of an educationModule from its original draft status to the published status. Only teachers in the class can perform this operation. When a module is in draft status, students will not see the module. When you call this API, the module appears in the student's classwork list. func (m *ClassesItemModulesItemPublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ClassesItemModulesItemPublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/education/classes_item_modules_item_resources_education_module_resource_item_request_builder.go b/education/classes_item_modules_item_resources_education_module_resource_item_request_builder.go index 6e2f0c48184..440923747ab 100644 --- a/education/classes_item_modules_item_resources_education_module_resource_item_request_builder.go +++ b/education/classes_item_modules_item_resources_education_module_resource_item_request_builder.go @@ -18,7 +18,7 @@ type ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilderDel // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilderGetQueryParameters get resources from education +// ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilderGetQueryParameters get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation. type ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,7 +54,10 @@ func NewClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilder urlParams["request-raw-url"] = rawUrl return NewClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete navigation property resources for education +// Delete delete a specific educationModuleResource attached to a module. Only teachers in the class can remove a resource. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationmoduleresource-delete?view=graph-rest-1.0 func (m *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -70,7 +73,10 @@ func (m *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilde } return nil } -// Get get resources from education +// Get get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationmoduleresource-get?view=graph-rest-1.0 func (m *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleResourceable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -89,7 +95,10 @@ func (m *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleResourceable), nil } -// Patch update the navigation property resources in education +// Patch update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationmoduleresource-update?view=graph-rest-1.0 func (m *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleResourceable, requestConfiguration *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleResourceable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -108,7 +117,7 @@ func (m *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleResourceable), nil } -// ToDeleteRequestInformation delete navigation property resources for education +// ToDeleteRequestInformation delete a specific educationModuleResource attached to a module. Only teachers in the class can remove a resource. func (m *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -120,7 +129,7 @@ func (m *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilde } return requestInfo, nil } -// ToGetRequestInformation get resources from education +// ToGetRequestInformation get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation. func (m *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -136,7 +145,7 @@ func (m *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilde } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property resources in education +// ToPatchRequestInformation update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types. func (m *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleResourceable, requestConfiguration *ClassesItemModulesItemResourcesEducationModuleResourceItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/education/classes_item_modules_item_resources_request_builder.go b/education/classes_item_modules_item_resources_request_builder.go index 8bfe30a0c89..ef2b9cd6aec 100644 --- a/education/classes_item_modules_item_resources_request_builder.go +++ b/education/classes_item_modules_item_resources_request_builder.go @@ -11,7 +11,7 @@ import ( type ClassesItemModulesItemResourcesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ClassesItemModulesItemResourcesRequestBuilderGetQueryParameters get resources from education +// ClassesItemModulesItemResourcesRequestBuilderGetQueryParameters get all the educationModuleResource objects associated with a module. Only teachers, students, and applications with application permissions can perform this operation. type ClassesItemModulesItemResourcesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,10 @@ func NewClassesItemModulesItemResourcesRequestBuilder(rawUrl string, requestAdap func (m *ClassesItemModulesItemResourcesRequestBuilder) Count()(*ClassesItemModulesItemResourcesCountRequestBuilder) { return NewClassesItemModulesItemResourcesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get resources from education +// Get get all the educationModuleResource objects associated with a module. Only teachers, students, and applications with application permissions can perform this operation. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationmodule-list-resources?view=graph-rest-1.0 func (m *ClassesItemModulesItemResourcesRequestBuilder) Get(ctx context.Context, requestConfiguration *ClassesItemModulesItemResourcesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleResourceCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -93,7 +96,10 @@ func (m *ClassesItemModulesItemResourcesRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleResourceCollectionResponseable), nil } -// Post create new navigation property to resources for education +// Post create a resource in a module. Only teachers can perform this operation. You can create the following types of module resources: Every resource has an @odata.type property to indicate which type of resource is being created. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationmodule-post-resources?view=graph-rest-1.0 func (m *ClassesItemModulesItemResourcesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleResourceable, requestConfiguration *ClassesItemModulesItemResourcesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleResourceable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -112,7 +118,7 @@ func (m *ClassesItemModulesItemResourcesRequestBuilder) Post(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleResourceable), nil } -// ToGetRequestInformation get resources from education +// ToGetRequestInformation get all the educationModuleResource objects associated with a module. Only teachers, students, and applications with application permissions can perform this operation. func (m *ClassesItemModulesItemResourcesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ClassesItemModulesItemResourcesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -128,7 +134,7 @@ func (m *ClassesItemModulesItemResourcesRequestBuilder) ToGetRequestInformation( } return requestInfo, nil } -// ToPostRequestInformation create new navigation property to resources for education +// ToPostRequestInformation create a resource in a module. Only teachers can perform this operation. You can create the following types of module resources: Every resource has an @odata.type property to indicate which type of resource is being created. func (m *ClassesItemModulesItemResourcesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleResourceable, requestConfiguration *ClassesItemModulesItemResourcesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/education/classes_item_modules_item_set_up_resources_folder_request_builder.go b/education/classes_item_modules_item_set_up_resources_folder_request_builder.go index 0868ac28959..e3aad1f1085 100644 --- a/education/classes_item_modules_item_set_up_resources_folder_request_builder.go +++ b/education/classes_item_modules_item_set_up_resources_folder_request_builder.go @@ -31,7 +31,10 @@ func NewClassesItemModulesItemSetUpResourcesFolderRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewClassesItemModulesItemSetUpResourcesFolderRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action setUpResourcesFolder +// Post create a SharePoint folder to upload files for a given educationModule. Only teachers can perform this operation. The teacher determines what resources to upload to the SharePoint folder for the module. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationmodule-setupresourcesfolder?view=graph-rest-1.0 func (m *ClassesItemModulesItemSetUpResourcesFolderRequestBuilder) Post(ctx context.Context, requestConfiguration *ClassesItemModulesItemSetUpResourcesFolderRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { @@ -50,7 +53,7 @@ func (m *ClassesItemModulesItemSetUpResourcesFolderRequestBuilder) Post(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable), nil } -// ToPostRequestInformation invoke action setUpResourcesFolder +// ToPostRequestInformation create a SharePoint folder to upload files for a given educationModule. Only teachers can perform this operation. The teacher determines what resources to upload to the SharePoint folder for the module. func (m *ClassesItemModulesItemSetUpResourcesFolderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ClassesItemModulesItemSetUpResourcesFolderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/education/classes_item_modules_item_unpin_request_builder.go b/education/classes_item_modules_item_unpin_request_builder.go index b2fada48096..528bb35b8e7 100644 --- a/education/classes_item_modules_item_unpin_request_builder.go +++ b/education/classes_item_modules_item_unpin_request_builder.go @@ -31,7 +31,10 @@ func NewClassesItemModulesItemUnpinRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewClassesItemModulesItemUnpinRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action unpin +// Post unpin an educationModule in the classwork list. This action sets the isPinned property to false for an educationModule. Only teachers in the class can perform this operation. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationmodule-unpin?view=graph-rest-1.0 func (m *ClassesItemModulesItemUnpinRequestBuilder) Post(ctx context.Context, requestConfiguration *ClassesItemModulesItemUnpinRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { @@ -50,7 +53,7 @@ func (m *ClassesItemModulesItemUnpinRequestBuilder) Post(ctx context.Context, re } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable), nil } -// ToPostRequestInformation invoke action unpin +// ToPostRequestInformation unpin an educationModule in the classwork list. This action sets the isPinned property to false for an educationModule. Only teachers in the class can perform this operation. func (m *ClassesItemModulesItemUnpinRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ClassesItemModulesItemUnpinRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/education/classes_item_modules_request_builder.go b/education/classes_item_modules_request_builder.go index b3c889c561d..55ac76399e3 100644 --- a/education/classes_item_modules_request_builder.go +++ b/education/classes_item_modules_request_builder.go @@ -11,7 +11,7 @@ import ( type ClassesItemModulesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ClassesItemModulesRequestBuilderGetQueryParameters get modules from education +// ClassesItemModulesRequestBuilderGetQueryParameters retrieve a list of module objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can see all module objects for the class. Students can only see published modules. type ClassesItemModulesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,10 @@ func NewClassesItemModulesRequestBuilder(rawUrl string, requestAdapter i2ae4187f func (m *ClassesItemModulesRequestBuilder) Count()(*ClassesItemModulesCountRequestBuilder) { return NewClassesItemModulesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get modules from education +// Get retrieve a list of module objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can see all module objects for the class. Students can only see published modules. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationclass-list-modules?view=graph-rest-1.0 func (m *ClassesItemModulesRequestBuilder) Get(ctx context.Context, requestConfiguration *ClassesItemModulesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -93,7 +96,10 @@ func (m *ClassesItemModulesRequestBuilder) Get(ctx context.Context, requestConfi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleCollectionResponseable), nil } -// Post create new navigation property to modules for education +// Post create a new module in a class. Only teachers in a class can create a module. Modules start in the draft state, which means that students will not see the modules until publication. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/educationclass-post-module?view=graph-rest-1.0 func (m *ClassesItemModulesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable, requestConfiguration *ClassesItemModulesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -112,7 +118,7 @@ func (m *ClassesItemModulesRequestBuilder) Post(ctx context.Context, body ie233e } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable), nil } -// ToGetRequestInformation get modules from education +// ToGetRequestInformation retrieve a list of module objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can see all module objects for the class. Students can only see published modules. func (m *ClassesItemModulesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ClassesItemModulesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -128,7 +134,7 @@ func (m *ClassesItemModulesRequestBuilder) ToGetRequestInformation(ctx context.C } return requestInfo, nil } -// ToPostRequestInformation create new navigation property to modules for education +// ToPostRequestInformation create a new module in a class. Only teachers in a class can create a module. Modules start in the draft state, which means that students will not see the modules until publication. func (m *ClassesItemModulesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationModuleable, requestConfiguration *ClassesItemModulesRequestBuilderPostRequestConfiguration)(*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 a1ff7b92b2a..167ab272621 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 @@ -18,7 +18,7 @@ type IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderDeleteRequ // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetQueryParameters read the properties and relationships of an industryDataConnector object. +// IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetQueryParameters read the properties and relationships of an azureDataLakeConnector object. type IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,10 +54,10 @@ func NewIndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewIndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an azureDataLakeConnector object. +// Delete delete an industryDataConnector object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-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 { @@ -73,10 +73,10 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Dele } return nil } -// Get read the properties and relationships of an industryDataConnector object. +// Get read the properties and relationships of an azureDataLakeConnector object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-get?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Get(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,10 +99,10 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Get( func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) MicrosoftGraphIndustryDataValidate()(*IndustryDataDataConnectorsItemMicrosoftGraphIndustryDataValidateRequestBuilder) { return NewIndustryDataDataConnectorsItemMicrosoftGraphIndustryDataValidateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of an azureDataLakeConnector object. +// Patch update the properties of an industryDataConnector object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-update?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Patch(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderPatchRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -125,7 +125,7 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Patc func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) SourceSystem()(*IndustryDataDataConnectorsItemSourceSystemRequestBuilder) { return NewIndustryDataDataConnectorsItemSourceSystemRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete an azureDataLakeConnector object. +// ToDeleteRequestInformation delete an industryDataConnector object. func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -137,7 +137,7 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToDe } return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an industryDataConnector object. +// ToGetRequestInformation read the properties and relationships of an azureDataLakeConnector object. func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -153,7 +153,7 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToGe } return requestInfo, nil } -// ToPatchRequestInformation update the properties of an azureDataLakeConnector object. +// ToPatchRequestInformation update the properties of an industryDataConnector object. func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderPatchRequestConfiguration)(*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 9afd3027e29..030c1b0a902 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 a list of the azureDataLakeConnector objects and their properties. +// IndustryDataDataConnectorsRequestBuilderGetQueryParameters get the industryDataConnector resources from the dataConnector navigation property. 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 a list of the azureDataLakeConnector objects and their properties. +// Get get the industryDataConnector resources from the dataConnector navigation property. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-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 industryDataConnector object. +// Post create a new azureDataLakeConnector object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-post?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsRequestBuilder) Post(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsRequestBuilderPostRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -118,7 +118,7 @@ func (m *IndustryDataDataConnectorsRequestBuilder) Post(ctx context.Context, bod } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable), nil } -// ToGetRequestInformation get a list of the azureDataLakeConnector objects and their properties. +// ToGetRequestInformation get the industryDataConnector resources from the dataConnector navigation property. 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 industryDataConnector object. +// ToPostRequestInformation create a new azureDataLakeConnector object. func (m *IndustryDataDataConnectorsRequestBuilder) ToPostRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.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 2485089865f..89a993d050e 100644 --- a/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go +++ b/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go @@ -18,7 +18,7 @@ type IndustryDataInboundFlowsInboundFlowItemRequestBuilderDeleteRequestConfigura // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters read the properties and relationships of an inboundFlow object. +// IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters read the properties and relationships of an inboundFileFlow object. type IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -58,10 +58,10 @@ func NewIndustryDataInboundFlowsInboundFlowItemRequestBuilder(rawUrl string, req func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) DataConnector()(*IndustryDataInboundFlowsItemDataConnectorRequestBuilder) { return NewIndustryDataInboundFlowsItemDataConnectorRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete delete an inboundFlow object. +// Delete delete an inboundFileFlow object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-delete?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -77,10 +77,10 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Delete(ctx conte } return nil } -// Get read the properties and relationships of an inboundFlow object. +// Get read the properties and relationships of an inboundFileFlow object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-get?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Get(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,10 +99,10 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Get(ctx context. } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable), nil } -// Patch update the properties of an inboundFlow object. +// Patch update the properties of an inboundFileFlow object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-update?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Patch(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderPatchRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -121,7 +121,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Patch(ctx contex } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable), nil } -// ToDeleteRequestInformation delete an inboundFlow object. +// ToDeleteRequestInformation delete an inboundFileFlow object. func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -133,7 +133,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToDeleteRequestI } return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an inboundFlow object. +// ToGetRequestInformation read the properties and relationships of an inboundFileFlow object. func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -149,7 +149,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToGetRequestInfo } return requestInfo, nil } -// ToPatchRequestInformation update the properties of an inboundFlow object. +// ToPatchRequestInformation update the properties of an inboundFileFlow object. func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/external/industry_data_inbound_flows_request_builder.go b/external/industry_data_inbound_flows_request_builder.go index 82e46ba6cfe..36de6a64934 100644 --- a/external/industry_data_inbound_flows_request_builder.go +++ b/external/industry_data_inbound_flows_request_builder.go @@ -11,7 +11,7 @@ import ( type IndustryDataInboundFlowsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// IndustryDataInboundFlowsRequestBuilderGetQueryParameters get a list of the inboundFileFlow objects and their properties. +// IndustryDataInboundFlowsRequestBuilderGetQueryParameters get a list of the inboundFlow objects and their properties. type IndustryDataInboundFlowsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,10 +74,10 @@ func NewIndustryDataInboundFlowsRequestBuilder(rawUrl string, requestAdapter i2a func (m *IndustryDataInboundFlowsRequestBuilder) Count()(*IndustryDataInboundFlowsCountRequestBuilder) { return NewIndustryDataInboundFlowsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of the inboundFileFlow objects and their properties. +// Get get a list of the inboundFlow objects and their properties. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-list?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsRequestBuilder) Get(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsRequestBuilderGetRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -118,7 +118,7 @@ func (m *IndustryDataInboundFlowsRequestBuilder) Post(ctx context.Context, body } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable), nil } -// ToGetRequestInformation get a list of the inboundFileFlow objects and their properties. +// ToGetRequestInformation get a list of the inboundFlow objects and their properties. func (m *IndustryDataInboundFlowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/financials/companies_item_accounts_request_builder.go b/financials/companies_item_accounts_request_builder.go index 3c03fb1ecf4..dac4b92d160 100644 --- a/financials/companies_item_accounts_request_builder.go +++ b/financials/companies_item_accounts_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemAccountsRequestBuilderGetRequestConfiguration struct { QueryParameters *CompaniesItemAccountsRequestBuilderGetQueryParameters } // ByAccountId provides operations to manage the accounts property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemAccountsRequestBuilder) ByAccountId(accountId string)(*CompaniesItemAccountsAccountItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemAccountsRequestBuilder) ByAccountId(accountId string)(*Com } return NewCompaniesItemAccountsAccountItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByAccountIdGuid provides operations to manage the accounts property of the microsoft.graph.company entity. +func (m *CompaniesItemAccountsRequestBuilder) ByAccountIdGuid(accountId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemAccountsAccountItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["account%2Did"] = accountId.String() + return NewCompaniesItemAccountsAccountItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemAccountsRequestBuilderInternal instantiates a new AccountsRequestBuilder and sets the default values. func NewCompaniesItemAccountsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemAccountsRequestBuilder) { m := &CompaniesItemAccountsRequestBuilder{ diff --git a/financials/companies_item_aged_accounts_payable_request_builder.go b/financials/companies_item_aged_accounts_payable_request_builder.go index 08ed57f6001..5fb809c5932 100644 --- a/financials/companies_item_aged_accounts_payable_request_builder.go +++ b/financials/companies_item_aged_accounts_payable_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemAgedAccountsPayableRequestBuilderGetRequestConfiguration struc QueryParameters *CompaniesItemAgedAccountsPayableRequestBuilderGetQueryParameters } // ByAgedAccountsPayableId provides operations to manage the agedAccountsPayable property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemAgedAccountsPayableRequestBuilder) ByAgedAccountsPayableId(agedAccountsPayableId string)(*CompaniesItemAgedAccountsPayableAgedAccountsPayableItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemAgedAccountsPayableRequestBuilder) ByAgedAccountsPayableId } return NewCompaniesItemAgedAccountsPayableAgedAccountsPayableItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByAgedAccountsPayableIdGuid provides operations to manage the agedAccountsPayable property of the microsoft.graph.company entity. +func (m *CompaniesItemAgedAccountsPayableRequestBuilder) ByAgedAccountsPayableIdGuid(agedAccountsPayableId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemAgedAccountsPayableAgedAccountsPayableItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["agedAccountsPayable%2Did"] = agedAccountsPayableId.String() + return NewCompaniesItemAgedAccountsPayableAgedAccountsPayableItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemAgedAccountsPayableRequestBuilderInternal instantiates a new AgedAccountsPayableRequestBuilder and sets the default values. func NewCompaniesItemAgedAccountsPayableRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemAgedAccountsPayableRequestBuilder) { m := &CompaniesItemAgedAccountsPayableRequestBuilder{ diff --git a/financials/companies_item_aged_accounts_receivable_request_builder.go b/financials/companies_item_aged_accounts_receivable_request_builder.go index d33f1de2602..57956b497c6 100644 --- a/financials/companies_item_aged_accounts_receivable_request_builder.go +++ b/financials/companies_item_aged_accounts_receivable_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemAgedAccountsReceivableRequestBuilderGetRequestConfiguration st QueryParameters *CompaniesItemAgedAccountsReceivableRequestBuilderGetQueryParameters } // ByAgedAccountsReceivableId provides operations to manage the agedAccountsReceivable property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemAgedAccountsReceivableRequestBuilder) ByAgedAccountsReceivableId(agedAccountsReceivableId string)(*CompaniesItemAgedAccountsReceivableAgedAccountsReceivableItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemAgedAccountsReceivableRequestBuilder) ByAgedAccountsReceiv } return NewCompaniesItemAgedAccountsReceivableAgedAccountsReceivableItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByAgedAccountsReceivableIdGuid provides operations to manage the agedAccountsReceivable property of the microsoft.graph.company entity. +func (m *CompaniesItemAgedAccountsReceivableRequestBuilder) ByAgedAccountsReceivableIdGuid(agedAccountsReceivableId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemAgedAccountsReceivableAgedAccountsReceivableItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["agedAccountsReceivable%2Did"] = agedAccountsReceivableId.String() + return NewCompaniesItemAgedAccountsReceivableAgedAccountsReceivableItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemAgedAccountsReceivableRequestBuilderInternal instantiates a new AgedAccountsReceivableRequestBuilder and sets the default values. func NewCompaniesItemAgedAccountsReceivableRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemAgedAccountsReceivableRequestBuilder) { m := &CompaniesItemAgedAccountsReceivableRequestBuilder{ diff --git a/financials/companies_item_company_information_request_builder.go b/financials/companies_item_company_information_request_builder.go index 29448f4a015..77f2c384f02 100644 --- a/financials/companies_item_company_information_request_builder.go +++ b/financials/companies_item_company_information_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemCompanyInformationRequestBuilderGetRequestConfiguration struct QueryParameters *CompaniesItemCompanyInformationRequestBuilderGetQueryParameters } // ByCompanyInformationId provides operations to manage the companyInformation property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemCompanyInformationRequestBuilder) ByCompanyInformationId(companyInformationId string)(*CompaniesItemCompanyInformationCompanyInformationItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemCompanyInformationRequestBuilder) ByCompanyInformationId(c } return NewCompaniesItemCompanyInformationCompanyInformationItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByCompanyInformationIdGuid provides operations to manage the companyInformation property of the microsoft.graph.company entity. +func (m *CompaniesItemCompanyInformationRequestBuilder) ByCompanyInformationIdGuid(companyInformationId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemCompanyInformationCompanyInformationItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["companyInformation%2Did"] = companyInformationId.String() + return NewCompaniesItemCompanyInformationCompanyInformationItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemCompanyInformationRequestBuilderInternal instantiates a new CompanyInformationRequestBuilder and sets the default values. func NewCompaniesItemCompanyInformationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemCompanyInformationRequestBuilder) { m := &CompaniesItemCompanyInformationRequestBuilder{ diff --git a/financials/companies_item_countries_regions_request_builder.go b/financials/companies_item_countries_regions_request_builder.go index e2e2b95b662..05bd9a919a5 100644 --- a/financials/companies_item_countries_regions_request_builder.go +++ b/financials/companies_item_countries_regions_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemCountriesRegionsRequestBuilderPostRequestConfiguration struct Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCountryRegionId provides operations to manage the countriesRegions property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemCountriesRegionsRequestBuilder) ByCountryRegionId(countryRegionId string)(*CompaniesItemCountriesRegionsCountryRegionItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemCountriesRegionsRequestBuilder) ByCountryRegionId(countryR } return NewCompaniesItemCountriesRegionsCountryRegionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByCountryRegionIdGuid provides operations to manage the countriesRegions property of the microsoft.graph.company entity. +func (m *CompaniesItemCountriesRegionsRequestBuilder) ByCountryRegionIdGuid(countryRegionId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemCountriesRegionsCountryRegionItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["countryRegion%2Did"] = countryRegionId.String() + return NewCompaniesItemCountriesRegionsCountryRegionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemCountriesRegionsRequestBuilderInternal instantiates a new CountriesRegionsRequestBuilder and sets the default values. func NewCompaniesItemCountriesRegionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemCountriesRegionsRequestBuilder) { m := &CompaniesItemCountriesRegionsRequestBuilder{ diff --git a/financials/companies_item_currencies_request_builder.go b/financials/companies_item_currencies_request_builder.go index 1abbbfd6811..d12b49c6a9f 100644 --- a/financials/companies_item_currencies_request_builder.go +++ b/financials/companies_item_currencies_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemCurrenciesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCurrencyId provides operations to manage the currencies property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemCurrenciesRequestBuilder) ByCurrencyId(currencyId string)(*CompaniesItemCurrenciesCurrencyItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemCurrenciesRequestBuilder) ByCurrencyId(currencyId string)( } return NewCompaniesItemCurrenciesCurrencyItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByCurrencyIdGuid provides operations to manage the currencies property of the microsoft.graph.company entity. +func (m *CompaniesItemCurrenciesRequestBuilder) ByCurrencyIdGuid(currencyId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemCurrenciesCurrencyItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["currency%2Did"] = currencyId.String() + return NewCompaniesItemCurrenciesCurrencyItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemCurrenciesRequestBuilderInternal instantiates a new CurrenciesRequestBuilder and sets the default values. func NewCompaniesItemCurrenciesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemCurrenciesRequestBuilder) { m := &CompaniesItemCurrenciesRequestBuilder{ diff --git a/financials/companies_item_customer_payment_journals_item_customer_payments_item_customer_picture_request_builder.go b/financials/companies_item_customer_payment_journals_item_customer_payments_item_customer_picture_request_builder.go index b79a969c265..46730c04906 100644 --- a/financials/companies_item_customer_payment_journals_item_customer_payments_item_customer_picture_request_builder.go +++ b/financials/companies_item_customer_payment_journals_item_customer_payments_item_customer_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsItemCustomerPicture Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.customer entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsItemCustomerPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsItemCustomerPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsItemCustomerPic } return NewCompaniesItemCustomerPaymentJournalsItemCustomerPaymentsItemCustomerPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.customer entity. +func (m *CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsItemCustomerPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsItemCustomerPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemCustomerPaymentJournalsItemCustomerPaymentsItemCustomerPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemCustomerPaymentJournalsItemCustomerPaymentsItemCustomerPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemCustomerPaymentJournalsItemCustomerPaymentsItemCustomerPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsItemCustomerPictureRequestBuilder) { m := &CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsItemCustomerPictureRequestBuilder{ diff --git a/financials/companies_item_customer_payment_journals_item_customer_payments_request_builder.go b/financials/companies_item_customer_payment_journals_item_customer_payments_request_builder.go index 1e8dcce84d7..719911a2664 100644 --- a/financials/companies_item_customer_payment_journals_item_customer_payments_request_builder.go +++ b/financials/companies_item_customer_payment_journals_item_customer_payments_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsRequestBuilderPostR Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCustomerPaymentId provides operations to manage the customerPayments property of the microsoft.graph.customerPaymentJournal entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsRequestBuilder) ByCustomerPaymentId(customerPaymentId string)(*CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsCustomerPaymentItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsRequestBuilder) } return NewCompaniesItemCustomerPaymentJournalsItemCustomerPaymentsCustomerPaymentItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByCustomerPaymentIdGuid provides operations to manage the customerPayments property of the microsoft.graph.customerPaymentJournal entity. +func (m *CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsRequestBuilder) ByCustomerPaymentIdGuid(customerPaymentId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsCustomerPaymentItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["customerPayment%2Did"] = customerPaymentId.String() + return NewCompaniesItemCustomerPaymentJournalsItemCustomerPaymentsCustomerPaymentItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemCustomerPaymentJournalsItemCustomerPaymentsRequestBuilderInternal instantiates a new CustomerPaymentsRequestBuilder and sets the default values. func NewCompaniesItemCustomerPaymentJournalsItemCustomerPaymentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsRequestBuilder) { m := &CompaniesItemCustomerPaymentJournalsItemCustomerPaymentsRequestBuilder{ diff --git a/financials/companies_item_customer_payment_journals_request_builder.go b/financials/companies_item_customer_payment_journals_request_builder.go index 9b2815c6da8..988d29e0927 100644 --- a/financials/companies_item_customer_payment_journals_request_builder.go +++ b/financials/companies_item_customer_payment_journals_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemCustomerPaymentJournalsRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCustomerPaymentJournalId provides operations to manage the customerPaymentJournals property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemCustomerPaymentJournalsRequestBuilder) ByCustomerPaymentJournalId(customerPaymentJournalId string)(*CompaniesItemCustomerPaymentJournalsCustomerPaymentJournalItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemCustomerPaymentJournalsRequestBuilder) ByCustomerPaymentJo } return NewCompaniesItemCustomerPaymentJournalsCustomerPaymentJournalItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByCustomerPaymentJournalIdGuid provides operations to manage the customerPaymentJournals property of the microsoft.graph.company entity. +func (m *CompaniesItemCustomerPaymentJournalsRequestBuilder) ByCustomerPaymentJournalIdGuid(customerPaymentJournalId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemCustomerPaymentJournalsCustomerPaymentJournalItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["customerPaymentJournal%2Did"] = customerPaymentJournalId.String() + return NewCompaniesItemCustomerPaymentJournalsCustomerPaymentJournalItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemCustomerPaymentJournalsRequestBuilderInternal instantiates a new CustomerPaymentJournalsRequestBuilder and sets the default values. func NewCompaniesItemCustomerPaymentJournalsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemCustomerPaymentJournalsRequestBuilder) { m := &CompaniesItemCustomerPaymentJournalsRequestBuilder{ diff --git a/financials/companies_item_customer_payments_item_customer_picture_request_builder.go b/financials/companies_item_customer_payments_item_customer_picture_request_builder.go index ce221cdb4b2..ebf34a8056f 100644 --- a/financials/companies_item_customer_payments_item_customer_picture_request_builder.go +++ b/financials/companies_item_customer_payments_item_customer_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemCustomerPaymentsItemCustomerPictureRequestBuilderPostRequestCo Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.customer entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemCustomerPaymentsItemCustomerPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemCustomerPaymentsItemCustomerPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemCustomerPaymentsItemCustomerPictureRequestBuilder) ByPictu } return NewCompaniesItemCustomerPaymentsItemCustomerPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.customer entity. +func (m *CompaniesItemCustomerPaymentsItemCustomerPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemCustomerPaymentsItemCustomerPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemCustomerPaymentsItemCustomerPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemCustomerPaymentsItemCustomerPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemCustomerPaymentsItemCustomerPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemCustomerPaymentsItemCustomerPictureRequestBuilder) { m := &CompaniesItemCustomerPaymentsItemCustomerPictureRequestBuilder{ diff --git a/financials/companies_item_customer_payments_request_builder.go b/financials/companies_item_customer_payments_request_builder.go index 5329060d88e..66c21a4d154 100644 --- a/financials/companies_item_customer_payments_request_builder.go +++ b/financials/companies_item_customer_payments_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemCustomerPaymentsRequestBuilderPostRequestConfiguration struct Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCustomerPaymentId provides operations to manage the customerPayments property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemCustomerPaymentsRequestBuilder) ByCustomerPaymentId(customerPaymentId string)(*CompaniesItemCustomerPaymentsCustomerPaymentItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemCustomerPaymentsRequestBuilder) ByCustomerPaymentId(custom } return NewCompaniesItemCustomerPaymentsCustomerPaymentItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByCustomerPaymentIdGuid provides operations to manage the customerPayments property of the microsoft.graph.company entity. +func (m *CompaniesItemCustomerPaymentsRequestBuilder) ByCustomerPaymentIdGuid(customerPaymentId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemCustomerPaymentsCustomerPaymentItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["customerPayment%2Did"] = customerPaymentId.String() + return NewCompaniesItemCustomerPaymentsCustomerPaymentItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemCustomerPaymentsRequestBuilderInternal instantiates a new CustomerPaymentsRequestBuilder and sets the default values. func NewCompaniesItemCustomerPaymentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemCustomerPaymentsRequestBuilder) { m := &CompaniesItemCustomerPaymentsRequestBuilder{ diff --git a/financials/companies_item_customers_item_picture_request_builder.go b/financials/companies_item_customers_item_picture_request_builder.go index 4e9939ffb9b..52a9202f6b8 100644 --- a/financials/companies_item_customers_item_picture_request_builder.go +++ b/financials/companies_item_customers_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemCustomersItemPictureRequestBuilderPostRequestConfiguration str Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.customer entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemCustomersItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemCustomersItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemCustomersItemPictureRequestBuilder) ByPictureId(pictureId } return NewCompaniesItemCustomersItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.customer entity. +func (m *CompaniesItemCustomersItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemCustomersItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemCustomersItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemCustomersItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemCustomersItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemCustomersItemPictureRequestBuilder) { m := &CompaniesItemCustomersItemPictureRequestBuilder{ diff --git a/financials/companies_item_customers_request_builder.go b/financials/companies_item_customers_request_builder.go index 04df4f10bd4..b92217efea3 100644 --- a/financials/companies_item_customers_request_builder.go +++ b/financials/companies_item_customers_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemCustomersRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCustomerId provides operations to manage the customers property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemCustomersRequestBuilder) ByCustomerId(customerId string)(*CompaniesItemCustomersCustomerItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemCustomersRequestBuilder) ByCustomerId(customerId string)(* } return NewCompaniesItemCustomersCustomerItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByCustomerIdGuid provides operations to manage the customers property of the microsoft.graph.company entity. +func (m *CompaniesItemCustomersRequestBuilder) ByCustomerIdGuid(customerId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemCustomersCustomerItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["customer%2Did"] = customerId.String() + return NewCompaniesItemCustomersCustomerItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemCustomersRequestBuilderInternal instantiates a new CustomersRequestBuilder and sets the default values. func NewCompaniesItemCustomersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemCustomersRequestBuilder) { m := &CompaniesItemCustomersRequestBuilder{ diff --git a/financials/companies_item_dimension_values_request_builder.go b/financials/companies_item_dimension_values_request_builder.go index 1384dfd9dbe..e3a4efec12a 100644 --- a/financials/companies_item_dimension_values_request_builder.go +++ b/financials/companies_item_dimension_values_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemDimensionValuesRequestBuilderGetRequestConfiguration struct { QueryParameters *CompaniesItemDimensionValuesRequestBuilderGetQueryParameters } // ByDimensionValueId provides operations to manage the dimensionValues property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemDimensionValuesRequestBuilder) ByDimensionValueId(dimensionValueId string)(*CompaniesItemDimensionValuesDimensionValueItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemDimensionValuesRequestBuilder) ByDimensionValueId(dimensio } return NewCompaniesItemDimensionValuesDimensionValueItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByDimensionValueIdGuid provides operations to manage the dimensionValues property of the microsoft.graph.company entity. +func (m *CompaniesItemDimensionValuesRequestBuilder) ByDimensionValueIdGuid(dimensionValueId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemDimensionValuesDimensionValueItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["dimensionValue%2Did"] = dimensionValueId.String() + return NewCompaniesItemDimensionValuesDimensionValueItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemDimensionValuesRequestBuilderInternal instantiates a new DimensionValuesRequestBuilder and sets the default values. func NewCompaniesItemDimensionValuesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemDimensionValuesRequestBuilder) { m := &CompaniesItemDimensionValuesRequestBuilder{ diff --git a/financials/companies_item_dimensions_item_dimension_values_request_builder.go b/financials/companies_item_dimensions_item_dimension_values_request_builder.go index a46c7ba7919..cb45a3e4188 100644 --- a/financials/companies_item_dimensions_item_dimension_values_request_builder.go +++ b/financials/companies_item_dimensions_item_dimension_values_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemDimensionsItemDimensionValuesRequestBuilderGetRequestConfigura QueryParameters *CompaniesItemDimensionsItemDimensionValuesRequestBuilderGetQueryParameters } // ByDimensionValueId provides operations to manage the dimensionValues property of the microsoft.graph.dimension entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemDimensionsItemDimensionValuesRequestBuilder) ByDimensionValueId(dimensionValueId string)(*CompaniesItemDimensionsItemDimensionValuesDimensionValueItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemDimensionsItemDimensionValuesRequestBuilder) ByDimensionVa } return NewCompaniesItemDimensionsItemDimensionValuesDimensionValueItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByDimensionValueIdGuid provides operations to manage the dimensionValues property of the microsoft.graph.dimension entity. +func (m *CompaniesItemDimensionsItemDimensionValuesRequestBuilder) ByDimensionValueIdGuid(dimensionValueId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemDimensionsItemDimensionValuesDimensionValueItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["dimensionValue%2Did"] = dimensionValueId.String() + return NewCompaniesItemDimensionsItemDimensionValuesDimensionValueItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemDimensionsItemDimensionValuesRequestBuilderInternal instantiates a new DimensionValuesRequestBuilder and sets the default values. func NewCompaniesItemDimensionsItemDimensionValuesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemDimensionsItemDimensionValuesRequestBuilder) { m := &CompaniesItemDimensionsItemDimensionValuesRequestBuilder{ diff --git a/financials/companies_item_dimensions_request_builder.go b/financials/companies_item_dimensions_request_builder.go index 55d97d90fa6..59033303eaf 100644 --- a/financials/companies_item_dimensions_request_builder.go +++ b/financials/companies_item_dimensions_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemDimensionsRequestBuilderGetRequestConfiguration struct { QueryParameters *CompaniesItemDimensionsRequestBuilderGetQueryParameters } // ByDimensionId provides operations to manage the dimensions property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemDimensionsRequestBuilder) ByDimensionId(dimensionId string)(*CompaniesItemDimensionsDimensionItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemDimensionsRequestBuilder) ByDimensionId(dimensionId string } return NewCompaniesItemDimensionsDimensionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByDimensionIdGuid provides operations to manage the dimensions property of the microsoft.graph.company entity. +func (m *CompaniesItemDimensionsRequestBuilder) ByDimensionIdGuid(dimensionId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemDimensionsDimensionItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["dimension%2Did"] = dimensionId.String() + return NewCompaniesItemDimensionsDimensionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemDimensionsRequestBuilderInternal instantiates a new DimensionsRequestBuilder and sets the default values. func NewCompaniesItemDimensionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemDimensionsRequestBuilder) { m := &CompaniesItemDimensionsRequestBuilder{ diff --git a/financials/companies_item_employees_item_picture_request_builder.go b/financials/companies_item_employees_item_picture_request_builder.go index ec4ca430f5d..9234bdb7566 100644 --- a/financials/companies_item_employees_item_picture_request_builder.go +++ b/financials/companies_item_employees_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemEmployeesItemPictureRequestBuilderPostRequestConfiguration str Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.employee entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemEmployeesItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemEmployeesItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemEmployeesItemPictureRequestBuilder) ByPictureId(pictureId } return NewCompaniesItemEmployeesItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.employee entity. +func (m *CompaniesItemEmployeesItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemEmployeesItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemEmployeesItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemEmployeesItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemEmployeesItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemEmployeesItemPictureRequestBuilder) { m := &CompaniesItemEmployeesItemPictureRequestBuilder{ diff --git a/financials/companies_item_employees_request_builder.go b/financials/companies_item_employees_request_builder.go index faa1e45b896..e476bd86f91 100644 --- a/financials/companies_item_employees_request_builder.go +++ b/financials/companies_item_employees_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemEmployeesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByEmployeeId provides operations to manage the employees property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemEmployeesRequestBuilder) ByEmployeeId(employeeId string)(*CompaniesItemEmployeesEmployeeItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemEmployeesRequestBuilder) ByEmployeeId(employeeId string)(* } return NewCompaniesItemEmployeesEmployeeItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByEmployeeIdGuid provides operations to manage the employees property of the microsoft.graph.company entity. +func (m *CompaniesItemEmployeesRequestBuilder) ByEmployeeIdGuid(employeeId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemEmployeesEmployeeItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["employee%2Did"] = employeeId.String() + return NewCompaniesItemEmployeesEmployeeItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemEmployeesRequestBuilderInternal instantiates a new EmployeesRequestBuilder and sets the default values. func NewCompaniesItemEmployeesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemEmployeesRequestBuilder) { m := &CompaniesItemEmployeesRequestBuilder{ diff --git a/financials/companies_item_general_ledger_entries_request_builder.go b/financials/companies_item_general_ledger_entries_request_builder.go index 51f6901f9e4..e01bd3171b3 100644 --- a/financials/companies_item_general_ledger_entries_request_builder.go +++ b/financials/companies_item_general_ledger_entries_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemGeneralLedgerEntriesRequestBuilderGetRequestConfiguration stru QueryParameters *CompaniesItemGeneralLedgerEntriesRequestBuilderGetQueryParameters } // ByGeneralLedgerEntryId provides operations to manage the generalLedgerEntries property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemGeneralLedgerEntriesRequestBuilder) ByGeneralLedgerEntryId(generalLedgerEntryId string)(*CompaniesItemGeneralLedgerEntriesGeneralLedgerEntryItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemGeneralLedgerEntriesRequestBuilder) ByGeneralLedgerEntryId } return NewCompaniesItemGeneralLedgerEntriesGeneralLedgerEntryItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByGeneralLedgerEntryIdGuid provides operations to manage the generalLedgerEntries property of the microsoft.graph.company entity. +func (m *CompaniesItemGeneralLedgerEntriesRequestBuilder) ByGeneralLedgerEntryIdGuid(generalLedgerEntryId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemGeneralLedgerEntriesGeneralLedgerEntryItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["generalLedgerEntry%2Did"] = generalLedgerEntryId.String() + return NewCompaniesItemGeneralLedgerEntriesGeneralLedgerEntryItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemGeneralLedgerEntriesRequestBuilderInternal instantiates a new GeneralLedgerEntriesRequestBuilder and sets the default values. func NewCompaniesItemGeneralLedgerEntriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemGeneralLedgerEntriesRequestBuilder) { m := &CompaniesItemGeneralLedgerEntriesRequestBuilder{ diff --git a/financials/companies_item_item_categories_request_builder.go b/financials/companies_item_item_categories_request_builder.go index c6554dc9fa6..1566dda7201 100644 --- a/financials/companies_item_item_categories_request_builder.go +++ b/financials/companies_item_item_categories_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemItemCategoriesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByItemCategoryId provides operations to manage the itemCategories property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemItemCategoriesRequestBuilder) ByItemCategoryId(itemCategoryId string)(*CompaniesItemItemCategoriesItemCategoryItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemItemCategoriesRequestBuilder) ByItemCategoryId(itemCategor } return NewCompaniesItemItemCategoriesItemCategoryItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByItemCategoryIdGuid provides operations to manage the itemCategories property of the microsoft.graph.company entity. +func (m *CompaniesItemItemCategoriesRequestBuilder) ByItemCategoryIdGuid(itemCategoryId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemItemCategoriesItemCategoryItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["itemCategory%2Did"] = itemCategoryId.String() + return NewCompaniesItemItemCategoriesItemCategoryItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemItemCategoriesRequestBuilderInternal instantiates a new ItemCategoriesRequestBuilder and sets the default values. func NewCompaniesItemItemCategoriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemItemCategoriesRequestBuilder) { m := &CompaniesItemItemCategoriesRequestBuilder{ diff --git a/financials/companies_item_items_item_picture_request_builder.go b/financials/companies_item_items_item_picture_request_builder.go index 3e20119329b..164dd1eb2bc 100644 --- a/financials/companies_item_items_item_picture_request_builder.go +++ b/financials/companies_item_items_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemItemsItemPictureRequestBuilderPostRequestConfiguration struct Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.item entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemItemsItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemItemsItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemItemsItemPictureRequestBuilder) ByPictureId(pictureId stri } return NewCompaniesItemItemsItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.item entity. +func (m *CompaniesItemItemsItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemItemsItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemItemsItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemItemsItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemItemsItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemItemsItemPictureRequestBuilder) { m := &CompaniesItemItemsItemPictureRequestBuilder{ diff --git a/financials/companies_item_items_request_builder.go b/financials/companies_item_items_request_builder.go index 2334f02bc00..b0bd46c05d9 100644 --- a/financials/companies_item_items_request_builder.go +++ b/financials/companies_item_items_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemItemsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByItemId provides operations to manage the items property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemItemsRequestBuilder) ByItemId(itemId string)(*CompaniesItemItemsItemItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemItemsRequestBuilder) ByItemId(itemId string)(*CompaniesIte } return NewCompaniesItemItemsItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByItemIdGuid provides operations to manage the items property of the microsoft.graph.company entity. +func (m *CompaniesItemItemsRequestBuilder) ByItemIdGuid(itemId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemItemsItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["item%2Did"] = itemId.String() + return NewCompaniesItemItemsItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemItemsRequestBuilderInternal instantiates a new ItemsRequestBuilder and sets the default values. func NewCompaniesItemItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemItemsRequestBuilder) { m := &CompaniesItemItemsRequestBuilder{ diff --git a/financials/companies_item_journal_lines_request_builder.go b/financials/companies_item_journal_lines_request_builder.go index f9151a7cfcf..7f8a5ba9c9b 100644 --- a/financials/companies_item_journal_lines_request_builder.go +++ b/financials/companies_item_journal_lines_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemJournalLinesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByJournalLineId provides operations to manage the journalLines property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemJournalLinesRequestBuilder) ByJournalLineId(journalLineId string)(*CompaniesItemJournalLinesJournalLineItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemJournalLinesRequestBuilder) ByJournalLineId(journalLineId } return NewCompaniesItemJournalLinesJournalLineItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByJournalLineIdGuid provides operations to manage the journalLines property of the microsoft.graph.company entity. +func (m *CompaniesItemJournalLinesRequestBuilder) ByJournalLineIdGuid(journalLineId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemJournalLinesJournalLineItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["journalLine%2Did"] = journalLineId.String() + return NewCompaniesItemJournalLinesJournalLineItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemJournalLinesRequestBuilderInternal instantiates a new JournalLinesRequestBuilder and sets the default values. func NewCompaniesItemJournalLinesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemJournalLinesRequestBuilder) { m := &CompaniesItemJournalLinesRequestBuilder{ diff --git a/financials/companies_item_journals_item_journal_lines_request_builder.go b/financials/companies_item_journals_item_journal_lines_request_builder.go index 0466f064c25..b1650f9c84e 100644 --- a/financials/companies_item_journals_item_journal_lines_request_builder.go +++ b/financials/companies_item_journals_item_journal_lines_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemJournalsItemJournalLinesRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByJournalLineId provides operations to manage the journalLines property of the microsoft.graph.journal entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemJournalsItemJournalLinesRequestBuilder) ByJournalLineId(journalLineId string)(*CompaniesItemJournalsItemJournalLinesJournalLineItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemJournalsItemJournalLinesRequestBuilder) ByJournalLineId(jo } return NewCompaniesItemJournalsItemJournalLinesJournalLineItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByJournalLineIdGuid provides operations to manage the journalLines property of the microsoft.graph.journal entity. +func (m *CompaniesItemJournalsItemJournalLinesRequestBuilder) ByJournalLineIdGuid(journalLineId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemJournalsItemJournalLinesJournalLineItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["journalLine%2Did"] = journalLineId.String() + return NewCompaniesItemJournalsItemJournalLinesJournalLineItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemJournalsItemJournalLinesRequestBuilderInternal instantiates a new JournalLinesRequestBuilder and sets the default values. func NewCompaniesItemJournalsItemJournalLinesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemJournalsItemJournalLinesRequestBuilder) { m := &CompaniesItemJournalsItemJournalLinesRequestBuilder{ diff --git a/financials/companies_item_journals_request_builder.go b/financials/companies_item_journals_request_builder.go index da01ed0cfc6..3e5ab671694 100644 --- a/financials/companies_item_journals_request_builder.go +++ b/financials/companies_item_journals_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemJournalsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByJournalId provides operations to manage the journals property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemJournalsRequestBuilder) ByJournalId(journalId string)(*CompaniesItemJournalsJournalItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemJournalsRequestBuilder) ByJournalId(journalId string)(*Com } return NewCompaniesItemJournalsJournalItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByJournalIdGuid provides operations to manage the journals property of the microsoft.graph.company entity. +func (m *CompaniesItemJournalsRequestBuilder) ByJournalIdGuid(journalId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemJournalsJournalItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["journal%2Did"] = journalId.String() + return NewCompaniesItemJournalsJournalItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemJournalsRequestBuilderInternal instantiates a new JournalsRequestBuilder and sets the default values. func NewCompaniesItemJournalsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemJournalsRequestBuilder) { m := &CompaniesItemJournalsRequestBuilder{ diff --git a/financials/companies_item_payment_methods_request_builder.go b/financials/companies_item_payment_methods_request_builder.go index b3a4d7b7a78..11a9a37aa7a 100644 --- a/financials/companies_item_payment_methods_request_builder.go +++ b/financials/companies_item_payment_methods_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemPaymentMethodsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPaymentMethodId provides operations to manage the paymentMethods property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemPaymentMethodsRequestBuilder) ByPaymentMethodId(paymentMethodId string)(*CompaniesItemPaymentMethodsPaymentMethodItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemPaymentMethodsRequestBuilder) ByPaymentMethodId(paymentMet } return NewCompaniesItemPaymentMethodsPaymentMethodItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPaymentMethodIdGuid provides operations to manage the paymentMethods property of the microsoft.graph.company entity. +func (m *CompaniesItemPaymentMethodsRequestBuilder) ByPaymentMethodIdGuid(paymentMethodId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemPaymentMethodsPaymentMethodItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["paymentMethod%2Did"] = paymentMethodId.String() + return NewCompaniesItemPaymentMethodsPaymentMethodItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemPaymentMethodsRequestBuilderInternal instantiates a new PaymentMethodsRequestBuilder and sets the default values. func NewCompaniesItemPaymentMethodsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemPaymentMethodsRequestBuilder) { m := &CompaniesItemPaymentMethodsRequestBuilder{ diff --git a/financials/companies_item_payment_terms_request_builder.go b/financials/companies_item_payment_terms_request_builder.go index b78cb985a0c..cb6172345ab 100644 --- a/financials/companies_item_payment_terms_request_builder.go +++ b/financials/companies_item_payment_terms_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemPaymentTermsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPaymentTermId provides operations to manage the paymentTerms property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemPaymentTermsRequestBuilder) ByPaymentTermId(paymentTermId string)(*CompaniesItemPaymentTermsPaymentTermItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemPaymentTermsRequestBuilder) ByPaymentTermId(paymentTermId } return NewCompaniesItemPaymentTermsPaymentTermItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPaymentTermIdGuid provides operations to manage the paymentTerms property of the microsoft.graph.company entity. +func (m *CompaniesItemPaymentTermsRequestBuilder) ByPaymentTermIdGuid(paymentTermId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemPaymentTermsPaymentTermItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["paymentTerm%2Did"] = paymentTermId.String() + return NewCompaniesItemPaymentTermsPaymentTermItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemPaymentTermsRequestBuilderInternal instantiates a new PaymentTermsRequestBuilder and sets the default values. func NewCompaniesItemPaymentTermsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemPaymentTermsRequestBuilder) { m := &CompaniesItemPaymentTermsRequestBuilder{ diff --git a/financials/companies_item_picture_request_builder.go b/financials/companies_item_picture_request_builder.go index be7731c1924..cb340a1d7b8 100644 --- a/financials/companies_item_picture_request_builder.go +++ b/financials/companies_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemPictureRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemPictureRequestBuilder) ByPictureId(pictureId string)(*Comp } return NewCompaniesItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.company entity. +func (m *CompaniesItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemPictureRequestBuilder) { m := &CompaniesItemPictureRequestBuilder{ diff --git a/financials/companies_item_purchase_invoice_lines_item_item_picture_request_builder.go b/financials/companies_item_purchase_invoice_lines_item_item_picture_request_builder.go index 1c98a2a6609..5fbddd19e41 100644 --- a/financials/companies_item_purchase_invoice_lines_item_item_picture_request_builder.go +++ b/financials/companies_item_purchase_invoice_lines_item_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemPurchaseInvoiceLinesItemItemPictureRequestBuilderPostRequestCo Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.item entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemPurchaseInvoiceLinesItemItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemPurchaseInvoiceLinesItemItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemPurchaseInvoiceLinesItemItemPictureRequestBuilder) ByPictu } return NewCompaniesItemPurchaseInvoiceLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.item entity. +func (m *CompaniesItemPurchaseInvoiceLinesItemItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemPurchaseInvoiceLinesItemItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemPurchaseInvoiceLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemPurchaseInvoiceLinesItemItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemPurchaseInvoiceLinesItemItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemPurchaseInvoiceLinesItemItemPictureRequestBuilder) { m := &CompaniesItemPurchaseInvoiceLinesItemItemPictureRequestBuilder{ diff --git a/financials/companies_item_purchase_invoices_item_purchase_invoice_lines_item_item_picture_request_builder.go b/financials/companies_item_purchase_invoices_item_purchase_invoice_lines_item_item_picture_request_builder.go index 70eb8c91297..3c433eb96f9 100644 --- a/financials/companies_item_purchase_invoices_item_purchase_invoice_lines_item_item_picture_request_builder.go +++ b/financials/companies_item_purchase_invoices_item_purchase_invoice_lines_item_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemPurchaseInvoicesItemPurchaseInvoiceLinesItemItemPictureRequest Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.item entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemPurchaseInvoicesItemPurchaseInvoiceLinesItemItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemPurchaseInvoicesItemPurchaseInvoiceLinesItemItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemPurchaseInvoicesItemPurchaseInvoiceLinesItemItemPictureReq } return NewCompaniesItemPurchaseInvoicesItemPurchaseInvoiceLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.item entity. +func (m *CompaniesItemPurchaseInvoicesItemPurchaseInvoiceLinesItemItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemPurchaseInvoicesItemPurchaseInvoiceLinesItemItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemPurchaseInvoicesItemPurchaseInvoiceLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemPurchaseInvoicesItemPurchaseInvoiceLinesItemItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemPurchaseInvoicesItemPurchaseInvoiceLinesItemItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemPurchaseInvoicesItemPurchaseInvoiceLinesItemItemPictureRequestBuilder) { m := &CompaniesItemPurchaseInvoicesItemPurchaseInvoiceLinesItemItemPictureRequestBuilder{ diff --git a/financials/companies_item_purchase_invoices_item_vendor_picture_request_builder.go b/financials/companies_item_purchase_invoices_item_vendor_picture_request_builder.go index eced923793a..4868c32fd12 100644 --- a/financials/companies_item_purchase_invoices_item_vendor_picture_request_builder.go +++ b/financials/companies_item_purchase_invoices_item_vendor_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemPurchaseInvoicesItemVendorPictureRequestBuilderPostRequestConf Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.vendor entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemPurchaseInvoicesItemVendorPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemPurchaseInvoicesItemVendorPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemPurchaseInvoicesItemVendorPictureRequestBuilder) ByPicture } return NewCompaniesItemPurchaseInvoicesItemVendorPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.vendor entity. +func (m *CompaniesItemPurchaseInvoicesItemVendorPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemPurchaseInvoicesItemVendorPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemPurchaseInvoicesItemVendorPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemPurchaseInvoicesItemVendorPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemPurchaseInvoicesItemVendorPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemPurchaseInvoicesItemVendorPictureRequestBuilder) { m := &CompaniesItemPurchaseInvoicesItemVendorPictureRequestBuilder{ diff --git a/financials/companies_item_purchase_invoices_request_builder.go b/financials/companies_item_purchase_invoices_request_builder.go index 08d81623078..ac9578f8d94 100644 --- a/financials/companies_item_purchase_invoices_request_builder.go +++ b/financials/companies_item_purchase_invoices_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemPurchaseInvoicesRequestBuilderGetRequestConfiguration struct { QueryParameters *CompaniesItemPurchaseInvoicesRequestBuilderGetQueryParameters } // ByPurchaseInvoiceId provides operations to manage the purchaseInvoices property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemPurchaseInvoicesRequestBuilder) ByPurchaseInvoiceId(purchaseInvoiceId string)(*CompaniesItemPurchaseInvoicesPurchaseInvoiceItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemPurchaseInvoicesRequestBuilder) ByPurchaseInvoiceId(purcha } return NewCompaniesItemPurchaseInvoicesPurchaseInvoiceItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPurchaseInvoiceIdGuid provides operations to manage the purchaseInvoices property of the microsoft.graph.company entity. +func (m *CompaniesItemPurchaseInvoicesRequestBuilder) ByPurchaseInvoiceIdGuid(purchaseInvoiceId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemPurchaseInvoicesPurchaseInvoiceItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["purchaseInvoice%2Did"] = purchaseInvoiceId.String() + return NewCompaniesItemPurchaseInvoicesPurchaseInvoiceItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemPurchaseInvoicesRequestBuilderInternal instantiates a new PurchaseInvoicesRequestBuilder and sets the default values. func NewCompaniesItemPurchaseInvoicesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemPurchaseInvoicesRequestBuilder) { m := &CompaniesItemPurchaseInvoicesRequestBuilder{ diff --git a/financials/companies_item_sales_credit_memo_lines_item_item_picture_request_builder.go b/financials/companies_item_sales_credit_memo_lines_item_item_picture_request_builder.go index 9d6d1693c39..a95e5b9d501 100644 --- a/financials/companies_item_sales_credit_memo_lines_item_item_picture_request_builder.go +++ b/financials/companies_item_sales_credit_memo_lines_item_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemSalesCreditMemoLinesItemItemPictureRequestBuilderPostRequestCo Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.item entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesCreditMemoLinesItemItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemSalesCreditMemoLinesItemItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemSalesCreditMemoLinesItemItemPictureRequestBuilder) ByPictu } return NewCompaniesItemSalesCreditMemoLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.item entity. +func (m *CompaniesItemSalesCreditMemoLinesItemItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesCreditMemoLinesItemItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemSalesCreditMemoLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesCreditMemoLinesItemItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemSalesCreditMemoLinesItemItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesCreditMemoLinesItemItemPictureRequestBuilder) { m := &CompaniesItemSalesCreditMemoLinesItemItemPictureRequestBuilder{ diff --git a/financials/companies_item_sales_credit_memos_item_customer_picture_request_builder.go b/financials/companies_item_sales_credit_memos_item_customer_picture_request_builder.go index 78043cab2e5..ff10a9f5466 100644 --- a/financials/companies_item_sales_credit_memos_item_customer_picture_request_builder.go +++ b/financials/companies_item_sales_credit_memos_item_customer_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemSalesCreditMemosItemCustomerPictureRequestBuilderPostRequestCo Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.customer entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesCreditMemosItemCustomerPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemSalesCreditMemosItemCustomerPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemSalesCreditMemosItemCustomerPictureRequestBuilder) ByPictu } return NewCompaniesItemSalesCreditMemosItemCustomerPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.customer entity. +func (m *CompaniesItemSalesCreditMemosItemCustomerPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesCreditMemosItemCustomerPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemSalesCreditMemosItemCustomerPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesCreditMemosItemCustomerPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemSalesCreditMemosItemCustomerPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesCreditMemosItemCustomerPictureRequestBuilder) { m := &CompaniesItemSalesCreditMemosItemCustomerPictureRequestBuilder{ diff --git a/financials/companies_item_sales_credit_memos_item_sales_credit_memo_lines_item_item_picture_request_builder.go b/financials/companies_item_sales_credit_memos_item_sales_credit_memo_lines_item_item_picture_request_builder.go index 56342bd0c6b..0f9620648e0 100644 --- a/financials/companies_item_sales_credit_memos_item_sales_credit_memo_lines_item_item_picture_request_builder.go +++ b/financials/companies_item_sales_credit_memos_item_sales_credit_memo_lines_item_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemSalesCreditMemosItemSalesCreditMemoLinesItemItemPictureRequest Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.item entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesCreditMemosItemSalesCreditMemoLinesItemItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemSalesCreditMemosItemSalesCreditMemoLinesItemItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemSalesCreditMemosItemSalesCreditMemoLinesItemItemPictureReq } return NewCompaniesItemSalesCreditMemosItemSalesCreditMemoLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.item entity. +func (m *CompaniesItemSalesCreditMemosItemSalesCreditMemoLinesItemItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesCreditMemosItemSalesCreditMemoLinesItemItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemSalesCreditMemosItemSalesCreditMemoLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesCreditMemosItemSalesCreditMemoLinesItemItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemSalesCreditMemosItemSalesCreditMemoLinesItemItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesCreditMemosItemSalesCreditMemoLinesItemItemPictureRequestBuilder) { m := &CompaniesItemSalesCreditMemosItemSalesCreditMemoLinesItemItemPictureRequestBuilder{ diff --git a/financials/companies_item_sales_credit_memos_request_builder.go b/financials/companies_item_sales_credit_memos_request_builder.go index 994023bfd3f..884d4d18177 100644 --- a/financials/companies_item_sales_credit_memos_request_builder.go +++ b/financials/companies_item_sales_credit_memos_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemSalesCreditMemosRequestBuilderGetRequestConfiguration struct { QueryParameters *CompaniesItemSalesCreditMemosRequestBuilderGetQueryParameters } // BySalesCreditMemoId provides operations to manage the salesCreditMemos property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesCreditMemosRequestBuilder) BySalesCreditMemoId(salesCreditMemoId string)(*CompaniesItemSalesCreditMemosSalesCreditMemoItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemSalesCreditMemosRequestBuilder) BySalesCreditMemoId(salesC } return NewCompaniesItemSalesCreditMemosSalesCreditMemoItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// BySalesCreditMemoIdGuid provides operations to manage the salesCreditMemos property of the microsoft.graph.company entity. +func (m *CompaniesItemSalesCreditMemosRequestBuilder) BySalesCreditMemoIdGuid(salesCreditMemoId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesCreditMemosSalesCreditMemoItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["salesCreditMemo%2Did"] = salesCreditMemoId.String() + return NewCompaniesItemSalesCreditMemosSalesCreditMemoItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesCreditMemosRequestBuilderInternal instantiates a new SalesCreditMemosRequestBuilder and sets the default values. func NewCompaniesItemSalesCreditMemosRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesCreditMemosRequestBuilder) { m := &CompaniesItemSalesCreditMemosRequestBuilder{ diff --git a/financials/companies_item_sales_invoice_lines_item_item_picture_request_builder.go b/financials/companies_item_sales_invoice_lines_item_item_picture_request_builder.go index 7a8562c3f4f..7717bc2e034 100644 --- a/financials/companies_item_sales_invoice_lines_item_item_picture_request_builder.go +++ b/financials/companies_item_sales_invoice_lines_item_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemSalesInvoiceLinesItemItemPictureRequestBuilderPostRequestConfi Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.item entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesInvoiceLinesItemItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemSalesInvoiceLinesItemItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemSalesInvoiceLinesItemItemPictureRequestBuilder) ByPictureI } return NewCompaniesItemSalesInvoiceLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.item entity. +func (m *CompaniesItemSalesInvoiceLinesItemItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesInvoiceLinesItemItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemSalesInvoiceLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesInvoiceLinesItemItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemSalesInvoiceLinesItemItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesInvoiceLinesItemItemPictureRequestBuilder) { m := &CompaniesItemSalesInvoiceLinesItemItemPictureRequestBuilder{ diff --git a/financials/companies_item_sales_invoices_item_customer_picture_request_builder.go b/financials/companies_item_sales_invoices_item_customer_picture_request_builder.go index 6e64f040ab4..50643eaf65d 100644 --- a/financials/companies_item_sales_invoices_item_customer_picture_request_builder.go +++ b/financials/companies_item_sales_invoices_item_customer_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemSalesInvoicesItemCustomerPictureRequestBuilderPostRequestConfi Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.customer entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesInvoicesItemCustomerPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemSalesInvoicesItemCustomerPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemSalesInvoicesItemCustomerPictureRequestBuilder) ByPictureI } return NewCompaniesItemSalesInvoicesItemCustomerPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.customer entity. +func (m *CompaniesItemSalesInvoicesItemCustomerPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesInvoicesItemCustomerPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemSalesInvoicesItemCustomerPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesInvoicesItemCustomerPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemSalesInvoicesItemCustomerPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesInvoicesItemCustomerPictureRequestBuilder) { m := &CompaniesItemSalesInvoicesItemCustomerPictureRequestBuilder{ diff --git a/financials/companies_item_sales_invoices_item_sales_invoice_lines_item_item_picture_request_builder.go b/financials/companies_item_sales_invoices_item_sales_invoice_lines_item_item_picture_request_builder.go index d14ba405b59..6346127f31b 100644 --- a/financials/companies_item_sales_invoices_item_sales_invoice_lines_item_item_picture_request_builder.go +++ b/financials/companies_item_sales_invoices_item_sales_invoice_lines_item_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemSalesInvoicesItemSalesInvoiceLinesItemItemPictureRequestBuilde Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.item entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesInvoicesItemSalesInvoiceLinesItemItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemSalesInvoicesItemSalesInvoiceLinesItemItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemSalesInvoicesItemSalesInvoiceLinesItemItemPictureRequestBu } return NewCompaniesItemSalesInvoicesItemSalesInvoiceLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.item entity. +func (m *CompaniesItemSalesInvoicesItemSalesInvoiceLinesItemItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesInvoicesItemSalesInvoiceLinesItemItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemSalesInvoicesItemSalesInvoiceLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesInvoicesItemSalesInvoiceLinesItemItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemSalesInvoicesItemSalesInvoiceLinesItemItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesInvoicesItemSalesInvoiceLinesItemItemPictureRequestBuilder) { m := &CompaniesItemSalesInvoicesItemSalesInvoiceLinesItemItemPictureRequestBuilder{ diff --git a/financials/companies_item_sales_invoices_request_builder.go b/financials/companies_item_sales_invoices_request_builder.go index d7b85b3b859..7061a193371 100644 --- a/financials/companies_item_sales_invoices_request_builder.go +++ b/financials/companies_item_sales_invoices_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemSalesInvoicesRequestBuilderGetRequestConfiguration struct { QueryParameters *CompaniesItemSalesInvoicesRequestBuilderGetQueryParameters } // BySalesInvoiceId provides operations to manage the salesInvoices property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesInvoicesRequestBuilder) BySalesInvoiceId(salesInvoiceId string)(*CompaniesItemSalesInvoicesSalesInvoiceItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemSalesInvoicesRequestBuilder) BySalesInvoiceId(salesInvoice } return NewCompaniesItemSalesInvoicesSalesInvoiceItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// BySalesInvoiceIdGuid provides operations to manage the salesInvoices property of the microsoft.graph.company entity. +func (m *CompaniesItemSalesInvoicesRequestBuilder) BySalesInvoiceIdGuid(salesInvoiceId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesInvoicesSalesInvoiceItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["salesInvoice%2Did"] = salesInvoiceId.String() + return NewCompaniesItemSalesInvoicesSalesInvoiceItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesInvoicesRequestBuilderInternal instantiates a new SalesInvoicesRequestBuilder and sets the default values. func NewCompaniesItemSalesInvoicesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesInvoicesRequestBuilder) { m := &CompaniesItemSalesInvoicesRequestBuilder{ diff --git a/financials/companies_item_sales_order_lines_item_item_picture_request_builder.go b/financials/companies_item_sales_order_lines_item_item_picture_request_builder.go index 083517b4a46..d9d4f92a473 100644 --- a/financials/companies_item_sales_order_lines_item_item_picture_request_builder.go +++ b/financials/companies_item_sales_order_lines_item_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemSalesOrderLinesItemItemPictureRequestBuilderPostRequestConfigu Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.item entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesOrderLinesItemItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemSalesOrderLinesItemItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemSalesOrderLinesItemItemPictureRequestBuilder) ByPictureId( } return NewCompaniesItemSalesOrderLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.item entity. +func (m *CompaniesItemSalesOrderLinesItemItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesOrderLinesItemItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemSalesOrderLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesOrderLinesItemItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemSalesOrderLinesItemItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesOrderLinesItemItemPictureRequestBuilder) { m := &CompaniesItemSalesOrderLinesItemItemPictureRequestBuilder{ diff --git a/financials/companies_item_sales_orders_item_customer_picture_request_builder.go b/financials/companies_item_sales_orders_item_customer_picture_request_builder.go index 1981411ebf8..4fdf21dd0c7 100644 --- a/financials/companies_item_sales_orders_item_customer_picture_request_builder.go +++ b/financials/companies_item_sales_orders_item_customer_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemSalesOrdersItemCustomerPictureRequestBuilderPostRequestConfigu Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.customer entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesOrdersItemCustomerPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemSalesOrdersItemCustomerPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemSalesOrdersItemCustomerPictureRequestBuilder) ByPictureId( } return NewCompaniesItemSalesOrdersItemCustomerPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.customer entity. +func (m *CompaniesItemSalesOrdersItemCustomerPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesOrdersItemCustomerPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemSalesOrdersItemCustomerPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesOrdersItemCustomerPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemSalesOrdersItemCustomerPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesOrdersItemCustomerPictureRequestBuilder) { m := &CompaniesItemSalesOrdersItemCustomerPictureRequestBuilder{ diff --git a/financials/companies_item_sales_orders_item_sales_order_lines_item_item_picture_request_builder.go b/financials/companies_item_sales_orders_item_sales_order_lines_item_item_picture_request_builder.go index 5b741628858..533b894f646 100644 --- a/financials/companies_item_sales_orders_item_sales_order_lines_item_item_picture_request_builder.go +++ b/financials/companies_item_sales_orders_item_sales_order_lines_item_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemSalesOrdersItemSalesOrderLinesItemItemPictureRequestBuilderPos Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.item entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesOrdersItemSalesOrderLinesItemItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemSalesOrdersItemSalesOrderLinesItemItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemSalesOrdersItemSalesOrderLinesItemItemPictureRequestBuilde } return NewCompaniesItemSalesOrdersItemSalesOrderLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.item entity. +func (m *CompaniesItemSalesOrdersItemSalesOrderLinesItemItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesOrdersItemSalesOrderLinesItemItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemSalesOrdersItemSalesOrderLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesOrdersItemSalesOrderLinesItemItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemSalesOrdersItemSalesOrderLinesItemItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesOrdersItemSalesOrderLinesItemItemPictureRequestBuilder) { m := &CompaniesItemSalesOrdersItemSalesOrderLinesItemItemPictureRequestBuilder{ diff --git a/financials/companies_item_sales_orders_request_builder.go b/financials/companies_item_sales_orders_request_builder.go index 4422c0250fd..cba1a173eb0 100644 --- a/financials/companies_item_sales_orders_request_builder.go +++ b/financials/companies_item_sales_orders_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemSalesOrdersRequestBuilderGetRequestConfiguration struct { QueryParameters *CompaniesItemSalesOrdersRequestBuilderGetQueryParameters } // BySalesOrderId provides operations to manage the salesOrders property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesOrdersRequestBuilder) BySalesOrderId(salesOrderId string)(*CompaniesItemSalesOrdersSalesOrderItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemSalesOrdersRequestBuilder) BySalesOrderId(salesOrderId str } return NewCompaniesItemSalesOrdersSalesOrderItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// BySalesOrderIdGuid provides operations to manage the salesOrders property of the microsoft.graph.company entity. +func (m *CompaniesItemSalesOrdersRequestBuilder) BySalesOrderIdGuid(salesOrderId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesOrdersSalesOrderItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["salesOrder%2Did"] = salesOrderId.String() + return NewCompaniesItemSalesOrdersSalesOrderItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesOrdersRequestBuilderInternal instantiates a new SalesOrdersRequestBuilder and sets the default values. func NewCompaniesItemSalesOrdersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesOrdersRequestBuilder) { m := &CompaniesItemSalesOrdersRequestBuilder{ diff --git a/financials/companies_item_sales_quote_lines_item_item_picture_request_builder.go b/financials/companies_item_sales_quote_lines_item_item_picture_request_builder.go index 570f707ec81..e9460027b29 100644 --- a/financials/companies_item_sales_quote_lines_item_item_picture_request_builder.go +++ b/financials/companies_item_sales_quote_lines_item_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemSalesQuoteLinesItemItemPictureRequestBuilderPostRequestConfigu Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.item entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesQuoteLinesItemItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemSalesQuoteLinesItemItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemSalesQuoteLinesItemItemPictureRequestBuilder) ByPictureId( } return NewCompaniesItemSalesQuoteLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.item entity. +func (m *CompaniesItemSalesQuoteLinesItemItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesQuoteLinesItemItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemSalesQuoteLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesQuoteLinesItemItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemSalesQuoteLinesItemItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesQuoteLinesItemItemPictureRequestBuilder) { m := &CompaniesItemSalesQuoteLinesItemItemPictureRequestBuilder{ diff --git a/financials/companies_item_sales_quotes_item_customer_picture_request_builder.go b/financials/companies_item_sales_quotes_item_customer_picture_request_builder.go index 418e832e93b..047eeb36cf5 100644 --- a/financials/companies_item_sales_quotes_item_customer_picture_request_builder.go +++ b/financials/companies_item_sales_quotes_item_customer_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemSalesQuotesItemCustomerPictureRequestBuilderPostRequestConfigu Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.customer entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesQuotesItemCustomerPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemSalesQuotesItemCustomerPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemSalesQuotesItemCustomerPictureRequestBuilder) ByPictureId( } return NewCompaniesItemSalesQuotesItemCustomerPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.customer entity. +func (m *CompaniesItemSalesQuotesItemCustomerPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesQuotesItemCustomerPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemSalesQuotesItemCustomerPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesQuotesItemCustomerPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemSalesQuotesItemCustomerPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesQuotesItemCustomerPictureRequestBuilder) { m := &CompaniesItemSalesQuotesItemCustomerPictureRequestBuilder{ diff --git a/financials/companies_item_sales_quotes_item_sales_quote_lines_item_item_picture_request_builder.go b/financials/companies_item_sales_quotes_item_sales_quote_lines_item_item_picture_request_builder.go index 3f624b11dde..3f501f5c9be 100644 --- a/financials/companies_item_sales_quotes_item_sales_quote_lines_item_item_picture_request_builder.go +++ b/financials/companies_item_sales_quotes_item_sales_quote_lines_item_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemSalesQuotesItemSalesQuoteLinesItemItemPictureRequestBuilderPos Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.item entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesQuotesItemSalesQuoteLinesItemItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemSalesQuotesItemSalesQuoteLinesItemItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemSalesQuotesItemSalesQuoteLinesItemItemPictureRequestBuilde } return NewCompaniesItemSalesQuotesItemSalesQuoteLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.item entity. +func (m *CompaniesItemSalesQuotesItemSalesQuoteLinesItemItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesQuotesItemSalesQuoteLinesItemItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemSalesQuotesItemSalesQuoteLinesItemItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesQuotesItemSalesQuoteLinesItemItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemSalesQuotesItemSalesQuoteLinesItemItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesQuotesItemSalesQuoteLinesItemItemPictureRequestBuilder) { m := &CompaniesItemSalesQuotesItemSalesQuoteLinesItemItemPictureRequestBuilder{ diff --git a/financials/companies_item_sales_quotes_request_builder.go b/financials/companies_item_sales_quotes_request_builder.go index 07b9211ca23..e74eb7bd2ad 100644 --- a/financials/companies_item_sales_quotes_request_builder.go +++ b/financials/companies_item_sales_quotes_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesItemSalesQuotesRequestBuilderGetRequestConfiguration struct { QueryParameters *CompaniesItemSalesQuotesRequestBuilderGetQueryParameters } // BySalesQuoteId provides operations to manage the salesQuotes property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemSalesQuotesRequestBuilder) BySalesQuoteId(salesQuoteId string)(*CompaniesItemSalesQuotesSalesQuoteItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesItemSalesQuotesRequestBuilder) BySalesQuoteId(salesQuoteId str } return NewCompaniesItemSalesQuotesSalesQuoteItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// BySalesQuoteIdGuid provides operations to manage the salesQuotes property of the microsoft.graph.company entity. +func (m *CompaniesItemSalesQuotesRequestBuilder) BySalesQuoteIdGuid(salesQuoteId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemSalesQuotesSalesQuoteItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["salesQuote%2Did"] = salesQuoteId.String() + return NewCompaniesItemSalesQuotesSalesQuoteItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemSalesQuotesRequestBuilderInternal instantiates a new SalesQuotesRequestBuilder and sets the default values. func NewCompaniesItemSalesQuotesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemSalesQuotesRequestBuilder) { m := &CompaniesItemSalesQuotesRequestBuilder{ diff --git a/financials/companies_item_shipment_methods_request_builder.go b/financials/companies_item_shipment_methods_request_builder.go index f058286dfbf..b9aab4fc384 100644 --- a/financials/companies_item_shipment_methods_request_builder.go +++ b/financials/companies_item_shipment_methods_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemShipmentMethodsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByShipmentMethodId provides operations to manage the shipmentMethods property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemShipmentMethodsRequestBuilder) ByShipmentMethodId(shipmentMethodId string)(*CompaniesItemShipmentMethodsShipmentMethodItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemShipmentMethodsRequestBuilder) ByShipmentMethodId(shipment } return NewCompaniesItemShipmentMethodsShipmentMethodItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByShipmentMethodIdGuid provides operations to manage the shipmentMethods property of the microsoft.graph.company entity. +func (m *CompaniesItemShipmentMethodsRequestBuilder) ByShipmentMethodIdGuid(shipmentMethodId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemShipmentMethodsShipmentMethodItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["shipmentMethod%2Did"] = shipmentMethodId.String() + return NewCompaniesItemShipmentMethodsShipmentMethodItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemShipmentMethodsRequestBuilderInternal instantiates a new ShipmentMethodsRequestBuilder and sets the default values. func NewCompaniesItemShipmentMethodsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemShipmentMethodsRequestBuilder) { m := &CompaniesItemShipmentMethodsRequestBuilder{ diff --git a/financials/companies_item_tax_areas_request_builder.go b/financials/companies_item_tax_areas_request_builder.go index 242ee0e9a40..50c72914e56 100644 --- a/financials/companies_item_tax_areas_request_builder.go +++ b/financials/companies_item_tax_areas_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemTaxAreasRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByTaxAreaId provides operations to manage the taxAreas property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemTaxAreasRequestBuilder) ByTaxAreaId(taxAreaId string)(*CompaniesItemTaxAreasTaxAreaItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemTaxAreasRequestBuilder) ByTaxAreaId(taxAreaId string)(*Com } return NewCompaniesItemTaxAreasTaxAreaItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByTaxAreaIdGuid provides operations to manage the taxAreas property of the microsoft.graph.company entity. +func (m *CompaniesItemTaxAreasRequestBuilder) ByTaxAreaIdGuid(taxAreaId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemTaxAreasTaxAreaItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["taxArea%2Did"] = taxAreaId.String() + return NewCompaniesItemTaxAreasTaxAreaItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemTaxAreasRequestBuilderInternal instantiates a new TaxAreasRequestBuilder and sets the default values. func NewCompaniesItemTaxAreasRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemTaxAreasRequestBuilder) { m := &CompaniesItemTaxAreasRequestBuilder{ diff --git a/financials/companies_item_units_of_measure_request_builder.go b/financials/companies_item_units_of_measure_request_builder.go index ba20813657e..8be06d5cef8 100644 --- a/financials/companies_item_units_of_measure_request_builder.go +++ b/financials/companies_item_units_of_measure_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemUnitsOfMeasureRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByUnitOfMeasureId provides operations to manage the unitsOfMeasure property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemUnitsOfMeasureRequestBuilder) ByUnitOfMeasureId(unitOfMeasureId string)(*CompaniesItemUnitsOfMeasureUnitOfMeasureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemUnitsOfMeasureRequestBuilder) ByUnitOfMeasureId(unitOfMeas } return NewCompaniesItemUnitsOfMeasureUnitOfMeasureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByUnitOfMeasureIdGuid provides operations to manage the unitsOfMeasure property of the microsoft.graph.company entity. +func (m *CompaniesItemUnitsOfMeasureRequestBuilder) ByUnitOfMeasureIdGuid(unitOfMeasureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemUnitsOfMeasureUnitOfMeasureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["unitOfMeasure%2Did"] = unitOfMeasureId.String() + return NewCompaniesItemUnitsOfMeasureUnitOfMeasureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemUnitsOfMeasureRequestBuilderInternal instantiates a new UnitsOfMeasureRequestBuilder and sets the default values. func NewCompaniesItemUnitsOfMeasureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemUnitsOfMeasureRequestBuilder) { m := &CompaniesItemUnitsOfMeasureRequestBuilder{ diff --git a/financials/companies_item_vendors_item_picture_request_builder.go b/financials/companies_item_vendors_item_picture_request_builder.go index 83af9febd5e..66df209811e 100644 --- a/financials/companies_item_vendors_item_picture_request_builder.go +++ b/financials/companies_item_vendors_item_picture_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemVendorsItemPictureRequestBuilderPostRequestConfiguration struc Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPictureId provides operations to manage the picture property of the microsoft.graph.vendor entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemVendorsItemPictureRequestBuilder) ByPictureId(pictureId string)(*CompaniesItemVendorsItemPicturePictureItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemVendorsItemPictureRequestBuilder) ByPictureId(pictureId st } return NewCompaniesItemVendorsItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByPictureIdGuid provides operations to manage the picture property of the microsoft.graph.vendor entity. +func (m *CompaniesItemVendorsItemPictureRequestBuilder) ByPictureIdGuid(pictureId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemVendorsItemPicturePictureItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["picture%2Did"] = pictureId.String() + return NewCompaniesItemVendorsItemPicturePictureItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemVendorsItemPictureRequestBuilderInternal instantiates a new PictureRequestBuilder and sets the default values. func NewCompaniesItemVendorsItemPictureRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemVendorsItemPictureRequestBuilder) { m := &CompaniesItemVendorsItemPictureRequestBuilder{ diff --git a/financials/companies_item_vendors_request_builder.go b/financials/companies_item_vendors_request_builder.go index f5225657db6..a9aa1af3540 100644 --- a/financials/companies_item_vendors_request_builder.go +++ b/financials/companies_item_vendors_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -47,6 +48,7 @@ type CompaniesItemVendorsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByVendorId provides operations to manage the vendors property of the microsoft.graph.company entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesItemVendorsRequestBuilder) ByVendorId(vendorId string)(*CompaniesItemVendorsVendorItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -57,6 +59,15 @@ func (m *CompaniesItemVendorsRequestBuilder) ByVendorId(vendorId string)(*Compan } return NewCompaniesItemVendorsVendorItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByVendorIdGuid provides operations to manage the vendors property of the microsoft.graph.company entity. +func (m *CompaniesItemVendorsRequestBuilder) ByVendorIdGuid(vendorId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesItemVendorsVendorItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["vendor%2Did"] = vendorId.String() + return NewCompaniesItemVendorsVendorItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesItemVendorsRequestBuilderInternal instantiates a new VendorsRequestBuilder and sets the default values. func NewCompaniesItemVendorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesItemVendorsRequestBuilder) { m := &CompaniesItemVendorsRequestBuilder{ diff --git a/financials/companies_request_builder.go b/financials/companies_request_builder.go index 3b95e576248..f26043a1480 100644 --- a/financials/companies_request_builder.go +++ b/financials/companies_request_builder.go @@ -3,6 +3,7 @@ package financials import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) @@ -40,6 +41,7 @@ type CompaniesRequestBuilderGetRequestConfiguration struct { QueryParameters *CompaniesRequestBuilderGetQueryParameters } // ByCompanyId provides operations to manage the companies property of the microsoft.graph.financials entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *CompaniesRequestBuilder) ByCompanyId(companyId string)(*CompaniesCompanyItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *CompaniesRequestBuilder) ByCompanyId(companyId string)(*CompaniesCompan } return NewCompaniesCompanyItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByCompanyIdGuid provides operations to manage the companies property of the microsoft.graph.financials entity. +func (m *CompaniesRequestBuilder) ByCompanyIdGuid(companyId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*CompaniesCompanyItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["company%2Did"] = companyId.String() + return NewCompaniesCompanyItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewCompaniesRequestBuilderInternal instantiates a new CompaniesRequestBuilder and sets the default values. func NewCompaniesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CompaniesRequestBuilder) { m := &CompaniesRequestBuilder{ diff --git a/go.mod b/go.mod index 7d94e0eae15..032e4869e78 100644 --- a/go.mod +++ b/go.mod @@ -21,6 +21,7 @@ require ( github.com/go-logr/stdr v1.2.2 // indirect github.com/microsoft/kiota-authentication-azure-go v1.0.0 // indirect github.com/microsoft/kiota-http-go v1.0.0 // indirect + github.com/microsoft/kiota-serialization-multipart-go v1.0.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/yosida95/uritemplate/v3 v3.0.2 // indirect go.opentelemetry.io/otel v1.16.0 // indirect diff --git a/go.sum b/go.sum index 0dccc2cd9fa..4b2699cfaa1 100644 --- a/go.sum +++ b/go.sum @@ -26,12 +26,15 @@ github.com/microsoft/kiota-serialization-form-go v1.0.0 h1:UNdrkMnLFqUCccQZerKjb github.com/microsoft/kiota-serialization-form-go v1.0.0/go.mod h1:h4mQOO6KVTNciMF6azi1J9QB19ujSw3ULKcSNyXXOMA= github.com/microsoft/kiota-serialization-json-go v1.0.4 h1:5TaISWwd2Me8clrK7SqNATo0tv9seOq59y4I5953egQ= github.com/microsoft/kiota-serialization-json-go v1.0.4/go.mod h1:rM4+FsAY+9AEpBsBzkFFis+b/LZLlNKKewuLwK9Q6Mg= +github.com/microsoft/kiota-serialization-multipart-go v1.0.0 h1:3O5sb5Zj+moLBiJympbXNaeV07K0d46IfuEd5v9+pBs= +github.com/microsoft/kiota-serialization-multipart-go v1.0.0/go.mod h1:yauLeBTpANk4L03XD985akNysG24SnRJGaveZf+p4so= github.com/microsoft/kiota-serialization-text-go v1.0.0 h1:XOaRhAXy+g8ZVpcq7x7a0jlETWnWrEum0RhmbYrTFnA= github.com/microsoft/kiota-serialization-text-go v1.0.0/go.mod h1:sM1/C6ecnQ7IquQOGUrUldaO5wj+9+v7G2W3sQ3fy6M= github.com/microsoftgraph/msgraph-sdk-go-core v1.0.0 h1:7NWTfyXvOjoizW7PmxNp3+8wCKPgpODs/D1cUZ3fkAY= github.com/microsoftgraph/msgraph-sdk-go-core v1.0.0/go.mod h1:tQb4q3YMIj2dWhhXhQSJ4ELpol931ANKzHSYK5kX1qE= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4= diff --git a/graph_base_service_client.go b/graph_base_service_client.go index c3f31c319b8..a41035ef4b8 100644 --- a/graph_base_service_client.go +++ b/graph_base_service_client.go @@ -4,6 +4,7 @@ import ( i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488 "github.com/microsoft/kiota-serialization-json-go" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347 "github.com/microsoft/kiota-serialization-form-go" + i56887720f41ac882814261620b1c8459c4a992a0207af547c4453dd39fabc426 "github.com/microsoft/kiota-serialization-multipart-go" i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83 "github.com/microsoft/kiota-serialization-text-go" i0281e791d6eedd5b4b6d3c18b07336722b6152b5db6a2e9dc8385e98f565f677 "github.com/microsoftgraph/msgraph-beta-sdk-go/financials" i054b68521cee54ec767d07cf7a8a6d50a0d24b6e6fc43b8296c34730fd8ca465 "github.com/microsoftgraph/msgraph-beta-sdk-go/functions" @@ -50,6 +51,7 @@ import ( i4b923a0ffb143d5def24980fce5d55c68c9634d5b55c33bb0b3029ac68415dd1 "github.com/microsoftgraph/msgraph-beta-sdk-go/employeeexperience" i4cb6edb865a0e38bb1799dcb0c7881b92feed59596c1912cfe5e6142b61f9c91 "github.com/microsoftgraph/msgraph-beta-sdk-go/invitations" i531b1efd1768fd272d51921ff5812bdeba5b46e0eeec0e4c818250cb7116aed5 "github.com/microsoftgraph/msgraph-beta-sdk-go/identityproviders" + i55ae935853de1792fdb46948985a94b1dba6c75d346e01b97f5bd49309b8959b "github.com/microsoftgraph/msgraph-beta-sdk-go/applicationswithuniquename" i56ad7deac03a612015589ab4fade2313d6df08086c7ee8d46177fc8ddc5b0053 "github.com/microsoftgraph/msgraph-beta-sdk-go/messagerecipients" i5840582f75a8eb78900edf3bd78566223ffee7aa1dc2f4cdca943ef635f6503e "github.com/microsoftgraph/msgraph-beta-sdk-go/search" i5b4eb770497618728398e41e6ed415ad2b92d20f7ad45ba75277a5800d9a2a12 "github.com/microsoftgraph/msgraph-beta-sdk-go/directoryroletemplates" @@ -69,6 +71,7 @@ import ( i716e3204a4c47d24737c05f3b4c2ef2462fa5a1df29b57365f338e8f68ee16ef "github.com/microsoftgraph/msgraph-beta-sdk-go/contacts" i7282246c788c7b44fcd028d8a1500ce1ffd32f655bee3b580b6a33d9ec10f610 "github.com/microsoftgraph/msgraph-beta-sdk-go/solutions" i73583652789c7aab226ac5bae66bc7b5fd924607d28350c4478c2a20524fd624 "github.com/microsoftgraph/msgraph-beta-sdk-go/shares" + i74f9164c3d2d3eadced923419244ab3c32717c28ae93424103196d4b781b759e "github.com/microsoftgraph/msgraph-beta-sdk-go/groupswithuniquename" i75b6dc07087cda1a9afc465878b0aa56ca3703a3ed530d5a22119b0960d159d3 "github.com/microsoftgraph/msgraph-beta-sdk-go/print" i761e9f0dec20dbf36c7fd626d107fb81ef94cafa7369422d2b2af143ffa16184 "github.com/microsoftgraph/msgraph-beta-sdk-go/security" i79f2b866e8bec3ee9349dc885ecb3691e94b20459995d83b3dbf9f05341c7a89 "github.com/microsoftgraph/msgraph-beta-sdk-go/groups" @@ -177,6 +180,10 @@ func (m *GraphBaseServiceClient) Applications()(*ie1b2fd35e4b1f7cbc7bd808e462c96 func (m *GraphBaseServiceClient) ApplicationsWithAppId(appId *string)(*i1feaf5e7874bc1012d47d3fb9128ea97140f17a0526b7e8dd267bdb120026eae.ApplicationsWithAppIdRequestBuilder) { return i1feaf5e7874bc1012d47d3fb9128ea97140f17a0526b7e8dd267bdb120026eae.NewApplicationsWithAppIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, appId) } +// ApplicationsWithUniqueName provides operations to manage the collection of application entities. +func (m *GraphBaseServiceClient) ApplicationsWithUniqueName(uniqueName *string)(*i55ae935853de1792fdb46948985a94b1dba6c75d346e01b97f5bd49309b8959b.ApplicationsWithUniqueNameRequestBuilder) { + return i55ae935853de1792fdb46948985a94b1dba6c75d346e01b97f5bd49309b8959b.NewApplicationsWithUniqueNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, uniqueName) +} // ApplicationTemplates provides operations to manage the collection of applicationTemplate entities. func (m *GraphBaseServiceClient) ApplicationTemplates()(*i9fb9a4d9d99571d2cc1de51809c0dfccf1dae8bd81c7eb39e51d1382c2ec81ba.ApplicationTemplatesRequestBuilder) { return i9fb9a4d9d99571d2cc1de51809c0dfccf1dae8bd81c7eb39e51d1382c2ec81ba.NewApplicationTemplatesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -245,6 +252,7 @@ func NewGraphBaseServiceClient(requestAdapter i2ae4187f7daee263371cb1c977df63981 i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonSerializationWriterFactory() }) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextSerializationWriterFactory() }) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormSerializationWriterFactory() }) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i56887720f41ac882814261620b1c8459c4a992a0207af547c4453dd39fabc426.NewMultipartSerializationWriterFactory() }) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonParseNodeFactory() }) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextParseNodeFactory() }) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormParseNodeFactory() }) @@ -383,6 +391,10 @@ func (m *GraphBaseServiceClient) GroupLifecyclePolicies()(*i71438b4a3f9d4a17f8c8 func (m *GraphBaseServiceClient) Groups()(*i79f2b866e8bec3ee9349dc885ecb3691e94b20459995d83b3dbf9f05341c7a89.GroupsRequestBuilder) { return i79f2b866e8bec3ee9349dc885ecb3691e94b20459995d83b3dbf9f05341c7a89.NewGroupsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GroupsWithUniqueName provides operations to manage the collection of group entities. +func (m *GraphBaseServiceClient) GroupsWithUniqueName(uniqueName *string)(*i74f9164c3d2d3eadced923419244ab3c32717c28ae93424103196d4b781b759e.GroupsWithUniqueNameRequestBuilder) { + return i74f9164c3d2d3eadced923419244ab3c32717c28ae93424103196d4b781b759e.NewGroupsWithUniqueNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, uniqueName) +} // Identity provides operations to manage the identityContainer singleton. func (m *GraphBaseServiceClient) Identity()(*i20702653f98186060bd39b9fe8136743eafc0ddaa43435e527665ac75229a33a.IdentityRequestBuilder) { return i20702653f98186060bd39b9fe8136743eafc0ddaa43435e527665ac75229a33a.NewIdentityRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/graph_request_adapter.go b/graph_request_adapter.go index a6d1e55e1ef..f79f5fa431e 100644 --- a/graph_request_adapter.go +++ b/graph_request_adapter.go @@ -10,7 +10,7 @@ import ( var clientOptions = core.GraphClientOptions{ GraphServiceVersion: "beta", - GraphServiceLibraryVersion: "0.76.0", + GraphServiceLibraryVersion: "0.77.0", } // GetDefaultClientOptions returns the default client options used by the GraphRequestAdapterBase and the middleware. @@ -105,5 +105,6 @@ func NewGraphRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndH + diff --git a/groups/item_calendar_calendar_view_item_exception_occurrences_item_extensions_request_builder.go b/groups/item_calendar_calendar_view_item_exception_occurrences_item_extensions_request_builder.go index 6a607dfb610..787dfd90c31 100644 --- a/groups/item_calendar_calendar_view_item_exception_occurrences_item_extensions_request_builder.go +++ b/groups/item_calendar_calendar_view_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBu } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go index da718ba6725..1fc5f3b7f49 100644 --- a/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_calendar_view_item_extensions_request_builder.go b/groups/item_calendar_calendar_view_item_extensions_request_builder.go index 181171b4b83..7ec12765ff0 100644 --- a/groups/item_calendar_calendar_view_item_extensions_request_builder.go +++ b/groups/item_calendar_calendar_view_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) Get(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) ToGetRequestInfor } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go index bc34e60a195..0d6a03a2505 100644 --- a/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_calendar_view_item_instances_item_extensions_request_builder.go b/groups/item_calendar_calendar_view_item_instances_item_extensions_request_builder.go index f8a746c28ea..252097cba62 100644 --- a/groups/item_calendar_calendar_view_item_instances_item_extensions_request_builder.go +++ b/groups/item_calendar_calendar_view_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) Get( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) ToGe } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_events_item_exception_occurrences_item_extensions_request_builder.go b/groups/item_calendar_events_item_exception_occurrences_item_extensions_request_builder.go index 5530d3894e9..162883918fb 100644 --- a/groups/item_calendar_events_item_exception_occurrences_item_extensions_request_builder.go +++ b/groups/item_calendar_events_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go b/groups/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go index dfd39d1e882..84abc645f5a 100644 --- a/groups/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/groups/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRe } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_events_item_extensions_request_builder.go b/groups/item_calendar_events_item_extensions_request_builder.go index 367bbfe7eb0..70ef28e5540 100644 --- a/groups/item_calendar_events_item_extensions_request_builder.go +++ b/groups/item_calendar_events_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarEventsItemExtensionsRequestBuilder) Get(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarEventsItemExtensionsRequestBuilder) ToGetRequestInformation } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarEventsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go b/groups/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go index f5107b30c74..7bc2312c51c 100644 --- a/groups/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/groups/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRe } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_events_item_instances_item_extensions_request_builder.go b/groups/item_calendar_events_item_instances_item_extensions_request_builder.go index 173ef120240..183eb47a7f6 100644 --- a/groups/item_calendar_events_item_instances_item_extensions_request_builder.go +++ b/groups/item_calendar_events_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) Get(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) ToGetReque } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go b/groups/item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go index bd89ac4f555..cd9e9394fda 100644 --- a/groups/item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go +++ b/groups/item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) G } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) T } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go b/groups/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go index 4b52651b412..60866406570 100644 --- a/groups/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/groups/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequ } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_view_item_extensions_request_builder.go b/groups/item_calendar_view_item_extensions_request_builder.go index 8389df3b42f..dab2d70917a 100644 --- a/groups/item_calendar_view_item_extensions_request_builder.go +++ b/groups/item_calendar_view_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarViewItemExtensionsRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarViewItemExtensionsRequestBuilder) ToGetRequestInformation(c } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarViewItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go b/groups/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go index e1bdc857fe6..4d2c50600ed 100644 --- a/groups/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/groups/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequ } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_view_item_instances_item_extensions_request_builder.go b/groups/item_calendar_view_item_instances_item_extensions_request_builder.go index eaa94764483..d3176107f9c 100644 --- a/groups/item_calendar_view_item_instances_item_extensions_request_builder.go +++ b/groups/item_calendar_view_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) Get(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToGetRequest } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*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 e588d65cdb3..8eb5fc1992a 100644 --- a/groups/item_conversations_conversation_item_request_builder.go +++ b/groups/item_conversations_conversation_item_request_builder.go @@ -45,10 +45,10 @@ func NewItemConversationsConversationItemRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemConversationsConversationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a conversation object. +// Delete delete conversation. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/group-delete-conversation?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversation-delete?view=graph-rest-1.0 func (m *ItemConversationsConversationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -90,7 +90,7 @@ func (m *ItemConversationsConversationItemRequestBuilder) Get(ctx context.Contex func (m *ItemConversationsConversationItemRequestBuilder) Threads()(*ItemConversationsItemThreadsRequestBuilder) { return NewItemConversationsItemThreadsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete a conversation object. +// ToDeleteRequestInformation delete conversation. func (m *ItemConversationsConversationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.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 395e79f858b..09d347d27c5 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://learn.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0 +// [Find more info here]: https://learn.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 4ac8951e96d..e8cff8b4c16 100644 --- a/groups/item_conversations_request_builder.go +++ b/groups/item_conversations_request_builder.go @@ -94,7 +94,7 @@ 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. 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_exception_occurrences_item_extensions_request_builder.go b/groups/item_events_item_exception_occurrences_item_extensions_request_builder.go index 12cd547f2ab..0a3a2a5d9ff 100644 --- a/groups/item_events_item_exception_occurrences_item_extensions_request_builder.go +++ b/groups/item_events_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRe } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go b/groups/item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go index d3484539407..25bc5e1cfef 100644 --- a/groups/item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/groups/item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBui } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_events_item_extensions_request_builder.go b/groups/item_events_item_extensions_request_builder.go index 42948937fff..87e85acc713 100644 --- a/groups/item_events_item_extensions_request_builder.go +++ b/groups/item_events_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemEventsItemExtensionsRequestBuilder) Get(ctx context.Context, reques } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemEventsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx con } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemEventsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go b/groups/item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go index cd9c00cfb94..0683c85584c 100644 --- a/groups/item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/groups/item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBui } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_events_item_instances_item_extensions_request_builder.go b/groups/item_events_item_instances_item_extensions_request_builder.go index b58bc3d5c32..e508fba35b7 100644 --- a/groups/item_events_item_instances_item_extensions_request_builder.go +++ b/groups/item_events_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) ToGetRequestInform } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_get_member_groups_request_builder.go b/groups/item_get_member_groups_request_builder.go index 85dde2256c4..53e97e21734 100644 --- a/groups/item_get_member_groups_request_builder.go +++ b/groups/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_permission_grants_item_get_member_groups_request_builder.go b/groups/item_permission_grants_item_get_member_groups_request_builder.go index ba5522b2512..ebe5b2d770b 100644 --- a/groups/item_permission_grants_item_get_member_groups_request_builder.go +++ b/groups/item_permission_grants_item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemPermissionGrantsItemGetMemberGroupsRequestBuilder(rawUrl string, req urlParams["request-raw-url"] = rawUrl return NewItemPermissionGrantsItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemPermissionGrantsItemGetMemberGroupsRequestBuilder) Post(ctx context } return res.(ItemPermissionGrantsItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemPermissionGrantsItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPermissionGrantsItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemPermissionGrantsItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_team_channels_item_members_conversation_member_item_request_builder.go b/groups/item_team_channels_item_members_conversation_member_item_request_builder.go index 72560eab371..60f8ac3ff5d 100644 --- a/groups/item_team_channels_item_members_conversation_member_item_request_builder.go +++ b/groups/item_team_channels_item_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) ToGetR } return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_team_permission_grants_item_get_member_groups_request_builder.go b/groups/item_team_permission_grants_item_get_member_groups_request_builder.go index cef2e1b5de2..485bc880efc 100644 --- a/groups/item_team_permission_grants_item_get_member_groups_request_builder.go +++ b/groups/item_team_permission_grants_item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemTeamPermissionGrantsItemGetMemberGroupsRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewItemTeamPermissionGrantsItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemTeamPermissionGrantsItemGetMemberGroupsRequestBuilder) Post(ctx con } return res.(ItemTeamPermissionGrantsItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemTeamPermissionGrantsItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamPermissionGrantsItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemTeamPermissionGrantsItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go b/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go index 94f24747d49..ccc8f0b9719 100644 --- a/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go +++ b/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) Get( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) ToGe } return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*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 9e2b91b145b..ab6191d9c28 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://learn.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0 +// [Find more info here]: https://learn.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/groupswithuniquename/groups_with_unique_name_request_builder.go b/groupswithuniquename/groups_with_unique_name_request_builder.go new file mode 100644 index 00000000000..1698691ed97 --- /dev/null +++ b/groupswithuniquename/groups_with_unique_name_request_builder.go @@ -0,0 +1,167 @@ +package groupswithuniquename + +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" +) + +// GroupsWithUniqueNameRequestBuilder provides operations to manage the collection of group entities. +type GroupsWithUniqueNameRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// GroupsWithUniqueNameRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type GroupsWithUniqueNameRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// GroupsWithUniqueNameRequestBuilderGetQueryParameters get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. Because the group resource supports extensions, you can also use the GET operation to get custom properties and extension data in a group instance. +type GroupsWithUniqueNameRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// GroupsWithUniqueNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type GroupsWithUniqueNameRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *GroupsWithUniqueNameRequestBuilderGetQueryParameters +} +// GroupsWithUniqueNameRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type GroupsWithUniqueNameRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewGroupsWithUniqueNameRequestBuilderInternal instantiates a new GroupsWithUniqueNameRequestBuilder and sets the default values. +func NewGroupsWithUniqueNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, uniqueName *string)(*GroupsWithUniqueNameRequestBuilder) { + m := &GroupsWithUniqueNameRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups(uniqueName='{uniqueName}'){?%24select,%24expand}", pathParameters), + } + if uniqueName != nil { + m.BaseRequestBuilder.PathParameters["uniqueName"] = *uniqueName + } + return m +} +// NewGroupsWithUniqueNameRequestBuilder instantiates a new GroupsWithUniqueNameRequestBuilder and sets the default values. +func NewGroupsWithUniqueNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*GroupsWithUniqueNameRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewGroupsWithUniqueNameRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Delete deletes a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/group-delete?view=graph-rest-1.0 +func (m *GroupsWithUniqueNameRequestBuilder) Delete(ctx context.Context, requestConfiguration *GroupsWithUniqueNameRequestBuilderDeleteRequestConfiguration)(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 and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. Because the group resource supports extensions, you can also use the GET operation to get custom properties and extension data in a group instance. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/group-get?view=graph-rest-1.0 +func (m *GroupsWithUniqueNameRequestBuilder) Get(ctx context.Context, requestConfiguration *GroupsWithUniqueNameRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateGroupFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable), nil +} +// Patch update the properties of a group object. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/group-update?view=graph-rest-1.0 +func (m *GroupsWithUniqueNameRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, requestConfiguration *GroupsWithUniqueNameRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, 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.CreateGroupFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable), nil +} +// ToDeleteRequestInformation deletes a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. +func (m *GroupsWithUniqueNameRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *GroupsWithUniqueNameRequestBuilderDeleteRequestConfiguration)(*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 and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. Because the group resource supports extensions, you can also use the GET operation to get custom properties and extension data in a group instance. +func (m *GroupsWithUniqueNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *GroupsWithUniqueNameRequestBuilderGetRequestConfiguration)(*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 group object. +func (m *GroupsWithUniqueNameRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, requestConfiguration *GroupsWithUniqueNameRequestBuilderPatchRequestConfiguration)(*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/identity/conditional_access_named_locations_named_location_item_request_builder.go b/identity/conditional_access_named_locations_named_location_item_request_builder.go index c7729fb7b49..8238557d9c4 100644 --- a/identity/conditional_access_named_locations_named_location_item_request_builder.go +++ b/identity/conditional_access_named_locations_named_location_item_request_builder.go @@ -18,7 +18,7 @@ type ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a countryNamedLocation object. +// ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an ipNamedLocation object. type ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,10 +73,10 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Delete( } return nil } -// Get retrieve the properties and relationships of a countryNamedLocation object. +// Get retrieve the properties and relationships of an ipNamedLocation object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/countrynamedlocation-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/ipnamedlocation-get?view=graph-rest-1.0 func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToDelet } return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of a countryNamedLocation object. +// ToGetRequestInformation retrieve the properties and relationships of an ipNamedLocation object. func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go b/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go index b3faaea385f..2eeed6e28a9 100644 --- a/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go +++ b/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go @@ -18,7 +18,7 @@ type CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuild // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of a customAuthenticationExtension object. +// CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. type CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,10 +73,10 @@ func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestB } return nil } -// Get read the properties and relationships of a customAuthenticationExtension object. +// Get read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/customauthenticationextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/authenticationeventlistener-get?view=graph-rest-1.0 func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomAuthenticationExtensionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -126,7 +126,7 @@ func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestB } return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of a customAuthenticationExtension object. +// ToGetRequestInformation read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration)(*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 92492a4234c..aa6e52eb3a9 100644 --- a/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go @@ -18,7 +18,7 @@ type EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowEx // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. type EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -71,11 +71,11 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } return nil } -// Get read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// Get read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-get?view=graph-rest-1.0 func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -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() 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 54f9e993c3e..08834c9f45e 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 a customAccessPackageWorkflowExtension 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 customAccessPackageWorkflowExtension object that you want to delete by running the LIST customAccessPackageWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 2: Remove the customExtensionHandlers and verifiableCredentialSettings 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://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/customaccesspackageworkflowextension-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 a customAccessPackageWorkflowExtension 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 customAccessPackageWorkflowExtension object that you want to delete by running the LIST customAccessPackageWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 2: Remove the customExtensionHandlers and verifiableCredentialSettings 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/lifecycle_workflows_deleted_items_workflows_item_versions_request_builder.go b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_versions_request_builder.go index ba69e3296fd..f7010ac30fe 100644 --- a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_versions_request_builder.go +++ b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_versions_request_builder.go @@ -2,6 +2,7 @@ package identitygovernance import ( "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" @@ -40,6 +41,7 @@ type LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsRequestBuilderGetRequest QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsRequestBuilderGetQueryParameters } // ByWorkflowVersionVersionNumber provides operations to manage the versions property of the microsoft.graph.identityGovernance.workflow entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsRequestBuilder) ByWorkflowVersionVersionNumber(workflowVersionVersionNumber string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsWorkflowVersionVersionNumberItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsRequestBuilder) ByWo } return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsWorkflowVersionVersionNumberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByWorkflowVersionVersionNumberInteger provides operations to manage the versions property of the microsoft.graph.identityGovernance.workflow entity. +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsRequestBuilder) ByWorkflowVersionVersionNumberInteger(workflowVersionVersionNumber int32)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsWorkflowVersionVersionNumberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["workflowVersion%2DversionNumber"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(workflowVersionVersionNumber), 10) + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsWorkflowVersionVersionNumberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsRequestBuilderInternal instantiates a new VersionsRequestBuilder and sets the default values. func NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsRequestBuilder) { m := &LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsRequestBuilder{ diff --git a/identitygovernance/lifecycle_workflows_workflows_item_versions_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_versions_request_builder.go index 1ecc3a7dc68..0329cfe3dd2 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_versions_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_versions_request_builder.go @@ -2,6 +2,7 @@ package identitygovernance import ( "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" @@ -40,6 +41,7 @@ type LifecycleWorkflowsWorkflowsItemVersionsRequestBuilderGetRequestConfiguratio QueryParameters *LifecycleWorkflowsWorkflowsItemVersionsRequestBuilderGetQueryParameters } // ByWorkflowVersionVersionNumber provides operations to manage the versions property of the microsoft.graph.identityGovernance.workflow entity. +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. func (m *LifecycleWorkflowsWorkflowsItemVersionsRequestBuilder) ByWorkflowVersionVersionNumber(workflowVersionVersionNumber string)(*LifecycleWorkflowsWorkflowsItemVersionsWorkflowVersionVersionNumberItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { @@ -50,6 +52,15 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsRequestBuilder) ByWorkflowVersio } return NewLifecycleWorkflowsWorkflowsItemVersionsWorkflowVersionVersionNumberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// ByWorkflowVersionVersionNumberInteger provides operations to manage the versions property of the microsoft.graph.identityGovernance.workflow entity. +func (m *LifecycleWorkflowsWorkflowsItemVersionsRequestBuilder) ByWorkflowVersionVersionNumberInteger(workflowVersionVersionNumber int32)(*LifecycleWorkflowsWorkflowsItemVersionsWorkflowVersionVersionNumberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["workflowVersion%2DversionNumber"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(workflowVersionVersionNumber), 10) + return NewLifecycleWorkflowsWorkflowsItemVersionsWorkflowVersionVersionNumberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} // NewLifecycleWorkflowsWorkflowsItemVersionsRequestBuilderInternal instantiates a new VersionsRequestBuilder and sets the default values. func NewLifecycleWorkflowsWorkflowsItemVersionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemVersionsRequestBuilder) { m := &LifecycleWorkflowsWorkflowsItemVersionsRequestBuilder{ diff --git a/identitygovernance/role_management_alerts_alerts_item_alert_configuration_request_builder.go b/identitygovernance/role_management_alerts_alerts_item_alert_configuration_request_builder.go index 49b069d044c..2a02eb526cb 100644 --- a/identitygovernance/role_management_alerts_alerts_item_alert_configuration_request_builder.go +++ b/identitygovernance/role_management_alerts_alerts_item_alert_configuration_request_builder.go @@ -11,7 +11,7 @@ import ( type RoleManagementAlertsAlertsItemAlertConfigurationRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// RoleManagementAlertsAlertsItemAlertConfigurationRequestBuilderGetQueryParameters the configuration of the alert in PIM for Azure AD roles. Alert configurations are pre-defined and cannot be created or deleted, but some configurations can be modified. Supports $expand. +// RoleManagementAlertsAlertsItemAlertConfigurationRequestBuilderGetQueryParameters the configuration of the alert in PIM for Azure AD roles. Alert configurations are pre-defined and cannot be created or deleted, but some configurations can be modified. Supports $filter for the isEnabled property and $expand. type RoleManagementAlertsAlertsItemAlertConfigurationRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewRoleManagementAlertsAlertsItemAlertConfigurationRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewRoleManagementAlertsAlertsItemAlertConfigurationRequestBuilderInternal(urlParams, requestAdapter) } -// Get the configuration of the alert in PIM for Azure AD roles. Alert configurations are pre-defined and cannot be created or deleted, but some configurations can be modified. Supports $expand. +// Get the configuration of the alert in PIM for Azure AD roles. Alert configurations are pre-defined and cannot be created or deleted, but some configurations can be modified. Supports $filter for the isEnabled property and $expand. func (m *RoleManagementAlertsAlertsItemAlertConfigurationRequestBuilder) Get(ctx context.Context, requestConfiguration *RoleManagementAlertsAlertsItemAlertConfigurationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleManagementAlertConfigurationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -59,7 +59,7 @@ func (m *RoleManagementAlertsAlertsItemAlertConfigurationRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleManagementAlertConfigurationable), nil } -// ToGetRequestInformation the configuration of the alert in PIM for Azure AD roles. Alert configurations are pre-defined and cannot be created or deleted, but some configurations can be modified. Supports $expand. +// ToGetRequestInformation the configuration of the alert in PIM for Azure AD roles. Alert configurations are pre-defined and cannot be created or deleted, but some configurations can be modified. Supports $filter for the isEnabled property and $expand. func (m *RoleManagementAlertsAlertsItemAlertConfigurationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RoleManagementAlertsAlertsItemAlertConfigurationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go b/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go index 210fe715095..fe13ff4a6e9 100644 --- a/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go +++ b/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go @@ -18,7 +18,7 @@ type TermsOfUseAgreementsAgreementItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an agreement object. +// TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters retrieve all files related to an agreement. This includes the default file and all localized files. type TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -85,10 +85,10 @@ func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) File()(*TermsOfUseAgre func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) Files()(*TermsOfUseAgreementsItemFilesRequestBuilder) { return NewTermsOfUseAgreementsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the properties and relationships of an agreement object. +// Get retrieve all files related to an agreement. This includes the default file and all localized files. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/agreement-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/agreement-list-files?view=graph-rest-1.0 func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) Get(ctx context.Context, requestConfiguration *TermsOfUseAgreementsAgreementItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Agreementable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) ToDeleteRequestInforma } return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of an agreement object. +// ToGetRequestInformation retrieve all files related to an agreement. This includes the default file and all localized files. func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TermsOfUseAgreementsAgreementItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/kiota-lock.json b/kiota-lock.json index 03dafbae20f..1a16723b1a5 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "E1B999F57797C2734176D310A641C2C0DF5CF9120BABC4DD8EF5F2E42707F0174FFC79F29D9993F979A02A239770A592E36188D4B0DACB1B03C1855055B07039", + "descriptionHash": "8E318C4AC92AB5BB7C8C02D5AA885BCBB2CB0BDF86E4D48C5D42F28413D251FC6EC466AA91A75D5B5FED5B4675FDB935D915A59986709EF7C0A2F64B3D2FECD9", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.5.0", + "kiotaVersion": "1.6.0", "clientClassName": "GraphBaseServiceClient", "clientNamespaceName": "github.com/microsoftgraph/msgraph-beta-sdk-go/", "language": "Go", @@ -11,7 +11,8 @@ "serializers": [ "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory", "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory", - "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory" + "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory" ], "deserializers": [ "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory", @@ -21,7 +22,8 @@ "structuredMimeTypes": [ "application/json", "text/plain", - "application/x-www-form-urlencoded" + "application/x-www-form-urlencoded", + "multipart/form-data" ], "includePatterns": [], "excludePatterns": [ diff --git a/models/admin.go b/models/admin.go index e9c9e9c8147..2446f424a6e 100644 --- a/models/admin.go +++ b/models/admin.go @@ -469,7 +469,6 @@ type Adminable interface { SetWindows(value AdminWindowsable)() } - // AdminWindows type AdminWindows struct { Entity diff --git a/models/advanced_threat_protection_onboarding_state_summary.go b/models/advanced_threat_protection_onboarding_state_summary.go index 01d12615b78..2988e8c60eb 100644 --- a/models/advanced_threat_protection_onboarding_state_summary.go +++ b/models/advanced_threat_protection_onboarding_state_summary.go @@ -19,7 +19,7 @@ func NewAdvancedThreatProtectionOnboardingStateSummary()(*AdvancedThreatProtecti func CreateAdvancedThreatProtectionOnboardingStateSummaryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAdvancedThreatProtectionOnboardingStateSummary(), nil } -// GetAdvancedThreatProtectionOnboardingDeviceSettingStates gets the advancedThreatProtectionOnboardingDeviceSettingStates property value. Not yet documented +// GetAdvancedThreatProtectionOnboardingDeviceSettingStates gets the advancedThreatProtectionOnboardingDeviceSettingStates property value. The advancedThreatProtectionOnboardingDeviceSettingStates property func (m *AdvancedThreatProtectionOnboardingStateSummary) GetAdvancedThreatProtectionOnboardingDeviceSettingStates()([]AdvancedThreatProtectionOnboardingDeviceSettingStateable) { val, err := m.GetBackingStore().Get("advancedThreatProtectionOnboardingDeviceSettingStates") if err != nil { @@ -287,7 +287,7 @@ func (m *AdvancedThreatProtectionOnboardingStateSummary) Serialize(writer i878a8 } return nil } -// SetAdvancedThreatProtectionOnboardingDeviceSettingStates sets the advancedThreatProtectionOnboardingDeviceSettingStates property value. Not yet documented +// SetAdvancedThreatProtectionOnboardingDeviceSettingStates sets the advancedThreatProtectionOnboardingDeviceSettingStates property value. The advancedThreatProtectionOnboardingDeviceSettingStates property func (m *AdvancedThreatProtectionOnboardingStateSummary) SetAdvancedThreatProtectionOnboardingDeviceSettingStates(value []AdvancedThreatProtectionOnboardingDeviceSettingStateable)() { err := m.GetBackingStore().Set("advancedThreatProtectionOnboardingDeviceSettingStates", value) if err != nil { diff --git a/models/android_device_owner_delegated_app_scope_type.go b/models/android_device_owner_delegated_app_scope_type.go new file mode 100644 index 00000000000..daa6a010140 --- /dev/null +++ b/models/android_device_owner_delegated_app_scope_type.go @@ -0,0 +1,48 @@ +package models +import ( + "errors" +) +// An enum representing possible values for delegated app scope. +type AndroidDeviceOwnerDelegatedAppScopeType int + +const ( + // Unspecified; this value defaults to DELEGATED_SCOPE_UNSPECIFIED. + UNSPECIFIED_ANDROIDDEVICEOWNERDELEGATEDAPPSCOPETYPE AndroidDeviceOwnerDelegatedAppScopeType = iota + // Specifies that the admin has given app permission to install and manage certificates on device. + CERTIFICATEINSTALL_ANDROIDDEVICEOWNERDELEGATEDAPPSCOPETYPE + // Specifies that the admin has given app permission to capture network activity logs on device. More info on Network activity logs: https://developer.android.com/work/dpc/logging + CAPTURENETWORKACTIVITYLOG_ANDROIDDEVICEOWNERDELEGATEDAPPSCOPETYPE + // Specified that the admin has given permission to capture security logs on device. More info on Security logs: https://developer.android.com/work/dpc/security#log_enterprise_device_activity + CAPTURESECURITYLOG_ANDROIDDEVICEOWNERDELEGATEDAPPSCOPETYPE + // Unknown future value (reserved, not used right now) + UNKNOWNFUTUREVALUE_ANDROIDDEVICEOWNERDELEGATEDAPPSCOPETYPE +) + +func (i AndroidDeviceOwnerDelegatedAppScopeType) String() string { + return []string{"unspecified", "certificateInstall", "captureNetworkActivityLog", "captureSecurityLog", "unknownFutureValue"}[i] +} +func ParseAndroidDeviceOwnerDelegatedAppScopeType(v string) (any, error) { + result := UNSPECIFIED_ANDROIDDEVICEOWNERDELEGATEDAPPSCOPETYPE + switch v { + case "unspecified": + result = UNSPECIFIED_ANDROIDDEVICEOWNERDELEGATEDAPPSCOPETYPE + case "certificateInstall": + result = CERTIFICATEINSTALL_ANDROIDDEVICEOWNERDELEGATEDAPPSCOPETYPE + case "captureNetworkActivityLog": + result = CAPTURENETWORKACTIVITYLOG_ANDROIDDEVICEOWNERDELEGATEDAPPSCOPETYPE + case "captureSecurityLog": + result = CAPTURESECURITYLOG_ANDROIDDEVICEOWNERDELEGATEDAPPSCOPETYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_ANDROIDDEVICEOWNERDELEGATEDAPPSCOPETYPE + default: + return 0, errors.New("Unknown AndroidDeviceOwnerDelegatedAppScopeType value: " + v) + } + return &result, nil +} +func SerializeAndroidDeviceOwnerDelegatedAppScopeType(values []AndroidDeviceOwnerDelegatedAppScopeType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/android_device_owner_delegated_scope_app_setting.go b/models/android_device_owner_delegated_scope_app_setting.go new file mode 100644 index 00000000000..f41a1c82faa --- /dev/null +++ b/models/android_device_owner_delegated_scope_app_setting.go @@ -0,0 +1,188 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// AndroidDeviceOwnerDelegatedScopeAppSetting represents one item in the list of managed apps with app details and its associated delegated scope(s). +type AndroidDeviceOwnerDelegatedScopeAppSetting struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAndroidDeviceOwnerDelegatedScopeAppSetting instantiates a new androidDeviceOwnerDelegatedScopeAppSetting and sets the default values. +func NewAndroidDeviceOwnerDelegatedScopeAppSetting()(*AndroidDeviceOwnerDelegatedScopeAppSetting) { + m := &AndroidDeviceOwnerDelegatedScopeAppSetting{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAndroidDeviceOwnerDelegatedScopeAppSettingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAndroidDeviceOwnerDelegatedScopeAppSettingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAndroidDeviceOwnerDelegatedScopeAppSetting(), 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 *AndroidDeviceOwnerDelegatedScopeAppSetting) 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) +} +// GetAppDetail gets the appDetail property value. Represents an app in the list of managed applications +func (m *AndroidDeviceOwnerDelegatedScopeAppSetting) GetAppDetail()(AppListItemable) { + val, err := m.GetBackingStore().Get("appDetail") + if err != nil { + panic(err) + } + if val != nil { + return val.(AppListItemable) + } + return nil +} +// GetAppScopes gets the appScopes property value. List of scopes an app has been assigned. +func (m *AndroidDeviceOwnerDelegatedScopeAppSetting) GetAppScopes()([]AndroidDeviceOwnerDelegatedAppScopeType) { + val, err := m.GetBackingStore().Get("appScopes") + if err != nil { + panic(err) + } + if val != nil { + return val.([]AndroidDeviceOwnerDelegatedAppScopeType) + } + return nil +} +// GetBackingStore gets the backingStore property value. Stores model information. +func (m *AndroidDeviceOwnerDelegatedScopeAppSetting) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AndroidDeviceOwnerDelegatedScopeAppSetting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["appDetail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAppListItemFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAppDetail(val.(AppListItemable)) + } + return nil + } + res["appScopes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfEnumValues(ParseAndroidDeviceOwnerDelegatedAppScopeType) + if err != nil { + return err + } + if val != nil { + res := make([]AndroidDeviceOwnerDelegatedAppScopeType, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*AndroidDeviceOwnerDelegatedAppScopeType)) + } + } + m.SetAppScopes(res) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AndroidDeviceOwnerDelegatedScopeAppSetting) 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 *AndroidDeviceOwnerDelegatedScopeAppSetting) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("appDetail", m.GetAppDetail()) + if err != nil { + return err + } + } + if m.GetAppScopes() != nil { + err := writer.WriteCollectionOfStringValues("appScopes", SerializeAndroidDeviceOwnerDelegatedAppScopeType(m.GetAppScopes())) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AndroidDeviceOwnerDelegatedScopeAppSetting) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAppDetail sets the appDetail property value. Represents an app in the list of managed applications +func (m *AndroidDeviceOwnerDelegatedScopeAppSetting) SetAppDetail(value AppListItemable)() { + err := m.GetBackingStore().Set("appDetail", value) + if err != nil { + panic(err) + } +} +// SetAppScopes sets the appScopes property value. List of scopes an app has been assigned. +func (m *AndroidDeviceOwnerDelegatedScopeAppSetting) SetAppScopes(value []AndroidDeviceOwnerDelegatedAppScopeType)() { + err := m.GetBackingStore().Set("appScopes", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the backingStore property value. Stores model information. +func (m *AndroidDeviceOwnerDelegatedScopeAppSetting) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AndroidDeviceOwnerDelegatedScopeAppSetting) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// AndroidDeviceOwnerDelegatedScopeAppSettingable +type AndroidDeviceOwnerDelegatedScopeAppSettingable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAppDetail()(AppListItemable) + GetAppScopes()([]AndroidDeviceOwnerDelegatedAppScopeType) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetAppDetail(value AppListItemable)() + SetAppScopes(value []AndroidDeviceOwnerDelegatedAppScopeType)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/android_device_owner_general_device_configuration.go b/models/android_device_owner_general_device_configuration.go index c842e80cbd4..3a5c6529a3e 100644 --- a/models/android_device_owner_general_device_configuration.go +++ b/models/android_device_owner_general_device_configuration.go @@ -32,6 +32,17 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetAccountsBlockModificat } return nil } +// GetAndroidDeviceOwnerDelegatedScopeAppSettings gets the androidDeviceOwnerDelegatedScopeAppSettings property value. Specifies the list of managed apps with app details and its associated delegated scope(s). This collection can contain a maximum of 500 elements. +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetAndroidDeviceOwnerDelegatedScopeAppSettings()([]AndroidDeviceOwnerDelegatedScopeAppSettingable) { + val, err := m.GetBackingStore().Get("androidDeviceOwnerDelegatedScopeAppSettings") + if err != nil { + panic(err) + } + if val != nil { + return val.([]AndroidDeviceOwnerDelegatedScopeAppSettingable) + } + return nil +} // GetAppsAllowInstallFromUnknownSources gets the appsAllowInstallFromUnknownSources property value. Indicates whether or not the user is allowed to enable to unknown sources setting. func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetAppsAllowInstallFromUnknownSources()(*bool) { val, err := m.GetBackingStore().Get("appsAllowInstallFromUnknownSources") @@ -265,6 +276,22 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m } return nil } + res["androidDeviceOwnerDelegatedScopeAppSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateAndroidDeviceOwnerDelegatedScopeAppSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]AndroidDeviceOwnerDelegatedScopeAppSettingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(AndroidDeviceOwnerDelegatedScopeAppSettingable) + } + } + m.SetAndroidDeviceOwnerDelegatedScopeAppSettings(res) + } + return nil + } res["appsAllowInstallFromUnknownSources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -2954,6 +2981,18 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) Serialize(writer i878a80d return err } } + if m.GetAndroidDeviceOwnerDelegatedScopeAppSettings() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAndroidDeviceOwnerDelegatedScopeAppSettings())) + for i, v := range m.GetAndroidDeviceOwnerDelegatedScopeAppSettings() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("androidDeviceOwnerDelegatedScopeAppSettings", cast) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("appsAllowInstallFromUnknownSources", m.GetAppsAllowInstallFromUnknownSources()) if err != nil { @@ -3830,6 +3869,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetAccountsBlockModificat panic(err) } } +// SetAndroidDeviceOwnerDelegatedScopeAppSettings sets the androidDeviceOwnerDelegatedScopeAppSettings property value. Specifies the list of managed apps with app details and its associated delegated scope(s). This collection can contain a maximum of 500 elements. +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetAndroidDeviceOwnerDelegatedScopeAppSettings(value []AndroidDeviceOwnerDelegatedScopeAppSettingable)() { + err := m.GetBackingStore().Set("androidDeviceOwnerDelegatedScopeAppSettings", value) + if err != nil { + panic(err) + } +} // SetAppsAllowInstallFromUnknownSources sets the appsAllowInstallFromUnknownSources property value. Indicates whether or not the user is allowed to enable to unknown sources setting. func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetAppsAllowInstallFromUnknownSources(value *bool)() { err := m.GetBackingStore().Set("appsAllowInstallFromUnknownSources", value) @@ -4780,6 +4826,7 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { DeviceConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAccountsBlockModification()(*bool) + GetAndroidDeviceOwnerDelegatedScopeAppSettings()([]AndroidDeviceOwnerDelegatedScopeAppSettingable) GetAppsAllowInstallFromUnknownSources()(*bool) GetAppsAutoUpdatePolicy()(*AndroidDeviceOwnerAppAutoUpdatePolicyType) GetAppsDefaultPermissionPolicy()(*AndroidDeviceOwnerDefaultAppPermissionPolicyType) @@ -4916,6 +4963,7 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { GetWorkProfilePasswordRequireUnlock()(*AndroidDeviceOwnerRequiredPasswordUnlock) GetWorkProfilePasswordSignInFailureCountBeforeFactoryReset()(*int32) SetAccountsBlockModification(value *bool)() + SetAndroidDeviceOwnerDelegatedScopeAppSettings(value []AndroidDeviceOwnerDelegatedScopeAppSettingable)() SetAppsAllowInstallFromUnknownSources(value *bool)() SetAppsAutoUpdatePolicy(value *AndroidDeviceOwnerAppAutoUpdatePolicyType)() SetAppsDefaultPermissionPolicy(value *AndroidDeviceOwnerDefaultAppPermissionPolicyType)() diff --git a/models/android_device_owner_vpn_configuration.go b/models/android_device_owner_vpn_configuration.go index 7246e453b9c..8a33670b821 100644 --- a/models/android_device_owner_vpn_configuration.go +++ b/models/android_device_owner_vpn_configuration.go @@ -182,6 +182,22 @@ func (m *AndroidDeviceOwnerVpnConfiguration) GetFieldDeserializers()(map[string] } return nil } + res["proxyExclusionList"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetProxyExclusionList(res) + } + return nil + } res["proxyServer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateVpnProxyServerFromDiscriminatorValue) if err != nil { @@ -248,6 +264,17 @@ func (m *AndroidDeviceOwnerVpnConfiguration) GetMicrosoftTunnelSiteId()(*string) } return nil } +// GetProxyExclusionList gets the proxyExclusionList property value. List of hosts to exclude using the proxy on connections for. These hosts can use wildcards such as .example.com. +func (m *AndroidDeviceOwnerVpnConfiguration) GetProxyExclusionList()([]string) { + val, err := m.GetBackingStore().Get("proxyExclusionList") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} // GetProxyServer gets the proxyServer property value. Proxy server. func (m *AndroidDeviceOwnerVpnConfiguration) GetProxyServer()(VpnProxyServerable) { val, err := m.GetBackingStore().Get("proxyServer") @@ -348,6 +375,12 @@ func (m *AndroidDeviceOwnerVpnConfiguration) Serialize(writer i878a80d2330e89d26 return err } } + if m.GetProxyExclusionList() != nil { + err = writer.WriteCollectionOfStringValues("proxyExclusionList", m.GetProxyExclusionList()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("proxyServer", m.GetProxyServer()) if err != nil { @@ -430,6 +463,13 @@ func (m *AndroidDeviceOwnerVpnConfiguration) SetMicrosoftTunnelSiteId(value *str panic(err) } } +// SetProxyExclusionList sets the proxyExclusionList property value. List of hosts to exclude using the proxy on connections for. These hosts can use wildcards such as .example.com. +func (m *AndroidDeviceOwnerVpnConfiguration) SetProxyExclusionList(value []string)() { + err := m.GetBackingStore().Set("proxyExclusionList", value) + if err != nil { + panic(err) + } +} // SetProxyServer sets the proxyServer property value. Proxy server. func (m *AndroidDeviceOwnerVpnConfiguration) SetProxyServer(value VpnProxyServerable)() { err := m.GetBackingStore().Set("proxyServer", value) @@ -463,6 +503,7 @@ type AndroidDeviceOwnerVpnConfigurationable interface { GetDerivedCredentialSettings()(DeviceManagementDerivedCredentialSettingsable) GetIdentityCertificate()(AndroidDeviceOwnerCertificateProfileBaseable) GetMicrosoftTunnelSiteId()(*string) + GetProxyExclusionList()([]string) GetProxyServer()(VpnProxyServerable) GetTargetedMobileApps()([]AppListItemable) GetTargetedPackageIds()([]string) @@ -474,6 +515,7 @@ type AndroidDeviceOwnerVpnConfigurationable interface { SetDerivedCredentialSettings(value DeviceManagementDerivedCredentialSettingsable)() SetIdentityCertificate(value AndroidDeviceOwnerCertificateProfileBaseable)() SetMicrosoftTunnelSiteId(value *string)() + SetProxyExclusionList(value []string)() SetProxyServer(value VpnProxyServerable)() SetTargetedMobileApps(value []AppListItemable)() SetTargetedPackageIds(value []string)() diff --git a/models/android_for_work_general_device_configuration.go b/models/android_for_work_general_device_configuration.go index 94ba71ab088..534d6db9cce 100644 --- a/models/android_for_work_general_device_configuration.go +++ b/models/android_for_work_general_device_configuration.go @@ -32,6 +32,17 @@ func (m *AndroidForWorkGeneralDeviceConfiguration) GetAllowedGoogleAccountDomain } return nil } +// GetBlockUnifiedPasswordForWorkProfile gets the blockUnifiedPasswordForWorkProfile property value. Prevent using unified password for unlocking device and work profile. +func (m *AndroidForWorkGeneralDeviceConfiguration) GetBlockUnifiedPasswordForWorkProfile()(*bool) { + val, err := m.GetBackingStore().Get("blockUnifiedPasswordForWorkProfile") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model func (m *AndroidForWorkGeneralDeviceConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceConfiguration.GetFieldDeserializers() @@ -51,6 +62,16 @@ func (m *AndroidForWorkGeneralDeviceConfiguration) GetFieldDeserializers()(map[s } return nil } + res["blockUnifiedPasswordForWorkProfile"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetBlockUnifiedPasswordForWorkProfile(val) + } + return nil + } res["passwordBlockFaceUnlock"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -1010,6 +1031,12 @@ func (m *AndroidForWorkGeneralDeviceConfiguration) Serialize(writer i878a80d2330 return err } } + { + err = writer.WriteBoolValue("blockUnifiedPasswordForWorkProfile", m.GetBlockUnifiedPasswordForWorkProfile()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("passwordBlockFaceUnlock", m.GetPasswordBlockFaceUnlock()) if err != nil { @@ -1296,6 +1323,13 @@ func (m *AndroidForWorkGeneralDeviceConfiguration) SetAllowedGoogleAccountDomain panic(err) } } +// SetBlockUnifiedPasswordForWorkProfile sets the blockUnifiedPasswordForWorkProfile property value. Prevent using unified password for unlocking device and work profile. +func (m *AndroidForWorkGeneralDeviceConfiguration) SetBlockUnifiedPasswordForWorkProfile(value *bool)() { + err := m.GetBackingStore().Set("blockUnifiedPasswordForWorkProfile", value) + if err != nil { + panic(err) + } +} // SetPasswordBlockFaceUnlock sets the passwordBlockFaceUnlock property value. Indicates whether or not to block face unlock. func (m *AndroidForWorkGeneralDeviceConfiguration) SetPasswordBlockFaceUnlock(value *bool)() { err := m.GetBackingStore().Set("passwordBlockFaceUnlock", value) @@ -1616,6 +1650,7 @@ type AndroidForWorkGeneralDeviceConfigurationable interface { DeviceConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowedGoogleAccountDomains()([]string) + GetBlockUnifiedPasswordForWorkProfile()(*bool) GetPasswordBlockFaceUnlock()(*bool) GetPasswordBlockFingerprintUnlock()(*bool) GetPasswordBlockIrisUnlock()(*bool) @@ -1662,6 +1697,7 @@ type AndroidForWorkGeneralDeviceConfigurationable interface { GetWorkProfileRequiredPasswordComplexity()(*AndroidRequiredPasswordComplexity) GetWorkProfileRequirePassword()(*bool) SetAllowedGoogleAccountDomains(value []string)() + SetBlockUnifiedPasswordForWorkProfile(value *bool)() SetPasswordBlockFaceUnlock(value *bool)() SetPasswordBlockFingerprintUnlock(value *bool)() SetPasswordBlockIrisUnlock(value *bool)() diff --git a/models/android_lob_app.go b/models/android_lob_app.go index 54aa54b3ef1..a8952a27d0f 100644 --- a/models/android_lob_app.go +++ b/models/android_lob_app.go @@ -64,6 +64,16 @@ func (m *AndroidLobApp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["targetedPlatforms"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseAndroidTargetedPlatforms) + if err != nil { + return err + } + if val != nil { + m.SetTargetedPlatforms(val.(*AndroidTargetedPlatforms)) + } + return nil + } res["versionCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -130,6 +140,17 @@ func (m *AndroidLobApp) GetPackageId()(*string) { } return nil } +// GetTargetedPlatforms gets the targetedPlatforms property value. Specifies which platform(s) can be targeted for a given Android LOB application or Managed Android LOB application. +func (m *AndroidLobApp) GetTargetedPlatforms()(*AndroidTargetedPlatforms) { + val, err := m.GetBackingStore().Get("targetedPlatforms") + if err != nil { + panic(err) + } + if val != nil { + return val.(*AndroidTargetedPlatforms) + } + return nil +} // GetVersionCode gets the versionCode property value. The version code of Android Line of Business (LoB) app. func (m *AndroidLobApp) GetVersionCode()(*string) { val, err := m.GetBackingStore().Get("versionCode") @@ -182,6 +203,13 @@ func (m *AndroidLobApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + if m.GetTargetedPlatforms() != nil { + cast := (*m.GetTargetedPlatforms()).String() + err = writer.WriteStringValue("targetedPlatforms", &cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("versionCode", m.GetVersionCode()) if err != nil { @@ -224,6 +252,13 @@ func (m *AndroidLobApp) SetPackageId(value *string)() { panic(err) } } +// SetTargetedPlatforms sets the targetedPlatforms property value. Specifies which platform(s) can be targeted for a given Android LOB application or Managed Android LOB application. +func (m *AndroidLobApp) SetTargetedPlatforms(value *AndroidTargetedPlatforms)() { + err := m.GetBackingStore().Set("targetedPlatforms", value) + if err != nil { + panic(err) + } +} // SetVersionCode sets the versionCode property value. The version code of Android Line of Business (LoB) app. func (m *AndroidLobApp) SetVersionCode(value *string)() { err := m.GetBackingStore().Set("versionCode", value) @@ -246,12 +281,14 @@ type AndroidLobAppable interface { GetIdentityVersion()(*string) GetMinimumSupportedOperatingSystem()(AndroidMinimumOperatingSystemable) GetPackageId()(*string) + GetTargetedPlatforms()(*AndroidTargetedPlatforms) GetVersionCode()(*string) GetVersionName()(*string) SetIdentityName(value *string)() SetIdentityVersion(value *string)() SetMinimumSupportedOperatingSystem(value AndroidMinimumOperatingSystemable)() SetPackageId(value *string)() + SetTargetedPlatforms(value *AndroidTargetedPlatforms)() SetVersionCode(value *string)() SetVersionName(value *string)() } diff --git a/models/android_targeted_platforms.go b/models/android_targeted_platforms.go new file mode 100644 index 00000000000..a77de361665 --- /dev/null +++ b/models/android_targeted_platforms.go @@ -0,0 +1,40 @@ +package models +import ( + "errors" +) +// Specifies which platform(s) can be targeted for a given Android LOB application or Managed Android LOB application. +type AndroidTargetedPlatforms int + +const ( + // Indicates the Android targeted platform is Android Device Administrator. + ANDROIDDEVICEADMINISTRATOR_ANDROIDTARGETEDPLATFORMS AndroidTargetedPlatforms = iota + // Indicates the Android targeted platform is Android Open Source Project. + ANDROIDOPENSOURCEPROJECT_ANDROIDTARGETEDPLATFORMS + // Evolvable enumeration sentinel value. Do not use. + UNKNOWNFUTUREVALUE_ANDROIDTARGETEDPLATFORMS +) + +func (i AndroidTargetedPlatforms) String() string { + return []string{"androidDeviceAdministrator", "androidOpenSourceProject", "unknownFutureValue"}[i] +} +func ParseAndroidTargetedPlatforms(v string) (any, error) { + result := ANDROIDDEVICEADMINISTRATOR_ANDROIDTARGETEDPLATFORMS + switch v { + case "androidDeviceAdministrator": + result = ANDROIDDEVICEADMINISTRATOR_ANDROIDTARGETEDPLATFORMS + case "androidOpenSourceProject": + result = ANDROIDOPENSOURCEPROJECT_ANDROIDTARGETEDPLATFORMS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_ANDROIDTARGETEDPLATFORMS + default: + return 0, errors.New("Unknown AndroidTargetedPlatforms value: " + v) + } + return &result, nil +} +func SerializeAndroidTargetedPlatforms(values []AndroidTargetedPlatforms) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/android_work_profile_general_device_configuration.go b/models/android_work_profile_general_device_configuration.go index 28852e3eae6..6f8e8e183bf 100644 --- a/models/android_work_profile_general_device_configuration.go +++ b/models/android_work_profile_general_device_configuration.go @@ -32,6 +32,17 @@ func (m *AndroidWorkProfileGeneralDeviceConfiguration) GetAllowedGoogleAccountDo } return nil } +// GetBlockUnifiedPasswordForWorkProfile gets the blockUnifiedPasswordForWorkProfile property value. Prevent using unified password for unlocking device and work profile. +func (m *AndroidWorkProfileGeneralDeviceConfiguration) GetBlockUnifiedPasswordForWorkProfile()(*bool) { + val, err := m.GetBackingStore().Get("blockUnifiedPasswordForWorkProfile") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model func (m *AndroidWorkProfileGeneralDeviceConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceConfiguration.GetFieldDeserializers() @@ -51,6 +62,16 @@ func (m *AndroidWorkProfileGeneralDeviceConfiguration) GetFieldDeserializers()(m } return nil } + res["blockUnifiedPasswordForWorkProfile"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetBlockUnifiedPasswordForWorkProfile(val) + } + return nil + } res["passwordBlockFaceUnlock"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -1031,6 +1052,12 @@ func (m *AndroidWorkProfileGeneralDeviceConfiguration) Serialize(writer i878a80d return err } } + { + err = writer.WriteBoolValue("blockUnifiedPasswordForWorkProfile", m.GetBlockUnifiedPasswordForWorkProfile()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("passwordBlockFaceUnlock", m.GetPasswordBlockFaceUnlock()) if err != nil { @@ -1323,6 +1350,13 @@ func (m *AndroidWorkProfileGeneralDeviceConfiguration) SetAllowedGoogleAccountDo panic(err) } } +// SetBlockUnifiedPasswordForWorkProfile sets the blockUnifiedPasswordForWorkProfile property value. Prevent using unified password for unlocking device and work profile. +func (m *AndroidWorkProfileGeneralDeviceConfiguration) SetBlockUnifiedPasswordForWorkProfile(value *bool)() { + err := m.GetBackingStore().Set("blockUnifiedPasswordForWorkProfile", value) + if err != nil { + panic(err) + } +} // SetPasswordBlockFaceUnlock sets the passwordBlockFaceUnlock property value. Indicates whether or not to block face unlock. func (m *AndroidWorkProfileGeneralDeviceConfiguration) SetPasswordBlockFaceUnlock(value *bool)() { err := m.GetBackingStore().Set("passwordBlockFaceUnlock", value) @@ -1650,6 +1684,7 @@ type AndroidWorkProfileGeneralDeviceConfigurationable interface { DeviceConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowedGoogleAccountDomains()([]string) + GetBlockUnifiedPasswordForWorkProfile()(*bool) GetPasswordBlockFaceUnlock()(*bool) GetPasswordBlockFingerprintUnlock()(*bool) GetPasswordBlockIrisUnlock()(*bool) @@ -1697,6 +1732,7 @@ type AndroidWorkProfileGeneralDeviceConfigurationable interface { GetWorkProfileRequiredPasswordComplexity()(*AndroidRequiredPasswordComplexity) GetWorkProfileRequirePassword()(*bool) SetAllowedGoogleAccountDomains(value []string)() + SetBlockUnifiedPasswordForWorkProfile(value *bool)() SetPasswordBlockFaceUnlock(value *bool)() SetPasswordBlockFingerprintUnlock(value *bool)() SetPasswordBlockIrisUnlock(value *bool)() diff --git a/models/android_work_profile_vpn_configuration.go b/models/android_work_profile_vpn_configuration.go index 9155fee2f53..87c5ebc974e 100644 --- a/models/android_work_profile_vpn_configuration.go +++ b/models/android_work_profile_vpn_configuration.go @@ -213,6 +213,22 @@ func (m *AndroidWorkProfileVpnConfiguration) GetFieldDeserializers()(map[string] } return nil } + res["proxyExclusionList"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetProxyExclusionList(res) + } + return nil + } res["proxyServer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateVpnProxyServerFromDiscriminatorValue) if err != nil { @@ -326,6 +342,17 @@ func (m *AndroidWorkProfileVpnConfiguration) GetMicrosoftTunnelSiteId()(*string) } return nil } +// GetProxyExclusionList gets the proxyExclusionList property value. List of hosts to exclude using the proxy on connections for. These hosts can use wildcards such as .example.com. +func (m *AndroidWorkProfileVpnConfiguration) GetProxyExclusionList()([]string) { + val, err := m.GetBackingStore().Get("proxyExclusionList") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} // GetProxyServer gets the proxyServer property value. Proxy server. func (m *AndroidWorkProfileVpnConfiguration) GetProxyServer()(VpnProxyServerable) { val, err := m.GetBackingStore().Get("proxyServer") @@ -472,6 +499,12 @@ func (m *AndroidWorkProfileVpnConfiguration) Serialize(writer i878a80d2330e89d26 return err } } + if m.GetProxyExclusionList() != nil { + err = writer.WriteCollectionOfStringValues("proxyExclusionList", m.GetProxyExclusionList()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("proxyServer", m.GetProxyServer()) if err != nil { @@ -592,6 +625,13 @@ func (m *AndroidWorkProfileVpnConfiguration) SetMicrosoftTunnelSiteId(value *str panic(err) } } +// SetProxyExclusionList sets the proxyExclusionList property value. List of hosts to exclude using the proxy on connections for. These hosts can use wildcards such as .example.com. +func (m *AndroidWorkProfileVpnConfiguration) SetProxyExclusionList(value []string)() { + err := m.GetBackingStore().Set("proxyExclusionList", value) + if err != nil { + panic(err) + } +} // SetProxyServer sets the proxyServer property value. Proxy server. func (m *AndroidWorkProfileVpnConfiguration) SetProxyServer(value VpnProxyServerable)() { err := m.GetBackingStore().Set("proxyServer", value) @@ -648,6 +688,7 @@ type AndroidWorkProfileVpnConfigurationable interface { GetFingerprint()(*string) GetIdentityCertificate()(AndroidWorkProfileCertificateProfileBaseable) GetMicrosoftTunnelSiteId()(*string) + GetProxyExclusionList()([]string) GetProxyServer()(VpnProxyServerable) GetRealm()(*string) GetRole()(*string) @@ -664,6 +705,7 @@ type AndroidWorkProfileVpnConfigurationable interface { SetFingerprint(value *string)() SetIdentityCertificate(value AndroidWorkProfileCertificateProfileBaseable)() SetMicrosoftTunnelSiteId(value *string)() + SetProxyExclusionList(value []string)() SetProxyServer(value VpnProxyServerable)() SetRealm(value *string)() SetRole(value *string)() diff --git a/models/apple_app_list_item.go b/models/apple_app_list_item.go index 6c8c44847e7..ff5354a96d5 100644 --- a/models/apple_app_list_item.go +++ b/models/apple_app_list_item.go @@ -13,6 +13,8 @@ func NewAppleAppListItem()(*AppleAppListItem) { m := &AppleAppListItem{ AppListItem: *NewAppListItem(), } + odataTypeValue := "#microsoft.graph.appleAppListItem" + m.SetOdataType(&odataTypeValue) return m } // CreateAppleAppListItemFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/models/application.go b/models/application.go index 5546c310c5f..df981f6e6cc 100644 --- a/models/application.go +++ b/models/application.go @@ -862,7 +862,7 @@ func (m *Application) GetOptionalClaims()(OptionalClaimsable) { } return nil } -// GetOwners gets the owners property value. Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// GetOwners gets the owners property value. Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. func (m *Application) GetOwners()([]DirectoryObjectable) { val, err := m.GetBackingStore().Get("owners") if err != nil { @@ -1631,7 +1631,7 @@ func (m *Application) SetOptionalClaims(value OptionalClaimsable)() { panic(err) } } -// SetOwners sets the owners property value. Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// SetOwners sets the owners property value. Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. func (m *Application) SetOwners(value []DirectoryObjectable)() { err := m.GetBackingStore().Set("owners", value) if err != nil { diff --git a/models/authentication_behaviors.go b/models/authentication_behaviors.go index 95de43908af..2cbd4c65d76 100644 --- a/models/authentication_behaviors.go +++ b/models/authentication_behaviors.go @@ -84,7 +84,7 @@ func (m *AuthenticationBehaviors) GetOdataType()(*string) { } return nil } -// GetRemoveUnverifiedEmailClaim gets the removeUnverifiedEmailClaim property value. Removes the email claim from tokens sent to an application when the email address's domain cannot be verified. +// GetRemoveUnverifiedEmailClaim gets the removeUnverifiedEmailClaim property value. Removes the email claim from tokens sent to an application when the email address's domain can't be verified. func (m *AuthenticationBehaviors) GetRemoveUnverifiedEmailClaim()(*bool) { val, err := m.GetBackingStore().Get("removeUnverifiedEmailClaim") if err != nil { @@ -95,7 +95,7 @@ func (m *AuthenticationBehaviors) GetRemoveUnverifiedEmailClaim()(*bool) { } return nil } -// GetRequireClientServicePrincipal gets the requireClientServicePrincipal property value. The requireClientServicePrincipal property +// GetRequireClientServicePrincipal gets the requireClientServicePrincipal property value. Requires multitenant applications to have a service principal in the resource tenant as part of authorization checks before they're granted access tokens. This property is only modifiable for multi-tenant resource applications that rely on access from clients without a service principal and had this behavior as set to false by Microsoft. Tenant administrators should respond to security advisories sent through Azure Health Service events and the Microsoft 365 message center. func (m *AuthenticationBehaviors) GetRequireClientServicePrincipal()(*bool) { val, err := m.GetBackingStore().Get("requireClientServicePrincipal") if err != nil { @@ -152,14 +152,14 @@ func (m *AuthenticationBehaviors) SetOdataType(value *string)() { panic(err) } } -// SetRemoveUnverifiedEmailClaim sets the removeUnverifiedEmailClaim property value. Removes the email claim from tokens sent to an application when the email address's domain cannot be verified. +// SetRemoveUnverifiedEmailClaim sets the removeUnverifiedEmailClaim property value. Removes the email claim from tokens sent to an application when the email address's domain can't be verified. func (m *AuthenticationBehaviors) SetRemoveUnverifiedEmailClaim(value *bool)() { err := m.GetBackingStore().Set("removeUnverifiedEmailClaim", value) if err != nil { panic(err) } } -// SetRequireClientServicePrincipal sets the requireClientServicePrincipal property value. The requireClientServicePrincipal property +// SetRequireClientServicePrincipal sets the requireClientServicePrincipal property value. Requires multitenant applications to have a service principal in the resource tenant as part of authorization checks before they're granted access tokens. This property is only modifiable for multi-tenant resource applications that rely on access from clients without a service principal and had this behavior as set to false by Microsoft. Tenant administrators should respond to security advisories sent through Azure Health Service events and the Microsoft 365 message center. func (m *AuthenticationBehaviors) SetRequireClientServicePrincipal(value *bool)() { err := m.GetBackingStore().Set("requireClientServicePrincipal", value) if err != nil { diff --git a/models/call_recording.go b/models/call_recording.go index cb62095d82f..66810282894 100644 --- a/models/call_recording.go +++ b/models/call_recording.go @@ -20,7 +20,7 @@ func NewCallRecording()(*CallRecording) { func CreateCallRecordingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCallRecording(), nil } -// GetContent gets the content property value. The content property +// GetContent gets the content property value. The content of the recording. Read-only. func (m *CallRecording) GetContent()([]byte) { val, err := m.GetBackingStore().Get("content") if err != nil { @@ -31,7 +31,7 @@ func (m *CallRecording) GetContent()([]byte) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// GetCreatedDateTime gets the createdDateTime property value. Date and time at which the recording was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. func (m *CallRecording) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") if err != nil { @@ -65,8 +65,71 @@ func (m *CallRecording) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["meetingId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMeetingId(val) + } + return nil + } + res["meetingOrganizerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMeetingOrganizerId(val) + } + return nil + } + res["recordingContentUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRecordingContentUrl(val) + } + return nil + } return res } +// GetMeetingId gets the meetingId property value. The unique identifier of the onlineMeeting related to this recording. Read-only. +func (m *CallRecording) GetMeetingId()(*string) { + val, err := m.GetBackingStore().Get("meetingId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetMeetingOrganizerId gets the meetingOrganizerId property value. The unique identifier of the organizer of the onlineMeeting related to this recording. Read-only. +func (m *CallRecording) GetMeetingOrganizerId()(*string) { + val, err := m.GetBackingStore().Get("meetingOrganizerId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRecordingContentUrl gets the recordingContentUrl property value. The URL which can be used to access the content of the recording. Read-only. +func (m *CallRecording) GetRecordingContentUrl()(*string) { + val, err := m.GetBackingStore().Get("recordingContentUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // Serialize serializes information the current object func (m *CallRecording) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -85,28 +148,73 @@ func (m *CallRecording) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + { + err = writer.WriteStringValue("meetingId", m.GetMeetingId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("meetingOrganizerId", m.GetMeetingOrganizerId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("recordingContentUrl", m.GetRecordingContentUrl()) + if err != nil { + return err + } + } return nil } -// SetContent sets the content property value. The content property +// SetContent sets the content property value. The content of the recording. Read-only. func (m *CallRecording) SetContent(value []byte)() { err := m.GetBackingStore().Set("content", value) if err != nil { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +// SetCreatedDateTime sets the createdDateTime property value. Date and time at which the recording was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. func (m *CallRecording) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } +// SetMeetingId sets the meetingId property value. The unique identifier of the onlineMeeting related to this recording. Read-only. +func (m *CallRecording) SetMeetingId(value *string)() { + err := m.GetBackingStore().Set("meetingId", value) + if err != nil { + panic(err) + } +} +// SetMeetingOrganizerId sets the meetingOrganizerId property value. The unique identifier of the organizer of the onlineMeeting related to this recording. Read-only. +func (m *CallRecording) SetMeetingOrganizerId(value *string)() { + err := m.GetBackingStore().Set("meetingOrganizerId", value) + if err != nil { + panic(err) + } +} +// SetRecordingContentUrl sets the recordingContentUrl property value. The URL which can be used to access the content of the recording. Read-only. +func (m *CallRecording) SetRecordingContentUrl(value *string)() { + err := m.GetBackingStore().Set("recordingContentUrl", value) + if err != nil { + panic(err) + } +} // CallRecordingable type CallRecordingable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetContent()([]byte) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetMeetingId()(*string) + GetMeetingOrganizerId()(*string) + GetRecordingContentUrl()(*string) SetContent(value []byte)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetMeetingId(value *string)() + SetMeetingOrganizerId(value *string)() + SetRecordingContentUrl(value *string)() } diff --git a/models/call_transcript.go b/models/call_transcript.go index 301a112baea..f4802880150 100644 --- a/models/call_transcript.go +++ b/models/call_transcript.go @@ -65,6 +65,26 @@ func (m *CallTranscript) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return nil } + res["meetingId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMeetingId(val) + } + return nil + } + res["meetingOrganizerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMeetingOrganizerId(val) + } + return nil + } res["metadataContent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetByteArrayValue() if err != nil { @@ -75,8 +95,40 @@ func (m *CallTranscript) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return nil } + res["transcriptContentUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTranscriptContentUrl(val) + } + return nil + } return res } +// GetMeetingId gets the meetingId property value. The unique identifier of the online meeting related to this transcript. Read-only. +func (m *CallTranscript) GetMeetingId()(*string) { + val, err := m.GetBackingStore().Get("meetingId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetMeetingOrganizerId gets the meetingOrganizerId property value. The unique identifier of the organizer of the onlineMeeting related to this transcript. Read-only. +func (m *CallTranscript) GetMeetingOrganizerId()(*string) { + val, err := m.GetBackingStore().Get("meetingOrganizerId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetMetadataContent gets the metadataContent property value. The time-aligned metadata of the utterances in the transcript. Read-only. func (m *CallTranscript) GetMetadataContent()([]byte) { val, err := m.GetBackingStore().Get("metadataContent") @@ -88,6 +140,17 @@ func (m *CallTranscript) GetMetadataContent()([]byte) { } return nil } +// GetTranscriptContentUrl gets the transcriptContentUrl property value. The URL which can be used to access the content of the transcript. Read-only. +func (m *CallTranscript) GetTranscriptContentUrl()(*string) { + val, err := m.GetBackingStore().Get("transcriptContentUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // Serialize serializes information the current object func (m *CallTranscript) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -106,12 +169,30 @@ func (m *CallTranscript) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return err } } + { + err = writer.WriteStringValue("meetingId", m.GetMeetingId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("meetingOrganizerId", m.GetMeetingOrganizerId()) + if err != nil { + return err + } + } { err = writer.WriteByteArrayValue("metadataContent", m.GetMetadataContent()) if err != nil { return err } } + { + err = writer.WriteStringValue("transcriptContentUrl", m.GetTranscriptContentUrl()) + if err != nil { + return err + } + } return nil } // SetContent sets the content property value. The content of the transcript. Read-only. @@ -128,6 +209,20 @@ func (m *CallTranscript) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad panic(err) } } +// SetMeetingId sets the meetingId property value. The unique identifier of the online meeting related to this transcript. Read-only. +func (m *CallTranscript) SetMeetingId(value *string)() { + err := m.GetBackingStore().Set("meetingId", value) + if err != nil { + panic(err) + } +} +// SetMeetingOrganizerId sets the meetingOrganizerId property value. The unique identifier of the organizer of the onlineMeeting related to this transcript. Read-only. +func (m *CallTranscript) SetMeetingOrganizerId(value *string)() { + err := m.GetBackingStore().Set("meetingOrganizerId", value) + if err != nil { + panic(err) + } +} // SetMetadataContent sets the metadataContent property value. The time-aligned metadata of the utterances in the transcript. Read-only. func (m *CallTranscript) SetMetadataContent(value []byte)() { err := m.GetBackingStore().Set("metadataContent", value) @@ -135,14 +230,27 @@ func (m *CallTranscript) SetMetadataContent(value []byte)() { panic(err) } } +// SetTranscriptContentUrl sets the transcriptContentUrl property value. The URL which can be used to access the content of the transcript. Read-only. +func (m *CallTranscript) SetTranscriptContentUrl(value *string)() { + err := m.GetBackingStore().Set("transcriptContentUrl", value) + if err != nil { + panic(err) + } +} // CallTranscriptable type CallTranscriptable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetContent()([]byte) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetMeetingId()(*string) + GetMeetingOrganizerId()(*string) GetMetadataContent()([]byte) + GetTranscriptContentUrl()(*string) SetContent(value []byte)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetMeetingId(value *string)() + SetMeetingOrganizerId(value *string)() SetMetadataContent(value []byte)() + SetTranscriptContentUrl(value *string)() } diff --git a/models/chat_restrictions.go b/models/chat_restrictions.go new file mode 100644 index 00000000000..f310f33c9ef --- /dev/null +++ b/models/chat_restrictions.go @@ -0,0 +1,146 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ChatRestrictions +type ChatRestrictions struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewChatRestrictions instantiates a new chatRestrictions and sets the default values. +func NewChatRestrictions()(*ChatRestrictions) { + m := &ChatRestrictions{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateChatRestrictionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateChatRestrictionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewChatRestrictions(), 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 *ChatRestrictions) 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) +} +// GetAllowTextOnly gets the allowTextOnly property value. The allowTextOnly property +func (m *ChatRestrictions) GetAllowTextOnly()(*bool) { + val, err := m.GetBackingStore().Get("allowTextOnly") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetBackingStore gets the backingStore property value. Stores model information. +func (m *ChatRestrictions) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ChatRestrictions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["allowTextOnly"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowTextOnly(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ChatRestrictions) 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 *ChatRestrictions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("allowTextOnly", m.GetAllowTextOnly()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ChatRestrictions) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAllowTextOnly sets the allowTextOnly property value. The allowTextOnly property +func (m *ChatRestrictions) SetAllowTextOnly(value *bool)() { + err := m.GetBackingStore().Set("allowTextOnly", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the backingStore property value. Stores model information. +func (m *ChatRestrictions) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ChatRestrictions) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// ChatRestrictionsable +type ChatRestrictionsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAllowTextOnly()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetAllowTextOnly(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/cloud_pc_bulk_action.go b/models/cloud_pc_bulk_action.go index 6d53b0c0309..a9951a59370 100644 --- a/models/cloud_pc_bulk_action.go +++ b/models/cloud_pc_bulk_action.go @@ -34,6 +34,16 @@ func CreateCloudPcBulkActionFromDiscriminatorValue(parseNode i878a80d2330e89d268 return NewCloudPcBulkPowerOff(), nil case "#microsoft.graph.cloudPcBulkPowerOn": return NewCloudPcBulkPowerOn(), nil + case "#microsoft.graph.cloudPcBulkReprovision": + return NewCloudPcBulkReprovision(), nil + case "#microsoft.graph.cloudPcBulkResize": + return NewCloudPcBulkResize(), nil + case "#microsoft.graph.cloudPcBulkRestart": + return NewCloudPcBulkRestart(), nil + case "#microsoft.graph.cloudPcBulkRestore": + return NewCloudPcBulkRestore(), nil + case "#microsoft.graph.cloudPcBulkTroubleshoot": + return NewCloudPcBulkTroubleshoot(), nil } } } diff --git a/models/cloud_pc_bulk_reprovision.go b/models/cloud_pc_bulk_reprovision.go new file mode 100644 index 00000000000..447f7807e1a --- /dev/null +++ b/models/cloud_pc_bulk_reprovision.go @@ -0,0 +1,41 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CloudPcBulkReprovision +type CloudPcBulkReprovision struct { + CloudPcBulkAction +} +// NewCloudPcBulkReprovision instantiates a new cloudPcBulkReprovision and sets the default values. +func NewCloudPcBulkReprovision()(*CloudPcBulkReprovision) { + m := &CloudPcBulkReprovision{ + CloudPcBulkAction: *NewCloudPcBulkAction(), + } + odataTypeValue := "#microsoft.graph.cloudPcBulkReprovision" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCloudPcBulkReprovisionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCloudPcBulkReprovisionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcBulkReprovision(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CloudPcBulkReprovision) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CloudPcBulkAction.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *CloudPcBulkReprovision) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CloudPcBulkAction.Serialize(writer) + if err != nil { + return err + } + return nil +} +// CloudPcBulkReprovisionable +type CloudPcBulkReprovisionable interface { + CloudPcBulkActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/cloud_pc_bulk_resize.go b/models/cloud_pc_bulk_resize.go new file mode 100644 index 00000000000..1abb0c1b89a --- /dev/null +++ b/models/cloud_pc_bulk_resize.go @@ -0,0 +1,77 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CloudPcBulkResize +type CloudPcBulkResize struct { + CloudPcBulkAction +} +// NewCloudPcBulkResize instantiates a new cloudPcBulkResize and sets the default values. +func NewCloudPcBulkResize()(*CloudPcBulkResize) { + m := &CloudPcBulkResize{ + CloudPcBulkAction: *NewCloudPcBulkAction(), + } + odataTypeValue := "#microsoft.graph.cloudPcBulkResize" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCloudPcBulkResizeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCloudPcBulkResizeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcBulkResize(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CloudPcBulkResize) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CloudPcBulkAction.GetFieldDeserializers() + res["targetServicePlanId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTargetServicePlanId(val) + } + return nil + } + return res +} +// GetTargetServicePlanId gets the targetServicePlanId property value. The targetServicePlanId property +func (m *CloudPcBulkResize) GetTargetServicePlanId()(*string) { + val, err := m.GetBackingStore().Get("targetServicePlanId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *CloudPcBulkResize) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CloudPcBulkAction.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("targetServicePlanId", m.GetTargetServicePlanId()) + if err != nil { + return err + } + } + return nil +} +// SetTargetServicePlanId sets the targetServicePlanId property value. The targetServicePlanId property +func (m *CloudPcBulkResize) SetTargetServicePlanId(value *string)() { + err := m.GetBackingStore().Set("targetServicePlanId", value) + if err != nil { + panic(err) + } +} +// CloudPcBulkResizeable +type CloudPcBulkResizeable interface { + CloudPcBulkActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetTargetServicePlanId()(*string) + SetTargetServicePlanId(value *string)() +} diff --git a/models/cloud_pc_bulk_restart.go b/models/cloud_pc_bulk_restart.go new file mode 100644 index 00000000000..213f347b167 --- /dev/null +++ b/models/cloud_pc_bulk_restart.go @@ -0,0 +1,41 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CloudPcBulkRestart +type CloudPcBulkRestart struct { + CloudPcBulkAction +} +// NewCloudPcBulkRestart instantiates a new cloudPcBulkRestart and sets the default values. +func NewCloudPcBulkRestart()(*CloudPcBulkRestart) { + m := &CloudPcBulkRestart{ + CloudPcBulkAction: *NewCloudPcBulkAction(), + } + odataTypeValue := "#microsoft.graph.cloudPcBulkRestart" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCloudPcBulkRestartFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCloudPcBulkRestartFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcBulkRestart(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CloudPcBulkRestart) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CloudPcBulkAction.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *CloudPcBulkRestart) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CloudPcBulkAction.Serialize(writer) + if err != nil { + return err + } + return nil +} +// CloudPcBulkRestartable +type CloudPcBulkRestartable interface { + CloudPcBulkActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/cloud_pc_bulk_restore.go b/models/cloud_pc_bulk_restore.go new file mode 100644 index 00000000000..70920c53d87 --- /dev/null +++ b/models/cloud_pc_bulk_restore.go @@ -0,0 +1,115 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CloudPcBulkRestore +type CloudPcBulkRestore struct { + CloudPcBulkAction +} +// NewCloudPcBulkRestore instantiates a new cloudPcBulkRestore and sets the default values. +func NewCloudPcBulkRestore()(*CloudPcBulkRestore) { + m := &CloudPcBulkRestore{ + CloudPcBulkAction: *NewCloudPcBulkAction(), + } + odataTypeValue := "#microsoft.graph.cloudPcBulkRestore" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCloudPcBulkRestoreFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCloudPcBulkRestoreFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcBulkRestore(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CloudPcBulkRestore) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CloudPcBulkAction.GetFieldDeserializers() + res["restorePointDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetRestorePointDateTime(val) + } + return nil + } + res["timeRange"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRestoreTimeRange) + if err != nil { + return err + } + if val != nil { + m.SetTimeRange(val.(*RestoreTimeRange)) + } + return nil + } + return res +} +// GetRestorePointDateTime gets the restorePointDateTime property value. The restorePointDateTime property +func (m *CloudPcBulkRestore) GetRestorePointDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("restorePointDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetTimeRange gets the timeRange property value. The timeRange property +func (m *CloudPcBulkRestore) GetTimeRange()(*RestoreTimeRange) { + val, err := m.GetBackingStore().Get("timeRange") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RestoreTimeRange) + } + return nil +} +// Serialize serializes information the current object +func (m *CloudPcBulkRestore) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CloudPcBulkAction.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteTimeValue("restorePointDateTime", m.GetRestorePointDateTime()) + if err != nil { + return err + } + } + if m.GetTimeRange() != nil { + cast := (*m.GetTimeRange()).String() + err = writer.WriteStringValue("timeRange", &cast) + if err != nil { + return err + } + } + return nil +} +// SetRestorePointDateTime sets the restorePointDateTime property value. The restorePointDateTime property +func (m *CloudPcBulkRestore) SetRestorePointDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("restorePointDateTime", value) + if err != nil { + panic(err) + } +} +// SetTimeRange sets the timeRange property value. The timeRange property +func (m *CloudPcBulkRestore) SetTimeRange(value *RestoreTimeRange)() { + err := m.GetBackingStore().Set("timeRange", value) + if err != nil { + panic(err) + } +} +// CloudPcBulkRestoreable +type CloudPcBulkRestoreable interface { + CloudPcBulkActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetRestorePointDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetTimeRange()(*RestoreTimeRange) + SetRestorePointDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetTimeRange(value *RestoreTimeRange)() +} diff --git a/models/cloud_pc_bulk_troubleshoot.go b/models/cloud_pc_bulk_troubleshoot.go new file mode 100644 index 00000000000..273a53d562e --- /dev/null +++ b/models/cloud_pc_bulk_troubleshoot.go @@ -0,0 +1,41 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CloudPcBulkTroubleshoot +type CloudPcBulkTroubleshoot struct { + CloudPcBulkAction +} +// NewCloudPcBulkTroubleshoot instantiates a new cloudPcBulkTroubleshoot and sets the default values. +func NewCloudPcBulkTroubleshoot()(*CloudPcBulkTroubleshoot) { + m := &CloudPcBulkTroubleshoot{ + CloudPcBulkAction: *NewCloudPcBulkAction(), + } + odataTypeValue := "#microsoft.graph.cloudPcBulkTroubleshoot" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCloudPcBulkTroubleshootFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCloudPcBulkTroubleshootFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcBulkTroubleshoot(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CloudPcBulkTroubleshoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CloudPcBulkAction.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *CloudPcBulkTroubleshoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CloudPcBulkAction.Serialize(writer) + if err != nil { + return err + } + return nil +} +// CloudPcBulkTroubleshootable +type CloudPcBulkTroubleshootable interface { + CloudPcBulkActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/cloud_pc_device_image_status_details.go b/models/cloud_pc_device_image_status_details.go index 1b5da58d77d..3990955ecd6 100644 --- a/models/cloud_pc_device_image_status_details.go +++ b/models/cloud_pc_device_image_status_details.go @@ -12,10 +12,14 @@ const ( SOURCEIMAGEINVALID_CLOUDPCDEVICEIMAGESTATUSDETAILS SOURCEIMAGENOTGENERALIZED_CLOUDPCDEVICEIMAGESTATUSDETAILS UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGESTATUSDETAILS + VMALREADYAZUREADJOINED_CLOUDPCDEVICEIMAGESTATUSDETAILS + PAIDSOURCEIMAGENOTSUPPORT_CLOUDPCDEVICEIMAGESTATUSDETAILS + SOURCEIMAGENOTSUPPORTCUSTOMIZEVMNAME_CLOUDPCDEVICEIMAGESTATUSDETAILS + SOURCEIMAGESIZEEXCEEDSLIMITATION_CLOUDPCDEVICEIMAGESTATUSDETAILS ) func (i CloudPcDeviceImageStatusDetails) String() string { - return []string{"internalServerError", "sourceImageNotFound", "osVersionNotSupported", "sourceImageInvalid", "sourceImageNotGeneralized", "unknownFutureValue"}[i] + return []string{"internalServerError", "sourceImageNotFound", "osVersionNotSupported", "sourceImageInvalid", "sourceImageNotGeneralized", "unknownFutureValue", "vmAlreadyAzureAdjoined", "paidSourceImageNotSupport", "sourceImageNotSupportCustomizeVMName", "sourceImageSizeExceedsLimitation"}[i] } func ParseCloudPcDeviceImageStatusDetails(v string) (any, error) { result := INTERNALSERVERERROR_CLOUDPCDEVICEIMAGESTATUSDETAILS @@ -32,6 +36,14 @@ func ParseCloudPcDeviceImageStatusDetails(v string) (any, error) { result = SOURCEIMAGENOTGENERALIZED_CLOUDPCDEVICEIMAGESTATUSDETAILS case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGESTATUSDETAILS + case "vmAlreadyAzureAdjoined": + result = VMALREADYAZUREADJOINED_CLOUDPCDEVICEIMAGESTATUSDETAILS + case "paidSourceImageNotSupport": + result = PAIDSOURCEIMAGENOTSUPPORT_CLOUDPCDEVICEIMAGESTATUSDETAILS + case "sourceImageNotSupportCustomizeVMName": + result = SOURCEIMAGENOTSUPPORTCUSTOMIZEVMNAME_CLOUDPCDEVICEIMAGESTATUSDETAILS + case "sourceImageSizeExceedsLimitation": + result = SOURCEIMAGESIZEEXCEEDSLIMITATION_CLOUDPCDEVICEIMAGESTATUSDETAILS default: return 0, errors.New("Unknown CloudPcDeviceImageStatusDetails value: " + v) } diff --git a/models/cloud_pc_partner_agent_name.go b/models/cloud_pc_partner_agent_name.go index 50d564e7395..aa234732e89 100644 --- a/models/cloud_pc_partner_agent_name.go +++ b/models/cloud_pc_partner_agent_name.go @@ -8,10 +8,11 @@ type CloudPcPartnerAgentName int const ( CITRIX_CLOUDPCPARTNERAGENTNAME CloudPcPartnerAgentName = iota UNKNOWNFUTUREVALUE_CLOUDPCPARTNERAGENTNAME + VMWARE_CLOUDPCPARTNERAGENTNAME ) func (i CloudPcPartnerAgentName) String() string { - return []string{"citrix", "unknownFutureValue"}[i] + return []string{"citrix", "unknownFutureValue", "vMware"}[i] } func ParseCloudPcPartnerAgentName(v string) (any, error) { result := CITRIX_CLOUDPCPARTNERAGENTNAME @@ -20,6 +21,8 @@ func ParseCloudPcPartnerAgentName(v string) (any, error) { result = CITRIX_CLOUDPCPARTNERAGENTNAME case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCPARTNERAGENTNAME + case "vMware": + result = VMWARE_CLOUDPCPARTNERAGENTNAME default: return 0, errors.New("Unknown CloudPcPartnerAgentName value: " + v) } diff --git a/models/cloud_pc_report_name.go b/models/cloud_pc_report_name.go index 555b48fa2dc..6c9621383b1 100644 --- a/models/cloud_pc_report_name.go +++ b/models/cloud_pc_report_name.go @@ -14,10 +14,11 @@ const ( UNKNOWNFUTUREVALUE_CLOUDPCREPORTNAME NOLICENSEAVAILABLECONNECTIVITYFAILUREREPORT_CLOUDPCREPORTNAME REMOTECONNECTIONQUALITYREPORTS_CLOUDPCREPORTNAME + INACCESSIBLECLOUDPCREPORTS_CLOUDPCREPORTNAME ) func (i CloudPcReportName) String() string { - return []string{"remoteConnectionHistoricalReports", "dailyAggregatedRemoteConnectionReports", "totalAggregatedRemoteConnectionReports", "sharedUseLicenseUsageReport", "sharedUseLicenseUsageRealTimeReport", "unknownFutureValue", "noLicenseAvailableConnectivityFailureReport", "remoteConnectionQualityReports"}[i] + return []string{"remoteConnectionHistoricalReports", "dailyAggregatedRemoteConnectionReports", "totalAggregatedRemoteConnectionReports", "sharedUseLicenseUsageReport", "sharedUseLicenseUsageRealTimeReport", "unknownFutureValue", "noLicenseAvailableConnectivityFailureReport", "remoteConnectionQualityReports", "inaccessibleCloudPcReports"}[i] } func ParseCloudPcReportName(v string) (any, error) { result := REMOTECONNECTIONHISTORICALREPORTS_CLOUDPCREPORTNAME @@ -38,6 +39,8 @@ func ParseCloudPcReportName(v string) (any, error) { result = NOLICENSEAVAILABLECONNECTIVITYFAILUREREPORT_CLOUDPCREPORTNAME case "remoteConnectionQualityReports": result = REMOTECONNECTIONQUALITYREPORTS_CLOUDPCREPORTNAME + case "inaccessibleCloudPcReports": + result = INACCESSIBLECLOUDPCREPORTS_CLOUDPCREPORTNAME default: return 0, errors.New("Unknown CloudPcReportName value: " + v) } diff --git a/models/virtual_appointment_settings.go b/models/cloud_realtime_communication_info.go similarity index 57% rename from models/virtual_appointment_settings.go rename to models/cloud_realtime_communication_info.go index ef1ce43934f..8e93f6b7e00 100644 --- a/models/virtual_appointment_settings.go +++ b/models/cloud_realtime_communication_info.go @@ -5,25 +5,25 @@ import ( ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) -// VirtualAppointmentSettings -type VirtualAppointmentSettings struct { +// CloudRealtimeCommunicationInfo +type CloudRealtimeCommunicationInfo struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewVirtualAppointmentSettings instantiates a new virtualAppointmentSettings and sets the default values. -func NewVirtualAppointmentSettings()(*VirtualAppointmentSettings) { - m := &VirtualAppointmentSettings{ +// NewCloudRealtimeCommunicationInfo instantiates a new cloudRealtimeCommunicationInfo and sets the default values. +func NewCloudRealtimeCommunicationInfo()(*CloudRealtimeCommunicationInfo) { + m := &CloudRealtimeCommunicationInfo{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) return m } -// CreateVirtualAppointmentSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateVirtualAppointmentSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewVirtualAppointmentSettings(), nil +// CreateCloudRealtimeCommunicationInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCloudRealtimeCommunicationInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudRealtimeCommunicationInfo(), 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 *VirtualAppointmentSettings) GetAdditionalData()(map[string]any) { +func (m *CloudRealtimeCommunicationInfo) GetAdditionalData()(map[string]any) { val , err := m.backingStore.Get("additionalData") if err != nil { panic(err) @@ -34,31 +34,20 @@ func (m *VirtualAppointmentSettings) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAllowClientToJoinUsingBrowser gets the allowClientToJoinUsingBrowser property value. Indicates whether the client can use the browser to join a virtual appointment. If set to false, the client can only use Microsoft Teams to join. Optional. -func (m *VirtualAppointmentSettings) GetAllowClientToJoinUsingBrowser()(*bool) { - val, err := m.GetBackingStore().Get("allowClientToJoinUsingBrowser") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} // GetBackingStore gets the backingStore property value. Stores model information. -func (m *VirtualAppointmentSettings) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { +func (m *CloudRealtimeCommunicationInfo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } // GetFieldDeserializers the deserialization information for the current model -func (m *VirtualAppointmentSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *CloudRealtimeCommunicationInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["allowClientToJoinUsingBrowser"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res["isSipEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { return err } if val != nil { - m.SetAllowClientToJoinUsingBrowser(val) + m.SetIsSipEnabled(val) } return nil } @@ -74,8 +63,19 @@ func (m *VirtualAppointmentSettings) GetFieldDeserializers()(map[string]func(i87 } return res } +// GetIsSipEnabled gets the isSipEnabled property value. Indicates whether the user has a SIP-enabled client registered for them. Read-only. +func (m *CloudRealtimeCommunicationInfo) GetIsSipEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isSipEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetOdataType gets the @odata.type property value. The OdataType property -func (m *VirtualAppointmentSettings) GetOdataType()(*string) { +func (m *CloudRealtimeCommunicationInfo) GetOdataType()(*string) { val, err := m.GetBackingStore().Get("odataType") if err != nil { panic(err) @@ -86,9 +86,9 @@ func (m *VirtualAppointmentSettings) GetOdataType()(*string) { return nil } // Serialize serializes information the current object -func (m *VirtualAppointmentSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *CloudRealtimeCommunicationInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { - err := writer.WriteBoolValue("allowClientToJoinUsingBrowser", m.GetAllowClientToJoinUsingBrowser()) + err := writer.WriteBoolValue("isSipEnabled", m.GetIsSipEnabled()) if err != nil { return err } @@ -108,39 +108,39 @@ func (m *VirtualAppointmentSettings) Serialize(writer i878a80d2330e89d26896388a3 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 *VirtualAppointmentSettings) SetAdditionalData(value map[string]any)() { +func (m *CloudRealtimeCommunicationInfo) SetAdditionalData(value map[string]any)() { err := m.GetBackingStore().Set("additionalData", value) if err != nil { panic(err) } } -// SetAllowClientToJoinUsingBrowser sets the allowClientToJoinUsingBrowser property value. Indicates whether the client can use the browser to join a virtual appointment. If set to false, the client can only use Microsoft Teams to join. Optional. -func (m *VirtualAppointmentSettings) SetAllowClientToJoinUsingBrowser(value *bool)() { - err := m.GetBackingStore().Set("allowClientToJoinUsingBrowser", value) +// SetBackingStore sets the backingStore property value. Stores model information. +func (m *CloudRealtimeCommunicationInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsSipEnabled sets the isSipEnabled property value. Indicates whether the user has a SIP-enabled client registered for them. Read-only. +func (m *CloudRealtimeCommunicationInfo) SetIsSipEnabled(value *bool)() { + err := m.GetBackingStore().Set("isSipEnabled", value) if err != nil { panic(err) } } -// SetBackingStore sets the backingStore property value. Stores model information. -func (m *VirtualAppointmentSettings) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} // SetOdataType sets the @odata.type property value. The OdataType property -func (m *VirtualAppointmentSettings) SetOdataType(value *string)() { +func (m *CloudRealtimeCommunicationInfo) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) if err != nil { panic(err) } } -// VirtualAppointmentSettingsable -type VirtualAppointmentSettingsable interface { +// CloudRealtimeCommunicationInfoable +type CloudRealtimeCommunicationInfoable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowClientToJoinUsingBrowser()(*bool) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsSipEnabled()(*bool) GetOdataType()(*string) - SetAllowClientToJoinUsingBrowser(value *bool)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsSipEnabled(value *bool)() SetOdataType(value *string)() } diff --git a/models/conditional_access_condition_set.go b/models/conditional_access_condition_set.go index d0d38e0f5cf..cb4dc629d52 100644 --- a/models/conditional_access_condition_set.go +++ b/models/conditional_access_condition_set.go @@ -60,7 +60,7 @@ func (m *ConditionalAccessConditionSet) GetClientApplications()(ConditionalAcces } return nil } -// GetClientAppTypes gets the clientAppTypes property value. Client application types included in the policy. Possible values are: all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported, other. Required. +// GetClientAppTypes gets the clientAppTypes property value. Client application types included in the policy. Possible values are: all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported, other. Required. The easUnsupported enumeration member will be deprecated in favor of exchangeActiveSync which includes EAS supported and unsupported platforms. func (m *ConditionalAccessConditionSet) GetClientAppTypes()([]ConditionalAccessClientApp) { val, err := m.GetBackingStore().Get("clientAppTypes") if err != nil { @@ -82,7 +82,7 @@ func (m *ConditionalAccessConditionSet) GetDevices()(ConditionalAccessDevicesabl } return nil } -// GetDeviceStates gets the deviceStates property value. Device states in the policy. +// GetDeviceStates gets the deviceStates property value. Device states in the policy. To be deprecated and removed. Use the devices property instead. func (m *ConditionalAccessConditionSet) GetDeviceStates()(ConditionalAccessDeviceStatesable) { val, err := m.GetBackingStore().Get("deviceStates") if err != nil { @@ -426,7 +426,7 @@ func (m *ConditionalAccessConditionSet) SetClientApplications(value ConditionalA panic(err) } } -// SetClientAppTypes sets the clientAppTypes property value. Client application types included in the policy. Possible values are: all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported, other. Required. +// SetClientAppTypes sets the clientAppTypes property value. Client application types included in the policy. Possible values are: all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported, other. Required. The easUnsupported enumeration member will be deprecated in favor of exchangeActiveSync which includes EAS supported and unsupported platforms. func (m *ConditionalAccessConditionSet) SetClientAppTypes(value []ConditionalAccessClientApp)() { err := m.GetBackingStore().Set("clientAppTypes", value) if err != nil { @@ -440,7 +440,7 @@ func (m *ConditionalAccessConditionSet) SetDevices(value ConditionalAccessDevice panic(err) } } -// SetDeviceStates sets the deviceStates property value. Device states in the policy. +// SetDeviceStates sets the deviceStates property value. Device states in the policy. To be deprecated and removed. Use the devices property instead. func (m *ConditionalAccessConditionSet) SetDeviceStates(value ConditionalAccessDeviceStatesable)() { err := m.GetBackingStore().Set("deviceStates", value) if err != nil { diff --git a/models/conditional_access_conditions.go b/models/conditional_access_conditions.go index 2280380a506..9a8482d2384 100644 --- a/models/conditional_access_conditions.go +++ b/models/conditional_access_conditions.go @@ -22,10 +22,12 @@ const ( UNKNOWNFUTUREVALUE_CONDITIONALACCESSCONDITIONS SERVICEPRINCIPALS_CONDITIONALACCESSCONDITIONS SERVICEPRINCIPALRISK_CONDITIONALACCESSCONDITIONS + AUTHENTICATIONFLOWS_CONDITIONALACCESSCONDITIONS + INSIDERRISK_CONDITIONALACCESSCONDITIONS ) func (i ConditionalAccessConditions) String() string { - return []string{"none", "application", "users", "devicePlatform", "location", "clientType", "signInRisk", "userRisk", "time", "deviceState", "client", "ipAddressSeenByAzureAD", "ipAddressSeenByResourceProvider", "unknownFutureValue", "servicePrincipals", "servicePrincipalRisk"}[i] + return []string{"none", "application", "users", "devicePlatform", "location", "clientType", "signInRisk", "userRisk", "time", "deviceState", "client", "ipAddressSeenByAzureAD", "ipAddressSeenByResourceProvider", "unknownFutureValue", "servicePrincipals", "servicePrincipalRisk", "authenticationFlows", "insiderRisk"}[i] } func ParseConditionalAccessConditions(v string) (any, error) { result := NONE_CONDITIONALACCESSCONDITIONS @@ -62,6 +64,10 @@ func ParseConditionalAccessConditions(v string) (any, error) { result = SERVICEPRINCIPALS_CONDITIONALACCESSCONDITIONS case "servicePrincipalRisk": result = SERVICEPRINCIPALRISK_CONDITIONALACCESSCONDITIONS + case "authenticationFlows": + result = AUTHENTICATIONFLOWS_CONDITIONALACCESSCONDITIONS + case "insiderRisk": + result = INSIDERRISK_CONDITIONALACCESSCONDITIONS default: return 0, errors.New("Unknown ConditionalAccessConditions value: " + v) } diff --git a/models/conditional_access_devices.go b/models/conditional_access_devices.go index 3595182bd36..ed644009836 100644 --- a/models/conditional_access_devices.go +++ b/models/conditional_access_devices.go @@ -160,7 +160,7 @@ func (m *ConditionalAccessDevices) GetFieldDeserializers()(map[string]func(i878a } return res } -// GetIncludeDevices gets the includeDevices property value. States in the scope of the policy. All is the only allowed value. Cannot be set if deviceFIlter is set. +// GetIncludeDevices gets the includeDevices property value. States in the scope of the policy. All is the only allowed value. Cannot be set if deviceFilter is set. func (m *ConditionalAccessDevices) GetIncludeDevices()([]string) { val, err := m.GetBackingStore().Get("includeDevices") if err != nil { @@ -271,7 +271,7 @@ func (m *ConditionalAccessDevices) SetExcludeDeviceStates(value []string)() { panic(err) } } -// SetIncludeDevices sets the includeDevices property value. States in the scope of the policy. All is the only allowed value. Cannot be set if deviceFIlter is set. +// SetIncludeDevices sets the includeDevices property value. States in the scope of the policy. All is the only allowed value. Cannot be set if deviceFilter is set. func (m *ConditionalAccessDevices) SetIncludeDevices(value []string)() { err := m.GetBackingStore().Set("includeDevices", value) if err != nil { diff --git a/models/conditional_access_rule.go b/models/conditional_access_rule.go index 19ff6ca17c4..a95287183c9 100644 --- a/models/conditional_access_rule.go +++ b/models/conditional_access_rule.go @@ -40,10 +40,13 @@ const ( OTHEREXTERNALUSER_CONDITIONALACCESSRULE SERVICEPROVIDER_CONDITIONALACCESSRULE MICROSOFTADMINPORTALS_CONDITIONALACCESSRULE + DEVICECODEFLOW_CONDITIONALACCESSRULE + AUTHENTICATIONTRANSFER_CONDITIONALACCESSRULE + INSIDERRISK_CONDITIONALACCESSRULE ) func (i ConditionalAccessRule) String() string { - return []string{"allApps", "firstPartyApps", "office365", "appId", "acr", "appFilter", "allUsers", "guest", "groupId", "roleId", "userId", "allDevicePlatforms", "devicePlatform", "allLocations", "insideCorpnet", "allTrustedLocations", "locationId", "allDevices", "deviceFilter", "deviceState", "unknownFutureValue", "deviceFilterIncludeRuleNotMatched", "allDeviceStates", "anonymizedIPAddress", "unfamiliarFeatures", "nationStateIPAddress", "realTimeThreatIntelligence", "internalGuest", "b2bCollaborationGuest", "b2bCollaborationMember", "b2bDirectConnectUser", "otherExternalUser", "serviceProvider", "microsoftAdminPortals"}[i] + return []string{"allApps", "firstPartyApps", "office365", "appId", "acr", "appFilter", "allUsers", "guest", "groupId", "roleId", "userId", "allDevicePlatforms", "devicePlatform", "allLocations", "insideCorpnet", "allTrustedLocations", "locationId", "allDevices", "deviceFilter", "deviceState", "unknownFutureValue", "deviceFilterIncludeRuleNotMatched", "allDeviceStates", "anonymizedIPAddress", "unfamiliarFeatures", "nationStateIPAddress", "realTimeThreatIntelligence", "internalGuest", "b2bCollaborationGuest", "b2bCollaborationMember", "b2bDirectConnectUser", "otherExternalUser", "serviceProvider", "microsoftAdminPortals", "deviceCodeFlow", "authenticationTransfer", "insiderRisk"}[i] } func ParseConditionalAccessRule(v string) (any, error) { result := ALLAPPS_CONDITIONALACCESSRULE @@ -116,6 +119,12 @@ func ParseConditionalAccessRule(v string) (any, error) { result = SERVICEPROVIDER_CONDITIONALACCESSRULE case "microsoftAdminPortals": result = MICROSOFTADMINPORTALS_CONDITIONALACCESSRULE + case "deviceCodeFlow": + result = DEVICECODEFLOW_CONDITIONALACCESSRULE + case "authenticationTransfer": + result = AUTHENTICATIONTRANSFER_CONDITIONALACCESSRULE + case "insiderRisk": + result = INSIDERRISK_CONDITIONALACCESSRULE default: return 0, errors.New("Unknown ConditionalAccessRule value: " + v) } diff --git a/models/conditional_access_session_controls.go b/models/conditional_access_session_controls.go index 4574eb71977..49f1f212fd0 100644 --- a/models/conditional_access_session_controls.go +++ b/models/conditional_access_session_controls.go @@ -189,7 +189,7 @@ func (m *ConditionalAccessSessionControls) GetPersistentBrowser()(PersistentBrow } return nil } -// GetSecureSignInSession gets the secureSignInSession property value. The secureSignInSession property +// GetSecureSignInSession gets the secureSignInSession property value. Session control to require sign in sessions to be bound to a device. func (m *ConditionalAccessSessionControls) GetSecureSignInSession()(SecureSignInSessionControlable) { val, err := m.GetBackingStore().Get("secureSignInSession") if err != nil { @@ -322,7 +322,7 @@ func (m *ConditionalAccessSessionControls) SetPersistentBrowser(value Persistent panic(err) } } -// SetSecureSignInSession sets the secureSignInSession property value. The secureSignInSession property +// SetSecureSignInSession sets the secureSignInSession property value. Session control to require sign in sessions to be bound to a device. func (m *ConditionalAccessSessionControls) SetSecureSignInSession(value SecureSignInSessionControlable)() { err := m.GetBackingStore().Set("secureSignInSession", value) if err != nil { diff --git a/models/continuous_access_evaluation_session_control.go b/models/continuous_access_evaluation_session_control.go index 6104507af01..7fcd47b6577 100644 --- a/models/continuous_access_evaluation_session_control.go +++ b/models/continuous_access_evaluation_session_control.go @@ -63,7 +63,7 @@ func (m *ContinuousAccessEvaluationSessionControl) GetFieldDeserializers()(map[s } return res } -// GetMode gets the mode property value. Specifies continuous access evaluation settings. The possible values are: strictEnforcement, disabled, unknownFutureValue. +// GetMode gets the mode property value. Specifies continuous access evaluation settings. The possible values are: strictEnforcement, disabled, unknownFutureValue, strictLocation. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: strictLocation. func (m *ContinuousAccessEvaluationSessionControl) GetMode()(*ContinuousAccessEvaluationMode) { val, err := m.GetBackingStore().Get("mode") if err != nil { @@ -119,7 +119,7 @@ func (m *ContinuousAccessEvaluationSessionControl) SetAdditionalData(value map[s func (m *ContinuousAccessEvaluationSessionControl) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetMode sets the mode property value. Specifies continuous access evaluation settings. The possible values are: strictEnforcement, disabled, unknownFutureValue. +// SetMode sets the mode property value. Specifies continuous access evaluation settings. The possible values are: strictEnforcement, disabled, unknownFutureValue, strictLocation. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: strictLocation. func (m *ContinuousAccessEvaluationSessionControl) SetMode(value *ContinuousAccessEvaluationMode)() { err := m.GetBackingStore().Set("mode", value) if err != nil { diff --git a/models/cross_tenant_access_policy_configuration_partner.go b/models/cross_tenant_access_policy_configuration_partner.go index 481445f8782..a14ddbef881 100644 --- a/models/cross_tenant_access_policy_configuration_partner.go +++ b/models/cross_tenant_access_policy_configuration_partner.go @@ -166,6 +166,16 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) GetFieldDeserializers()(ma } return nil } + res["isInMultiTenantOrganization"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsInMultiTenantOrganization(val) + } + return nil + } res["isServiceProvider"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -230,6 +240,17 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) GetInboundTrust()(CrossTen } return nil } +// GetIsInMultiTenantOrganization gets the isInMultiTenantOrganization property value. The isInMultiTenantOrganization property +func (m *CrossTenantAccessPolicyConfigurationPartner) GetIsInMultiTenantOrganization()(*bool) { + val, err := m.GetBackingStore().Get("isInMultiTenantOrganization") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetIsServiceProvider gets the isServiceProvider property value. Identifies whether the partner-specific configuration is a Cloud Service Provider for your organization. func (m *CrossTenantAccessPolicyConfigurationPartner) GetIsServiceProvider()(*bool) { val, err := m.GetBackingStore().Get("isServiceProvider") @@ -318,6 +339,12 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) Serialize(writer i878a80d2 return err } } + { + err := writer.WriteBoolValue("isInMultiTenantOrganization", m.GetIsInMultiTenantOrganization()) + if err != nil { + return err + } + } { err := writer.WriteBoolValue("isServiceProvider", m.GetIsServiceProvider()) if err != nil { @@ -410,6 +437,13 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) SetInboundTrust(value Cros panic(err) } } +// SetIsInMultiTenantOrganization sets the isInMultiTenantOrganization property value. The isInMultiTenantOrganization property +func (m *CrossTenantAccessPolicyConfigurationPartner) SetIsInMultiTenantOrganization(value *bool)() { + err := m.GetBackingStore().Set("isInMultiTenantOrganization", value) + if err != nil { + panic(err) + } +} // SetIsServiceProvider sets the isServiceProvider property value. Identifies whether the partner-specific configuration is a Cloud Service Provider for your organization. func (m *CrossTenantAccessPolicyConfigurationPartner) SetIsServiceProvider(value *bool)() { err := m.GetBackingStore().Set("isServiceProvider", value) @@ -451,6 +485,7 @@ type CrossTenantAccessPolicyConfigurationPartnerable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetIdentitySynchronization()(CrossTenantIdentitySyncPolicyPartnerable) GetInboundTrust()(CrossTenantAccessPolicyInboundTrustable) + GetIsInMultiTenantOrganization()(*bool) GetIsServiceProvider()(*bool) GetOdataType()(*string) GetTenantId()(*string) @@ -463,6 +498,7 @@ type CrossTenantAccessPolicyConfigurationPartnerable interface { SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetIdentitySynchronization(value CrossTenantIdentitySyncPolicyPartnerable)() SetInboundTrust(value CrossTenantAccessPolicyInboundTrustable)() + SetIsInMultiTenantOrganization(value *bool)() SetIsServiceProvider(value *bool)() SetOdataType(value *string)() SetTenantId(value *string)() diff --git a/models/custom_extension_client_configuration.go b/models/custom_extension_client_configuration.go index 14613fb316b..648788b1229 100644 --- a/models/custom_extension_client_configuration.go +++ b/models/custom_extension_client_configuration.go @@ -73,7 +73,7 @@ func (m *CustomExtensionClientConfiguration) GetFieldDeserializers()(map[string] } return res } -// GetMaximumRetries gets the maximumRetries property value. The maximumRetries property +// GetMaximumRetries gets the maximumRetries property value. The max number of retries that Azure AD will make to the external API. Values of 0 or 1 are supported. If null, the default for the service will apply. func (m *CustomExtensionClientConfiguration) GetMaximumRetries()(*int32) { val, err := m.GetBackingStore().Get("maximumRetries") if err != nil { @@ -95,7 +95,7 @@ func (m *CustomExtensionClientConfiguration) GetOdataType()(*string) { } return nil } -// GetTimeoutInMilliseconds gets the timeoutInMilliseconds property value. The max duration in milliseconds that Azure AD will wait for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. +// GetTimeoutInMilliseconds gets the timeoutInMilliseconds property value. The max duration in milliseconds that Azure AD will wait for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. If null, the default for the service will apply. func (m *CustomExtensionClientConfiguration) GetTimeoutInMilliseconds()(*int32) { val, err := m.GetBackingStore().Get("timeoutInMilliseconds") if err != nil { @@ -145,7 +145,7 @@ func (m *CustomExtensionClientConfiguration) SetAdditionalData(value map[string] func (m *CustomExtensionClientConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetMaximumRetries sets the maximumRetries property value. The maximumRetries property +// SetMaximumRetries sets the maximumRetries property value. The max number of retries that Azure AD will make to the external API. Values of 0 or 1 are supported. If null, the default for the service will apply. func (m *CustomExtensionClientConfiguration) SetMaximumRetries(value *int32)() { err := m.GetBackingStore().Set("maximumRetries", value) if err != nil { @@ -159,7 +159,7 @@ func (m *CustomExtensionClientConfiguration) SetOdataType(value *string)() { panic(err) } } -// SetTimeoutInMilliseconds sets the timeoutInMilliseconds property value. The max duration in milliseconds that Azure AD will wait for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. +// SetTimeoutInMilliseconds sets the timeoutInMilliseconds property value. The max duration in milliseconds that Azure AD will wait for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. If null, the default for the service will apply. func (m *CustomExtensionClientConfiguration) SetTimeoutInMilliseconds(value *int32)() { err := m.GetBackingStore().Set("timeoutInMilliseconds", value) if err != nil { diff --git a/models/default_user_role_permissions.go b/models/default_user_role_permissions.go index b681472bb75..a56ad963b59 100644 --- a/models/default_user_role_permissions.go +++ b/models/default_user_role_permissions.go @@ -78,7 +78,7 @@ func (m *DefaultUserRolePermissions) GetAllowedToReadBitlockerKeysForOwnedDevice } return nil } -// GetAllowedToReadOtherUsers gets the allowedToReadOtherUsers property value. Indicates whether the default user role can read other users. +// GetAllowedToReadOtherUsers gets the allowedToReadOtherUsers property value. Indicates whether the default user role can read other users. DO NOT SET THIS VALUE TO false. func (m *DefaultUserRolePermissions) GetAllowedToReadOtherUsers()(*bool) { val, err := m.GetBackingStore().Get("allowedToReadOtherUsers") if err != nil { @@ -250,7 +250,7 @@ func (m *DefaultUserRolePermissions) SetAllowedToReadBitlockerKeysForOwnedDevice panic(err) } } -// SetAllowedToReadOtherUsers sets the allowedToReadOtherUsers property value. Indicates whether the default user role can read other users. +// SetAllowedToReadOtherUsers sets the allowedToReadOtherUsers property value. Indicates whether the default user role can read other users. DO NOT SET THIS VALUE TO false. func (m *DefaultUserRolePermissions) SetAllowedToReadOtherUsers(value *bool)() { err := m.GetBackingStore().Set("allowedToReadOtherUsers", value) if err != nil { diff --git a/models/delegated_admin_relationship.go b/models/delegated_admin_relationship.go index 8821920c8ad..37ad8b2af35 100644 --- a/models/delegated_admin_relationship.go +++ b/models/delegated_admin_relationship.go @@ -18,6 +18,24 @@ func NewDelegatedAdminRelationship()(*DelegatedAdminRelationship) { } // CreateDelegatedAdminRelationshipFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value func CreateDelegatedAdminRelationshipFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.resellerDelegatedAdminRelationship": + return NewResellerDelegatedAdminRelationship(), nil + } + } + } + } return NewDelegatedAdminRelationship(), nil } // GetAccessAssignments gets the accessAssignments property value. The access assignments associated with the delegated admin relationship. diff --git a/models/delegated_admin_relationship_request_action.go b/models/delegated_admin_relationship_request_action.go index d3a3bfa49fc..46cda28d56c 100644 --- a/models/delegated_admin_relationship_request_action.go +++ b/models/delegated_admin_relationship_request_action.go @@ -10,10 +10,11 @@ const ( APPROVE_DELEGATEDADMINRELATIONSHIPREQUESTACTION TERMINATE_DELEGATEDADMINRELATIONSHIPREQUESTACTION UNKNOWNFUTUREVALUE_DELEGATEDADMINRELATIONSHIPREQUESTACTION + REJECT_DELEGATEDADMINRELATIONSHIPREQUESTACTION ) func (i DelegatedAdminRelationshipRequestAction) String() string { - return []string{"lockForApproval", "approve", "terminate", "unknownFutureValue"}[i] + return []string{"lockForApproval", "approve", "terminate", "unknownFutureValue", "reject"}[i] } func ParseDelegatedAdminRelationshipRequestAction(v string) (any, error) { result := LOCKFORAPPROVAL_DELEGATEDADMINRELATIONSHIPREQUESTACTION @@ -26,6 +27,8 @@ func ParseDelegatedAdminRelationshipRequestAction(v string) (any, error) { result = TERMINATE_DELEGATEDADMINRELATIONSHIPREQUESTACTION case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DELEGATEDADMINRELATIONSHIPREQUESTACTION + case "reject": + result = REJECT_DELEGATEDADMINRELATIONSHIPREQUESTACTION default: return 0, errors.New("Unknown DelegatedAdminRelationshipRequestAction value: " + v) } diff --git a/models/device_compliance_policy_setting_state_summary.go b/models/device_compliance_policy_setting_state_summary.go index e726261a532..68970ddf61e 100644 --- a/models/device_compliance_policy_setting_state_summary.go +++ b/models/device_compliance_policy_setting_state_summary.go @@ -41,7 +41,7 @@ func (m *DeviceCompliancePolicySettingStateSummary) GetConflictDeviceCount()(*in } return nil } -// GetDeviceComplianceSettingStates gets the deviceComplianceSettingStates property value. Not yet documented +// GetDeviceComplianceSettingStates gets the deviceComplianceSettingStates property value. The deviceComplianceSettingStates property func (m *DeviceCompliancePolicySettingStateSummary) GetDeviceComplianceSettingStates()([]DeviceComplianceSettingStateable) { val, err := m.GetBackingStore().Get("deviceComplianceSettingStates") if err != nil { @@ -356,7 +356,7 @@ func (m *DeviceCompliancePolicySettingStateSummary) SetConflictDeviceCount(value panic(err) } } -// SetDeviceComplianceSettingStates sets the deviceComplianceSettingStates property value. Not yet documented +// SetDeviceComplianceSettingStates sets the deviceComplianceSettingStates property value. The deviceComplianceSettingStates property func (m *DeviceCompliancePolicySettingStateSummary) SetDeviceComplianceSettingStates(value []DeviceComplianceSettingStateable)() { err := m.GetBackingStore().Set("deviceComplianceSettingStates", value) if err != nil { diff --git a/models/device_geo_location.go b/models/device_geo_location.go index 023ccc197dc..aff1ff37e04 100644 --- a/models/device_geo_location.go +++ b/models/device_geo_location.go @@ -93,16 +93,6 @@ func (m *DeviceGeoLocation) GetFieldDeserializers()(map[string]func(i878a80d2330 } return nil } - res["lastCollectedDateTimeUtc"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetLastCollectedDateTimeUtc(val) - } - return nil - } res["latitude"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetFloat64Value() if err != nil { @@ -188,17 +178,6 @@ func (m *DeviceGeoLocation) GetLastCollectedDateTime()(*i336074805fc853987abe6f7 } return nil } -// GetLastCollectedDateTimeUtc gets the lastCollectedDateTimeUtc property value. Time at which location was recorded, relative to UTC -func (m *DeviceGeoLocation) GetLastCollectedDateTimeUtc()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("lastCollectedDateTimeUtc") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} // GetLatitude gets the latitude property value. Latitude coordinate of the device's location func (m *DeviceGeoLocation) GetLatitude()(*float64) { val, err := m.GetBackingStore().Get("latitude") @@ -280,12 +259,6 @@ func (m *DeviceGeoLocation) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } - { - err := writer.WriteTimeValue("lastCollectedDateTimeUtc", m.GetLastCollectedDateTimeUtc()) - if err != nil { - return err - } - } { err := writer.WriteFloat64Value("latitude", m.GetLatitude()) if err != nil { @@ -363,13 +336,6 @@ func (m *DeviceGeoLocation) SetLastCollectedDateTime(value *i336074805fc853987ab panic(err) } } -// SetLastCollectedDateTimeUtc sets the lastCollectedDateTimeUtc property value. Time at which location was recorded, relative to UTC -func (m *DeviceGeoLocation) SetLastCollectedDateTimeUtc(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("lastCollectedDateTimeUtc", value) - if err != nil { - panic(err) - } -} // SetLatitude sets the latitude property value. Latitude coordinate of the device's location func (m *DeviceGeoLocation) SetLatitude(value *float64)() { err := m.GetBackingStore().Set("latitude", value) @@ -415,7 +381,6 @@ type DeviceGeoLocationable interface { GetHeading()(*float64) GetHorizontalAccuracy()(*float64) GetLastCollectedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetLastCollectedDateTimeUtc()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLatitude()(*float64) GetLongitude()(*float64) GetOdataType()(*string) @@ -426,7 +391,6 @@ type DeviceGeoLocationable interface { SetHeading(value *float64)() SetHorizontalAccuracy(value *float64)() SetLastCollectedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetLastCollectedDateTimeUtc(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLatitude(value *float64)() SetLongitude(value *float64)() SetOdataType(value *string)() diff --git a/models/device_management_cached_report_configuration.go b/models/device_management_cached_report_configuration.go index a1d5eaf2000..5503238b444 100644 --- a/models/device_management_cached_report_configuration.go +++ b/models/device_management_cached_report_configuration.go @@ -20,7 +20,7 @@ func NewDeviceManagementCachedReportConfiguration()(*DeviceManagementCachedRepor func CreateDeviceManagementCachedReportConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewDeviceManagementCachedReportConfiguration(), nil } -// GetExpirationDateTime gets the expirationDateTime property value. Time that the cached report expires +// GetExpirationDateTime gets the expirationDateTime property value. Time that the cached report expires. This property is read-only. func (m *DeviceManagementCachedReportConfiguration) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("expirationDateTime") if err != nil { @@ -139,7 +139,7 @@ func (m *DeviceManagementCachedReportConfiguration) GetFilter()(*string) { } return nil } -// GetLastRefreshDateTime gets the lastRefreshDateTime property value. Time that the cached report was last refreshed +// GetLastRefreshDateTime gets the lastRefreshDateTime property value. Time that the cached report was last refreshed. This property is read-only. func (m *DeviceManagementCachedReportConfiguration) GetLastRefreshDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastRefreshDateTime") if err != nil { @@ -172,7 +172,7 @@ func (m *DeviceManagementCachedReportConfiguration) GetOrderBy()([]string) { } return nil } -// GetReportName gets the reportName property value. Name of the report +// GetReportName gets the reportName property value. Name of the report. This property is read-only. func (m *DeviceManagementCachedReportConfiguration) GetReportName()(*string) { val, err := m.GetBackingStore().Get("reportName") if err != nil { @@ -211,24 +211,12 @@ func (m *DeviceManagementCachedReportConfiguration) Serialize(writer i878a80d233 if err != nil { return err } - { - err = writer.WriteTimeValue("expirationDateTime", m.GetExpirationDateTime()) - if err != nil { - return err - } - } { err = writer.WriteStringValue("filter", m.GetFilter()) if err != nil { return err } } - { - err = writer.WriteTimeValue("lastRefreshDateTime", m.GetLastRefreshDateTime()) - if err != nil { - return err - } - } { err = writer.WriteStringValue("metadata", m.GetMetadata()) if err != nil { @@ -241,12 +229,6 @@ func (m *DeviceManagementCachedReportConfiguration) Serialize(writer i878a80d233 return err } } - { - err = writer.WriteStringValue("reportName", m.GetReportName()) - if err != nil { - return err - } - } if m.GetSelectEscaped() != nil { err = writer.WriteCollectionOfStringValues("select", m.GetSelectEscaped()) if err != nil { @@ -262,7 +244,7 @@ func (m *DeviceManagementCachedReportConfiguration) Serialize(writer i878a80d233 } return nil } -// SetExpirationDateTime sets the expirationDateTime property value. Time that the cached report expires +// SetExpirationDateTime sets the expirationDateTime property value. Time that the cached report expires. This property is read-only. func (m *DeviceManagementCachedReportConfiguration) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("expirationDateTime", value) if err != nil { @@ -276,7 +258,7 @@ func (m *DeviceManagementCachedReportConfiguration) SetFilter(value *string)() { panic(err) } } -// SetLastRefreshDateTime sets the lastRefreshDateTime property value. Time that the cached report was last refreshed +// SetLastRefreshDateTime sets the lastRefreshDateTime property value. Time that the cached report was last refreshed. This property is read-only. func (m *DeviceManagementCachedReportConfiguration) SetLastRefreshDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastRefreshDateTime", value) if err != nil { @@ -297,7 +279,7 @@ func (m *DeviceManagementCachedReportConfiguration) SetOrderBy(value []string)() panic(err) } } -// SetReportName sets the reportName property value. Name of the report +// SetReportName sets the reportName property value. Name of the report. This property is read-only. func (m *DeviceManagementCachedReportConfiguration) SetReportName(value *string)() { err := m.GetBackingStore().Set("reportName", value) if err != nil { diff --git a/models/device_management_configuration_choice_setting_collection_definition.go b/models/device_management_configuration_choice_setting_collection_definition.go index 6d19e09fb8c..7fbf0c2f4b5 100644 --- a/models/device_management_configuration_choice_setting_collection_definition.go +++ b/models/device_management_configuration_choice_setting_collection_definition.go @@ -44,7 +44,7 @@ func (m *DeviceManagementConfigurationChoiceSettingCollectionDefinition) GetFiel } return res } -// GetMaximumCount gets the maximumCount property value. Maximum number of choices in the collection. Valid values 1 to 100 +// GetMaximumCount gets the maximumCount property value. Maximum number of choices in the collection func (m *DeviceManagementConfigurationChoiceSettingCollectionDefinition) GetMaximumCount()(*int32) { val, err := m.GetBackingStore().Get("maximumCount") if err != nil { @@ -55,7 +55,7 @@ func (m *DeviceManagementConfigurationChoiceSettingCollectionDefinition) GetMaxi } return nil } -// GetMinimumCount gets the minimumCount property value. Minimum number of choices in the collection. Valid values 1 to 100 +// GetMinimumCount gets the minimumCount property value. Minimum number of choices in the collection func (m *DeviceManagementConfigurationChoiceSettingCollectionDefinition) GetMinimumCount()(*int32) { val, err := m.GetBackingStore().Get("minimumCount") if err != nil { @@ -86,14 +86,14 @@ func (m *DeviceManagementConfigurationChoiceSettingCollectionDefinition) Seriali } return nil } -// SetMaximumCount sets the maximumCount property value. Maximum number of choices in the collection. Valid values 1 to 100 +// SetMaximumCount sets the maximumCount property value. Maximum number of choices in the collection func (m *DeviceManagementConfigurationChoiceSettingCollectionDefinition) SetMaximumCount(value *int32)() { err := m.GetBackingStore().Set("maximumCount", value) if err != nil { panic(err) } } -// SetMinimumCount sets the minimumCount property value. Minimum number of choices in the collection. Valid values 1 to 100 +// SetMinimumCount sets the minimumCount property value. Minimum number of choices in the collection func (m *DeviceManagementConfigurationChoiceSettingCollectionDefinition) SetMinimumCount(value *int32)() { err := m.GetBackingStore().Set("minimumCount", value) if err != nil { diff --git a/models/device_management_configuration_setting_definition.go b/models/device_management_configuration_setting_definition.go index 57e1c859b54..584236fa74a 100644 --- a/models/device_management_configuration_setting_definition.go +++ b/models/device_management_configuration_setting_definition.go @@ -60,7 +60,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetAccessTypes()(*Devic } return nil } -// GetApplicability gets the applicability property value. Details which device setting is applicable on +// GetApplicability gets the applicability property value. Details which device setting is applicable on. Supports: $filters. func (m *DeviceManagementConfigurationSettingDefinition) GetApplicability()(DeviceManagementConfigurationSettingApplicabilityable) { val, err := m.GetBackingStore().Get("applicability") if err != nil { @@ -82,7 +82,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetBaseUri()(*string) { } return nil } -// GetCategoryId gets the categoryId property value. Specifies the area group under which the setting is configured in a specified configuration service provider (CSP) +// GetCategoryId gets the categoryId property value. Specify category in which the setting is under. Support $filters. func (m *DeviceManagementConfigurationSettingDefinition) GetCategoryId()(*string) { val, err := m.GetBackingStore().Get("categoryId") if err != nil { @@ -93,7 +93,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetCategoryId()(*string } return nil } -// GetDescription gets the description property value. Description of the item +// GetDescription gets the description property value. Description of the setting. func (m *DeviceManagementConfigurationSettingDefinition) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") if err != nil { @@ -104,7 +104,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetDescription()(*strin } return nil } -// GetDisplayName gets the displayName property value. Display name of the item +// GetDisplayName gets the displayName property value. Name of the setting. For example: Allow Toast. func (m *DeviceManagementConfigurationSettingDefinition) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { @@ -318,7 +318,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetFieldDeserializers() } return res } -// GetHelpText gets the helpText property value. Help text of the item +// GetHelpText gets the helpText property value. Help text of the setting. Give more details of the setting. func (m *DeviceManagementConfigurationSettingDefinition) GetHelpText()(*string) { val, err := m.GetBackingStore().Get("helpText") if err != nil { @@ -329,7 +329,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetHelpText()(*string) } return nil } -// GetInfoUrls gets the infoUrls property value. List of links more info for the setting can be found at +// GetInfoUrls gets the infoUrls property value. List of links more info for the setting can be found at. func (m *DeviceManagementConfigurationSettingDefinition) GetInfoUrls()([]string) { val, err := m.GetBackingStore().Get("infoUrls") if err != nil { @@ -395,7 +395,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetReferredSettingInfor } return nil } -// GetRootDefinitionId gets the rootDefinitionId property value. Root setting definition if the setting is a child setting. +// GetRootDefinitionId gets the rootDefinitionId property value. Root setting definition id if the setting is a child setting. func (m *DeviceManagementConfigurationSettingDefinition) GetRootDefinitionId()(*string) { val, err := m.GetBackingStore().Get("rootDefinitionId") if err != nil { @@ -583,7 +583,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) SetAccessTypes(value *D panic(err) } } -// SetApplicability sets the applicability property value. Details which device setting is applicable on +// SetApplicability sets the applicability property value. Details which device setting is applicable on. Supports: $filters. func (m *DeviceManagementConfigurationSettingDefinition) SetApplicability(value DeviceManagementConfigurationSettingApplicabilityable)() { err := m.GetBackingStore().Set("applicability", value) if err != nil { @@ -597,35 +597,35 @@ func (m *DeviceManagementConfigurationSettingDefinition) SetBaseUri(value *strin panic(err) } } -// SetCategoryId sets the categoryId property value. Specifies the area group under which the setting is configured in a specified configuration service provider (CSP) +// SetCategoryId sets the categoryId property value. Specify category in which the setting is under. Support $filters. func (m *DeviceManagementConfigurationSettingDefinition) SetCategoryId(value *string)() { err := m.GetBackingStore().Set("categoryId", value) if err != nil { panic(err) } } -// SetDescription sets the description property value. Description of the item +// SetDescription sets the description property value. Description of the setting. func (m *DeviceManagementConfigurationSettingDefinition) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. Display name of the item +// SetDisplayName sets the displayName property value. Name of the setting. For example: Allow Toast. func (m *DeviceManagementConfigurationSettingDefinition) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetHelpText sets the helpText property value. Help text of the item +// SetHelpText sets the helpText property value. Help text of the setting. Give more details of the setting. func (m *DeviceManagementConfigurationSettingDefinition) SetHelpText(value *string)() { err := m.GetBackingStore().Set("helpText", value) if err != nil { panic(err) } } -// SetInfoUrls sets the infoUrls property value. List of links more info for the setting can be found at +// SetInfoUrls sets the infoUrls property value. List of links more info for the setting can be found at. func (m *DeviceManagementConfigurationSettingDefinition) SetInfoUrls(value []string)() { err := m.GetBackingStore().Set("infoUrls", value) if err != nil { @@ -667,7 +667,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) SetReferredSettingInfor panic(err) } } -// SetRootDefinitionId sets the rootDefinitionId property value. Root setting definition if the setting is a child setting. +// SetRootDefinitionId sets the rootDefinitionId property value. Root setting definition id if the setting is a child setting. func (m *DeviceManagementConfigurationSettingDefinition) SetRootDefinitionId(value *string)() { err := m.GetBackingStore().Set("rootDefinitionId", value) if err != nil { diff --git a/models/device_management_configuration_setting_group_definition.go b/models/device_management_configuration_setting_group_definition.go index bd3bc86750e..903241e4d89 100644 --- a/models/device_management_configuration_setting_group_definition.go +++ b/models/device_management_configuration_setting_group_definition.go @@ -37,7 +37,7 @@ func CreateDeviceManagementConfigurationSettingGroupDefinitionFromDiscriminatorV } return NewDeviceManagementConfigurationSettingGroupDefinition(), nil } -// GetChildIds gets the childIds property value. Dependent child settings to this group of settings +// GetChildIds gets the childIds property value. Dependent child settings to this group of settings. func (m *DeviceManagementConfigurationSettingGroupDefinition) GetChildIds()([]string) { val, err := m.GetBackingStore().Get("childIds") if err != nil { @@ -161,7 +161,7 @@ func (m *DeviceManagementConfigurationSettingGroupDefinition) Serialize(writer i } return nil } -// SetChildIds sets the childIds property value. Dependent child settings to this group of settings +// SetChildIds sets the childIds property value. Dependent child settings to this group of settings. func (m *DeviceManagementConfigurationSettingGroupDefinition) SetChildIds(value []string)() { err := m.GetBackingStore().Set("childIds", value) if err != nil { diff --git a/models/device_management_configuration_simple_setting_definition.go b/models/device_management_configuration_simple_setting_definition.go index 7492cbcc736..8823bd51d21 100644 --- a/models/device_management_configuration_simple_setting_definition.go +++ b/models/device_management_configuration_simple_setting_definition.go @@ -37,7 +37,7 @@ func CreateDeviceManagementConfigurationSimpleSettingDefinitionFromDiscriminator } return NewDeviceManagementConfigurationSimpleSettingDefinition(), nil } -// GetDefaultValue gets the defaultValue property value. Default setting value for this setting +// GetDefaultValue gets the defaultValue property value. Default setting value for this setting. func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDefaultValue()(DeviceManagementConfigurationSettingValueable) { val, err := m.GetBackingStore().Get("defaultValue") if err != nil { @@ -48,7 +48,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDefaultValue() } return nil } -// GetDependedOnBy gets the dependedOnBy property value. list of child settings that depend on this setting +// GetDependedOnBy gets the dependedOnBy property value. list of child settings that depend on this setting. func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependedOnBy()([]DeviceManagementConfigurationSettingDependedOnByable) { val, err := m.GetBackingStore().Get("dependedOnBy") if err != nil { @@ -59,7 +59,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependedOnBy() } return nil } -// GetDependentOn gets the dependentOn property value. list of parent settings this setting is dependent on +// GetDependentOn gets the dependentOn property value. list of parent settings this setting is dependent on. func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependentOn()([]DeviceManagementConfigurationDependentOnable) { val, err := m.GetBackingStore().Get("dependentOn") if err != nil { @@ -127,7 +127,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetFieldDeseriali } return res } -// GetValueDefinition gets the valueDefinition property value. Definition of the value for this setting +// GetValueDefinition gets the valueDefinition property value. Definition of the value for this setting. func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetValueDefinition()(DeviceManagementConfigurationSettingValueDefinitionable) { val, err := m.GetBackingStore().Get("valueDefinition") if err != nil { @@ -182,28 +182,28 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) Serialize(writer } return nil } -// SetDefaultValue sets the defaultValue property value. Default setting value for this setting +// SetDefaultValue sets the defaultValue property value. Default setting value for this setting. func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDefaultValue(value DeviceManagementConfigurationSettingValueable)() { err := m.GetBackingStore().Set("defaultValue", value) if err != nil { panic(err) } } -// SetDependedOnBy sets the dependedOnBy property value. list of child settings that depend on this setting +// SetDependedOnBy sets the dependedOnBy property value. list of child settings that depend on this setting. func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDependedOnBy(value []DeviceManagementConfigurationSettingDependedOnByable)() { err := m.GetBackingStore().Set("dependedOnBy", value) if err != nil { panic(err) } } -// SetDependentOn sets the dependentOn property value. list of parent settings this setting is dependent on +// SetDependentOn sets the dependentOn property value. list of parent settings this setting is dependent on. func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDependentOn(value []DeviceManagementConfigurationDependentOnable)() { err := m.GetBackingStore().Set("dependentOn", value) if err != nil { panic(err) } } -// SetValueDefinition sets the valueDefinition property value. Definition of the value for this setting +// SetValueDefinition sets the valueDefinition property value. Definition of the value for this setting. func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetValueDefinition(value DeviceManagementConfigurationSettingValueDefinitionable)() { err := m.GetBackingStore().Set("valueDefinition", value) if err != nil { diff --git a/models/device_management_configuration_template_family.go b/models/device_management_configuration_template_family.go index d2c63599e20..7d7d9c63c50 100644 --- a/models/device_management_configuration_template_family.go +++ b/models/device_management_configuration_template_family.go @@ -34,10 +34,12 @@ const ( UNKNOWNFUTUREVALUE_DEVICEMANAGEMENTCONFIGURATIONTEMPLATEFAMILY // Template Family for device configuration scripts DEVICECONFIGURATIONSCRIPTS_DEVICEMANAGEMENTCONFIGURATIONTEMPLATEFAMILY + // Template Family for device configuration policies + DEVICECONFIGURATIONPOLICIES_DEVICEMANAGEMENTCONFIGURATIONTEMPLATEFAMILY ) func (i DeviceManagementConfigurationTemplateFamily) String() string { - return []string{"none", "endpointSecurityAntivirus", "endpointSecurityDiskEncryption", "endpointSecurityFirewall", "endpointSecurityEndpointDetectionAndResponse", "endpointSecurityAttackSurfaceReduction", "endpointSecurityAccountProtection", "endpointSecurityApplicationControl", "endpointSecurityEndpointPrivilegeManagement", "enrollmentConfiguration", "appQuietTime", "baseline", "unknownFutureValue", "deviceConfigurationScripts"}[i] + return []string{"none", "endpointSecurityAntivirus", "endpointSecurityDiskEncryption", "endpointSecurityFirewall", "endpointSecurityEndpointDetectionAndResponse", "endpointSecurityAttackSurfaceReduction", "endpointSecurityAccountProtection", "endpointSecurityApplicationControl", "endpointSecurityEndpointPrivilegeManagement", "enrollmentConfiguration", "appQuietTime", "baseline", "unknownFutureValue", "deviceConfigurationScripts", "deviceConfigurationPolicies"}[i] } func ParseDeviceManagementConfigurationTemplateFamily(v string) (any, error) { result := NONE_DEVICEMANAGEMENTCONFIGURATIONTEMPLATEFAMILY @@ -70,6 +72,8 @@ func ParseDeviceManagementConfigurationTemplateFamily(v string) (any, error) { result = UNKNOWNFUTUREVALUE_DEVICEMANAGEMENTCONFIGURATIONTEMPLATEFAMILY case "deviceConfigurationScripts": result = DEVICECONFIGURATIONSCRIPTS_DEVICEMANAGEMENTCONFIGURATIONTEMPLATEFAMILY + case "deviceConfigurationPolicies": + result = DEVICECONFIGURATIONPOLICIES_DEVICEMANAGEMENTCONFIGURATIONTEMPLATEFAMILY default: return 0, errors.New("Unknown DeviceManagementConfigurationTemplateFamily value: " + v) } diff --git a/models/device_management_export_job.go b/models/device_management_export_job.go index 7b0ed38b818..540fa360043 100644 --- a/models/device_management_export_job.go +++ b/models/device_management_export_job.go @@ -20,7 +20,7 @@ func NewDeviceManagementExportJob()(*DeviceManagementExportJob) { func CreateDeviceManagementExportJobFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewDeviceManagementExportJob(), nil } -// GetExpirationDateTime gets the expirationDateTime property value. Time that the exported report expires +// GetExpirationDateTime gets the expirationDateTime property value. Time that the exported report expires. This property is read-only. func (m *DeviceManagementExportJob) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("expirationDateTime") if err != nil { @@ -186,7 +186,7 @@ func (m *DeviceManagementExportJob) GetReportName()(*string) { } return nil } -// GetRequestDateTime gets the requestDateTime property value. Time that the exported report was requested +// GetRequestDateTime gets the requestDateTime property value. Time that the exported report was requested. This property is read-only. func (m *DeviceManagementExportJob) GetRequestDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("requestDateTime") if err != nil { @@ -230,7 +230,7 @@ func (m *DeviceManagementExportJob) GetStatus()(*DeviceManagementReportStatus) { } return nil } -// GetUrl gets the url property value. Temporary location of the exported report +// GetUrl gets the url property value. Temporary location of the exported report. This property is read-only. func (m *DeviceManagementExportJob) GetUrl()(*string) { val, err := m.GetBackingStore().Get("url") if err != nil { @@ -247,12 +247,6 @@ func (m *DeviceManagementExportJob) Serialize(writer i878a80d2330e89d26896388a3f if err != nil { return err } - { - err = writer.WriteTimeValue("expirationDateTime", m.GetExpirationDateTime()) - if err != nil { - return err - } - } { err = writer.WriteStringValue("filter", m.GetFilter()) if err != nil { @@ -279,12 +273,6 @@ func (m *DeviceManagementExportJob) Serialize(writer i878a80d2330e89d26896388a3f return err } } - { - err = writer.WriteTimeValue("requestDateTime", m.GetRequestDateTime()) - if err != nil { - return err - } - } if m.GetSelectEscaped() != nil { err = writer.WriteCollectionOfStringValues("select", m.GetSelectEscaped()) if err != nil { @@ -304,15 +292,9 @@ func (m *DeviceManagementExportJob) Serialize(writer i878a80d2330e89d26896388a3f return err } } - { - err = writer.WriteStringValue("url", m.GetUrl()) - if err != nil { - return err - } - } return nil } -// SetExpirationDateTime sets the expirationDateTime property value. Time that the exported report expires +// SetExpirationDateTime sets the expirationDateTime property value. Time that the exported report expires. This property is read-only. func (m *DeviceManagementExportJob) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("expirationDateTime", value) if err != nil { @@ -347,7 +329,7 @@ func (m *DeviceManagementExportJob) SetReportName(value *string)() { panic(err) } } -// SetRequestDateTime sets the requestDateTime property value. Time that the exported report was requested +// SetRequestDateTime sets the requestDateTime property value. Time that the exported report was requested. This property is read-only. func (m *DeviceManagementExportJob) SetRequestDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("requestDateTime", value) if err != nil { @@ -375,7 +357,7 @@ func (m *DeviceManagementExportJob) SetStatus(value *DeviceManagementReportStatu panic(err) } } -// SetUrl sets the url property value. Temporary location of the exported report +// SetUrl sets the url property value. Temporary location of the exported report. This property is read-only. func (m *DeviceManagementExportJob) SetUrl(value *string)() { err := m.GetBackingStore().Set("url", value) if err != nil { diff --git a/models/device_restriction_action.go b/models/device_restriction_action.go deleted file mode 100644 index 96804703eac..00000000000 --- a/models/device_restriction_action.go +++ /dev/null @@ -1,154 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// DeviceRestrictionAction -type DeviceRestrictionAction struct { - DlpActionInfo -} -// NewDeviceRestrictionAction instantiates a new deviceRestrictionAction and sets the default values. -func NewDeviceRestrictionAction()(*DeviceRestrictionAction) { - m := &DeviceRestrictionAction{ - DlpActionInfo: *NewDlpActionInfo(), - } - return m -} -// CreateDeviceRestrictionActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateDeviceRestrictionActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewDeviceRestrictionAction(), nil -} -// GetFieldDeserializers the deserialization information for the current model -func (m *DeviceRestrictionAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.DlpActionInfo.GetFieldDeserializers() - res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMessage(val) - } - return nil - } - res["restrictionAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRestrictionAction) - if err != nil { - return err - } - if val != nil { - m.SetRestrictionAction(val.(*RestrictionAction)) - } - return nil - } - res["triggers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseRestrictionTrigger) - if err != nil { - return err - } - if val != nil { - res := make([]RestrictionTrigger, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*RestrictionTrigger)) - } - } - m.SetTriggers(res) - } - return nil - } - return res -} -// GetMessage gets the message property value. The message property -func (m *DeviceRestrictionAction) GetMessage()(*string) { - val, err := m.GetBackingStore().Get("message") - 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") - if err != nil { - panic(err) - } - if val != nil { - return val.(*RestrictionAction) - } - return nil -} -// GetTriggers gets the triggers property value. The triggers property -func (m *DeviceRestrictionAction) GetTriggers()([]RestrictionTrigger) { - val, err := m.GetBackingStore().Get("triggers") - if err != nil { - panic(err) - } - if val != nil { - return val.([]RestrictionTrigger) - } - return nil -} -// Serialize serializes information the current object -func (m *DeviceRestrictionAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.DlpActionInfo.Serialize(writer) - if err != nil { - return err - } - { - err = writer.WriteStringValue("message", m.GetMessage()) - if err != nil { - return err - } - } - if m.GetRestrictionAction() != nil { - cast := (*m.GetRestrictionAction()).String() - err = writer.WriteStringValue("restrictionAction", &cast) - if err != nil { - return err - } - } - if m.GetTriggers() != nil { - err = writer.WriteCollectionOfStringValues("triggers", SerializeRestrictionTrigger(m.GetTriggers())) - if err != nil { - return err - } - } - return nil -} -// SetMessage sets the message property value. The message property -func (m *DeviceRestrictionAction) SetMessage(value *string)() { - err := m.GetBackingStore().Set("message", 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) - if err != nil { - panic(err) - } -} -// SetTriggers sets the triggers property value. The triggers property -func (m *DeviceRestrictionAction) SetTriggers(value []RestrictionTrigger)() { - err := m.GetBackingStore().Set("triggers", value) - if err != nil { - panic(err) - } -} -// DeviceRestrictionActionable -type DeviceRestrictionActionable interface { - DlpActionInfoable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetMessage()(*string) - GetRestrictionAction()(*RestrictionAction) - GetTriggers()([]RestrictionTrigger) - SetMessage(value *string)() - SetRestrictionAction(value *RestrictionAction)() - SetTriggers(value []RestrictionTrigger)() -} diff --git a/models/devicemanagement/alert_impact.go b/models/devicemanagement/alert_impact.go index c8bf248c9b6..e1c0f301d68 100644 --- a/models/devicemanagement/alert_impact.go +++ b/models/devicemanagement/alert_impact.go @@ -2,6 +2,7 @@ package devicemanagement import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -45,6 +46,17 @@ func (m *AlertImpact) GetAggregationType()(*AggregationType) { } return nil } +// GetAlertImpactDetails gets the alertImpactDetails property value. The detail information of the impact. For example, if the Frontline Cloud PCs near concurrency limit alert is triggered, the details contain the impacted Frontline license SKU name, such as Windows 365 Frontline 2 vCPU/8GB/128GB, and the corresponding impacted value. +func (m *AlertImpact) GetAlertImpactDetails()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.KeyValuePairable) { + val, err := m.GetBackingStore().Get("alertImpactDetails") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.KeyValuePairable) + } + return nil +} // GetBackingStore gets the backingStore property value. Stores model information. func (m *AlertImpact) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore @@ -62,6 +74,22 @@ func (m *AlertImpact) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return nil } + res["alertImpactDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateKeyValuePairFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.KeyValuePairable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.KeyValuePairable) + } + } + m.SetAlertImpactDetails(res) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -115,6 +143,18 @@ func (m *AlertImpact) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + if m.GetAlertImpactDetails() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAlertImpactDetails())) + for i, v := range m.GetAlertImpactDetails() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("alertImpactDetails", cast) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -149,6 +189,13 @@ func (m *AlertImpact) SetAggregationType(value *AggregationType)() { panic(err) } } +// SetAlertImpactDetails sets the alertImpactDetails property value. The detail information of the impact. For example, if the Frontline Cloud PCs near concurrency limit alert is triggered, the details contain the impacted Frontline license SKU name, such as Windows 365 Frontline 2 vCPU/8GB/128GB, and the corresponding impacted value. +func (m *AlertImpact) SetAlertImpactDetails(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.KeyValuePairable)() { + err := m.GetBackingStore().Set("alertImpactDetails", value) + if err != nil { + panic(err) + } +} // SetBackingStore sets the backingStore property value. Stores model information. func (m *AlertImpact) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -173,10 +220,12 @@ type AlertImpactable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAggregationType()(*AggregationType) + GetAlertImpactDetails()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.KeyValuePairable) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetValue()(*int32) SetAggregationType(value *AggregationType)() + SetAlertImpactDetails(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.KeyValuePairable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetValue(value *int32)() diff --git a/models/devicemanagement/alert_record.go b/models/devicemanagement/alert_record.go index d715881e364..c5766d30e72 100644 --- a/models/devicemanagement/alert_record.go +++ b/models/devicemanagement/alert_record.go @@ -21,7 +21,7 @@ func NewAlertRecord()(*AlertRecord) { func CreateAlertRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAlertRecord(), nil } -// GetAlertImpact gets the alertImpact property value. The impact of the alert event. Consists of a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected. +// GetAlertImpact gets the alertImpact property value. The impact of the alert event. Consists of a list of key-value pair and a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected. The list of key-value pair indicates the details of the alert impact. func (m *AlertRecord) GetAlertImpact()(AlertImpactable) { val, err := m.GetBackingStore().Get("alertImpact") if err != nil { @@ -280,7 +280,7 @@ func (m *AlertRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } -// SetAlertImpact sets the alertImpact property value. The impact of the alert event. Consists of a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected. +// SetAlertImpact sets the alertImpact property value. The impact of the alert event. Consists of a list of key-value pair and a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected. The list of key-value pair indicates the details of the alert impact. func (m *AlertRecord) SetAlertImpact(value AlertImpactable)() { err := m.GetBackingStore().Set("alertImpact", value) if err != nil { diff --git a/models/devicemanagement/alert_rule_template.go b/models/devicemanagement/alert_rule_template.go index a523555e23c..54a3c7458df 100644 --- a/models/devicemanagement/alert_rule_template.go +++ b/models/devicemanagement/alert_rule_template.go @@ -11,10 +11,11 @@ const ( CLOUDPCONPREMISENETWORKCONNECTIONCHECKSCENARIO_ALERTRULETEMPLATE UNKNOWNFUTUREVALUE_ALERTRULETEMPLATE CLOUDPCINGRACEPERIODSCENARIO_ALERTRULETEMPLATE + CLOUDPCFRONTLINEINSUFFICIENTLICENSESSCENARIO_ALERTRULETEMPLATE ) func (i AlertRuleTemplate) String() string { - return []string{"cloudPcProvisionScenario", "cloudPcImageUploadScenario", "cloudPcOnPremiseNetworkConnectionCheckScenario", "unknownFutureValue", "cloudPcInGracePeriodScenario"}[i] + return []string{"cloudPcProvisionScenario", "cloudPcImageUploadScenario", "cloudPcOnPremiseNetworkConnectionCheckScenario", "unknownFutureValue", "cloudPcInGracePeriodScenario", "cloudPcFrontlineInsufficientLicensesScenario"}[i] } func ParseAlertRuleTemplate(v string) (any, error) { result := CLOUDPCPROVISIONSCENARIO_ALERTRULETEMPLATE @@ -29,6 +30,8 @@ func ParseAlertRuleTemplate(v string) (any, error) { result = UNKNOWNFUTUREVALUE_ALERTRULETEMPLATE case "cloudPcInGracePeriodScenario": result = CLOUDPCINGRACEPERIODSCENARIO_ALERTRULETEMPLATE + case "cloudPcFrontlineInsufficientLicensesScenario": + result = CLOUDPCFRONTLINEINSUFFICIENTLICENSESSCENARIO_ALERTRULETEMPLATE default: return 0, errors.New("Unknown AlertRuleTemplate value: " + v) } diff --git a/models/directory_object.go b/models/directory_object.go index dd418ea2306..5e26b747526 100644 --- a/models/directory_object.go +++ b/models/directory_object.go @@ -72,6 +72,8 @@ func CreateDirectoryObjectFromDiscriminatorValue(parseNode i878a80d2330e89d26896 return NewHomeRealmDiscoveryPolicy(), nil case "#microsoft.graph.identitySecurityDefaultsEnforcementPolicy": return NewIdentitySecurityDefaultsEnforcementPolicy(), nil + case "#microsoft.graph.multiTenantOrganizationMember": + return NewMultiTenantOrganizationMember(), nil case "#microsoft.graph.organization": return NewOrganization(), nil case "#microsoft.graph.orgContact": diff --git a/models/dlp_action.go b/models/dlp_action.go deleted file mode 100644 index dc8dfea302f..00000000000 --- a/models/dlp_action.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type DlpAction int - -const ( - NOTIFYUSER_DLPACTION DlpAction = iota - BLOCKACCESS_DLPACTION - DEVICERESTRICTION_DLPACTION -) - -func (i DlpAction) String() string { - return []string{"notifyUser", "blockAccess", "deviceRestriction"}[i] -} -func ParseDlpAction(v string) (any, error) { - result := NOTIFYUSER_DLPACTION - switch v { - case "notifyUser": - result = NOTIFYUSER_DLPACTION - case "blockAccess": - result = BLOCKACCESS_DLPACTION - case "deviceRestriction": - result = DEVICERESTRICTION_DLPACTION - default: - return 0, errors.New("Unknown DlpAction value: " + v) - } - return &result, nil -} -func SerializeDlpAction(values []DlpAction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} diff --git a/models/dlp_action_info.go b/models/dlp_action_info.go index 8f15b7df524..6c00a7af39d 100644 --- a/models/dlp_action_info.go +++ b/models/dlp_action_info.go @@ -34,8 +34,6 @@ func CreateDlpActionInfoFromDiscriminatorValue(parseNode i878a80d2330e89d2689638 switch *mappingValue { case "#microsoft.graph.blockAccessAction": return NewBlockAccessAction(), nil - case "#microsoft.graph.deviceRestrictionAction": - return NewDeviceRestrictionAction(), nil case "#microsoft.graph.notifyUserAction": return NewNotifyUserAction(), nil } @@ -44,17 +42,6 @@ func CreateDlpActionInfoFromDiscriminatorValue(parseNode i878a80d2330e89d2689638 } return NewDlpActionInfo(), nil } -// GetAction gets the action property value. The action property -func (m *DlpActionInfo) GetAction()(*DlpAction) { - val, err := m.GetBackingStore().Get("action") - if err != nil { - panic(err) - } - if val != nil { - return val.(*DlpAction) - } - 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 *DlpActionInfo) GetAdditionalData()(map[string]any) { val , err := m.backingStore.Get("additionalData") @@ -74,16 +61,6 @@ func (m *DlpActionInfo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d411854 // GetFieldDeserializers the deserialization information for the current model func (m *DlpActionInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["action"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDlpAction) - if err != nil { - return err - } - if val != nil { - m.SetAction(val.(*DlpAction)) - } - return nil - } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -109,13 +86,6 @@ func (m *DlpActionInfo) GetOdataType()(*string) { } // Serialize serializes information the current object func (m *DlpActionInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAction() != nil { - cast := (*m.GetAction()).String() - err := writer.WriteStringValue("action", &cast) - if err != nil { - return err - } - } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -130,13 +100,6 @@ func (m *DlpActionInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 } return nil } -// SetAction sets the action property value. The action property -func (m *DlpActionInfo) SetAction(value *DlpAction)() { - err := m.GetBackingStore().Set("action", 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 *DlpActionInfo) SetAdditionalData(value map[string]any)() { err := m.GetBackingStore().Set("additionalData", value) @@ -160,10 +123,8 @@ type DlpActionInfoable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAction()(*DlpAction) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - SetAction(value *DlpAction)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() } diff --git a/models/education_assignment.go b/models/education_assignment.go index 0ae72cdba7b..f9bfdef47bf 100644 --- a/models/education_assignment.go +++ b/models/education_assignment.go @@ -543,7 +543,7 @@ func (m *EducationAssignment) GetLastModifiedDateTime()(*i336074805fc853987abe6f } return nil } -// GetModuleUrl gets the moduleUrl property value. The moduleUrl property +// GetModuleUrl gets the moduleUrl property value. The URL of the module from which to access the assignment. func (m *EducationAssignment) GetModuleUrl()(*string) { val, err := m.GetBackingStore().Get("moduleUrl") if err != nil { @@ -907,7 +907,7 @@ func (m *EducationAssignment) SetLastModifiedDateTime(value *i336074805fc853987a panic(err) } } -// SetModuleUrl sets the moduleUrl property value. The moduleUrl property +// SetModuleUrl sets the moduleUrl property value. The URL of the module from which to access the assignment. func (m *EducationAssignment) SetModuleUrl(value *string)() { err := m.GetBackingStore().Set("moduleUrl", value) if err != nil { diff --git a/models/education_channel_resource.go b/models/education_channel_resource.go index fe28cc538d2..73eecf205bd 100644 --- a/models/education_channel_resource.go +++ b/models/education_channel_resource.go @@ -36,7 +36,7 @@ func (m *EducationChannelResource) GetFieldDeserializers()(map[string]func(i878a } return res } -// GetUrl gets the url property value. The url property +// GetUrl gets the url property value. URL of the channel resource. func (m *EducationChannelResource) GetUrl()(*string) { val, err := m.GetBackingStore().Get("url") if err != nil { @@ -61,7 +61,7 @@ func (m *EducationChannelResource) Serialize(writer i878a80d2330e89d26896388a3f4 } return nil } -// SetUrl sets the url property value. The url property +// SetUrl sets the url property value. URL of the channel resource. func (m *EducationChannelResource) SetUrl(value *string)() { err := m.GetBackingStore().Set("url", value) if err != nil { diff --git a/models/education_class.go b/models/education_class.go index 022cf672e5d..640ff21bd0f 100644 --- a/models/education_class.go +++ b/models/education_class.go @@ -457,7 +457,7 @@ func (m *EducationClass) GetMembers()([]EducationUserable) { } return nil } -// GetModules gets the modules property value. The modules property +// GetModules gets the modules property value. All modules in the class. Nullable. func (m *EducationClass) GetModules()([]EducationModuleable) { val, err := m.GetBackingStore().Get("modules") if err != nil { @@ -791,7 +791,7 @@ func (m *EducationClass) SetMembers(value []EducationUserable)() { panic(err) } } -// SetModules sets the modules property value. The modules property +// SetModules sets the modules property value. All modules in the class. Nullable. func (m *EducationClass) SetModules(value []EducationModuleable)() { err := m.GetBackingStore().Set("modules", value) if err != nil { diff --git a/models/education_linked_assignment_resource.go b/models/education_linked_assignment_resource.go index ec854dd3871..d97985dc449 100644 --- a/models/education_linked_assignment_resource.go +++ b/models/education_linked_assignment_resource.go @@ -36,7 +36,7 @@ func (m *EducationLinkedAssignmentResource) GetFieldDeserializers()(map[string]f } return res } -// GetUrl gets the url property value. The url property +// GetUrl gets the url property value. URL of the actual assignment. func (m *EducationLinkedAssignmentResource) GetUrl()(*string) { val, err := m.GetBackingStore().Get("url") if err != nil { @@ -61,7 +61,7 @@ func (m *EducationLinkedAssignmentResource) Serialize(writer i878a80d2330e89d268 } return nil } -// SetUrl sets the url property value. The url property +// SetUrl sets the url property value. URL of the actual assignment. func (m *EducationLinkedAssignmentResource) SetUrl(value *string)() { err := m.GetBackingStore().Set("url", value) if err != nil { diff --git a/models/education_module.go b/models/education_module.go index c77d3b03550..eeb74555e4c 100644 --- a/models/education_module.go +++ b/models/education_module.go @@ -20,7 +20,7 @@ func NewEducationModule()(*EducationModule) { func CreateEducationModuleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewEducationModule(), nil } -// GetCreatedBy gets the createdBy property value. The createdBy property +// GetCreatedBy gets the createdBy property value. The display name of the user that created the module. func (m *EducationModule) GetCreatedBy()(IdentitySetable) { val, err := m.GetBackingStore().Get("createdBy") if err != nil { @@ -31,7 +31,7 @@ func (m *EducationModule) GetCreatedBy()(IdentitySetable) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// GetCreatedDateTime gets the createdDateTime property value. Date time the module was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z func (m *EducationModule) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") if err != nil { @@ -42,7 +42,7 @@ func (m *EducationModule) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a } return nil } -// GetDescription gets the description property value. The description property +// GetDescription gets the description property value. Description of the module. func (m *EducationModule) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") if err != nil { @@ -53,7 +53,7 @@ func (m *EducationModule) GetDescription()(*string) { } return nil } -// GetDisplayName gets the displayName property value. The displayName property +// GetDisplayName gets the displayName property value. Name of the module. func (m *EducationModule) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { @@ -175,7 +175,7 @@ func (m *EducationModule) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return res } -// GetIsPinned gets the isPinned property value. The isPinned property +// GetIsPinned gets the isPinned property value. Indicates whether the module is pinned or not. func (m *EducationModule) GetIsPinned()(*bool) { val, err := m.GetBackingStore().Get("isPinned") if err != nil { @@ -186,7 +186,7 @@ func (m *EducationModule) GetIsPinned()(*bool) { } return nil } -// GetLastModifiedBy gets the lastModifiedBy property value. The lastModifiedBy property +// GetLastModifiedBy gets the lastModifiedBy property value. The last user that modified the module. func (m *EducationModule) GetLastModifiedBy()(IdentitySetable) { val, err := m.GetBackingStore().Get("lastModifiedBy") if err != nil { @@ -197,7 +197,7 @@ func (m *EducationModule) GetLastModifiedBy()(IdentitySetable) { } return nil } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Date time the module was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z func (m *EducationModule) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") if err != nil { @@ -208,7 +208,7 @@ func (m *EducationModule) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3 } return nil } -// GetResources gets the resources property value. The resources property +// GetResources gets the resources property value. Learning objects that are associated with this module. Only teachers can modify this list. Nullable. func (m *EducationModule) GetResources()([]EducationModuleResourceable) { val, err := m.GetBackingStore().Get("resources") if err != nil { @@ -219,7 +219,7 @@ func (m *EducationModule) GetResources()([]EducationModuleResourceable) { } return nil } -// GetResourcesFolderUrl gets the resourcesFolderUrl property value. The resourcesFolderUrl property +// GetResourcesFolderUrl gets the resourcesFolderUrl property value. Folder URL where all the file resources for this module are stored. func (m *EducationModule) GetResourcesFolderUrl()(*string) { val, err := m.GetBackingStore().Get("resourcesFolderUrl") if err != nil { @@ -230,7 +230,7 @@ func (m *EducationModule) GetResourcesFolderUrl()(*string) { } return nil } -// GetStatus gets the status property value. The status property +// GetStatus gets the status property value. Status of the module. You can't use a PATCH operation to update this value. Possible values are: draft and published. func (m *EducationModule) GetStatus()(*EducationModuleStatus) { val, err := m.GetBackingStore().Get("status") if err != nil { @@ -279,70 +279,70 @@ func (m *EducationModule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 } return nil } -// SetCreatedBy sets the createdBy property value. The createdBy property +// SetCreatedBy sets the createdBy property value. The display name of the user that created the module. func (m *EducationModule) SetCreatedBy(value IdentitySetable)() { err := m.GetBackingStore().Set("createdBy", value) if err != nil { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +// SetCreatedDateTime sets the createdDateTime property value. Date time the module was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z func (m *EducationModule) 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. Description of the module. func (m *EducationModule) 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. Name of the module. func (m *EducationModule) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetIsPinned sets the isPinned property value. The isPinned property +// SetIsPinned sets the isPinned property value. Indicates whether the module is pinned or not. func (m *EducationModule) SetIsPinned(value *bool)() { err := m.GetBackingStore().Set("isPinned", value) if err != nil { panic(err) } } -// SetLastModifiedBy sets the lastModifiedBy property value. The lastModifiedBy property +// SetLastModifiedBy sets the lastModifiedBy property value. The last user that modified the module. func (m *EducationModule) SetLastModifiedBy(value IdentitySetable)() { err := m.GetBackingStore().Set("lastModifiedBy", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Date time the module was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z func (m *EducationModule) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { panic(err) } } -// SetResources sets the resources property value. The resources property +// SetResources sets the resources property value. Learning objects that are associated with this module. Only teachers can modify this list. Nullable. func (m *EducationModule) SetResources(value []EducationModuleResourceable)() { err := m.GetBackingStore().Set("resources", value) if err != nil { panic(err) } } -// SetResourcesFolderUrl sets the resourcesFolderUrl property value. The resourcesFolderUrl property +// SetResourcesFolderUrl sets the resourcesFolderUrl property value. Folder URL where all the file resources for this module are stored. func (m *EducationModule) SetResourcesFolderUrl(value *string)() { err := m.GetBackingStore().Set("resourcesFolderUrl", value) if err != nil { panic(err) } } -// SetStatus sets the status property value. The status property +// SetStatus sets the status property value. Status of the module. You can't use a PATCH operation to update this value. Possible values are: draft and published. func (m *EducationModule) SetStatus(value *EducationModuleStatus)() { err := m.GetBackingStore().Set("status", value) if err != nil { diff --git a/models/education_module_resource.go b/models/education_module_resource.go index f3ee1f498bb..d8f11aecaf2 100644 --- a/models/education_module_resource.go +++ b/models/education_module_resource.go @@ -34,7 +34,7 @@ func (m *EducationModuleResource) GetFieldDeserializers()(map[string]func(i878a8 } return res } -// GetResource gets the resource property value. The resource property +// GetResource gets the resource property value. Resource object that has been associated with this module. func (m *EducationModuleResource) GetResource()(EducationResourceable) { val, err := m.GetBackingStore().Get("resource") if err != nil { @@ -59,7 +59,7 @@ func (m *EducationModuleResource) Serialize(writer i878a80d2330e89d26896388a3f48 } return nil } -// SetResource sets the resource property value. The resource property +// SetResource sets the resource property value. Resource object that has been associated with this module. func (m *EducationModuleResource) SetResource(value EducationResourceable)() { err := m.GetBackingStore().Set("resource", value) if err != nil { diff --git a/models/entity.go b/models/entity.go index c4acb7c0077..231096d6354 100644 --- a/models/entity.go +++ b/models/entity.go @@ -532,6 +532,16 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewCloudPcBulkPowerOff(), nil case "#microsoft.graph.cloudPcBulkPowerOn": return NewCloudPcBulkPowerOn(), nil + case "#microsoft.graph.cloudPcBulkReprovision": + return NewCloudPcBulkReprovision(), nil + case "#microsoft.graph.cloudPcBulkResize": + return NewCloudPcBulkResize(), nil + case "#microsoft.graph.cloudPcBulkRestart": + return NewCloudPcBulkRestart(), nil + case "#microsoft.graph.cloudPcBulkRestore": + return NewCloudPcBulkRestore(), nil + case "#microsoft.graph.cloudPcBulkTroubleshoot": + return NewCloudPcBulkTroubleshoot(), nil case "#microsoft.graph.cloudPCConnectivityIssue": return NewCloudPCConnectivityIssue(), nil case "#microsoft.graph.cloudPcCrossCloudGovernmentOrganizationMapping": @@ -1458,8 +1468,6 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewMacOSImportedPFXCertificateProfile(), nil case "#microsoft.graph.macOSLobApp": return NewMacOSLobApp(), nil - case "#microsoft.graph.macOSMdatpApp": - return NewMacOSMdatpApp(), nil case "#microsoft.graph.macOSMicrosoftDefenderApp": return NewMacOSMicrosoftDefenderApp(), nil case "#microsoft.graph.macOSMicrosoftEdgeApp": @@ -1488,6 +1496,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewMacOsVppApp(), nil case "#microsoft.graph.macOsVppAppAssignedLicense": return NewMacOsVppAppAssignedLicense(), nil + case "#microsoft.graph.macOSWebClip": + return NewMacOSWebClip(), nil case "#microsoft.graph.macOSWiFiConfiguration": return NewMacOSWiFiConfiguration(), nil case "#microsoft.graph.macOSWiredNetworkConfiguration": @@ -1656,6 +1666,16 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewMobileThreatDefenseConnector(), nil case "#microsoft.graph.mobilityManagementPolicy": return NewMobilityManagementPolicy(), nil + case "#microsoft.graph.multiTenantOrganization": + return NewMultiTenantOrganization(), nil + case "#microsoft.graph.multiTenantOrganizationIdentitySyncPolicyTemplate": + return NewMultiTenantOrganizationIdentitySyncPolicyTemplate(), nil + case "#microsoft.graph.multiTenantOrganizationJoinRequestRecord": + return NewMultiTenantOrganizationJoinRequestRecord(), nil + case "#microsoft.graph.multiTenantOrganizationMember": + return NewMultiTenantOrganizationMember(), nil + case "#microsoft.graph.multiTenantOrganizationPartnerConfigurationTemplate": + return NewMultiTenantOrganizationPartnerConfigurationTemplate(), nil case "#microsoft.graph.multiValueLegacyExtendedProperty": return NewMultiValueLegacyExtendedProperty(), nil case "#microsoft.graph.muteParticipantOperation": @@ -1872,6 +1892,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewPolicySetAssignment(), nil case "#microsoft.graph.policySetItem": return NewPolicySetItem(), nil + case "#microsoft.graph.policyTemplate": + return NewPolicyTemplate(), nil case "#microsoft.graph.post": return NewPost(), nil case "#microsoft.graph.presence": @@ -2006,6 +2028,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewReportRoot(), nil case "#microsoft.graph.request": return NewRequest(), nil + case "#microsoft.graph.resellerDelegatedAdminRelationship": + return NewResellerDelegatedAdminRelationship(), nil case "#microsoft.graph.resourceOperation": return NewResourceOperation(), nil case "#microsoft.graph.resourceSpecificPermissionGrant": @@ -2544,18 +2568,16 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewUserTeamwork(), nil case "#microsoft.graph.verticalSection": return NewVerticalSection(), nil - case "#microsoft.graph.virtualAppointment": - return NewVirtualAppointment(), nil case "#microsoft.graph.virtualEndpoint": return NewVirtualEndpoint(), nil case "#microsoft.graph.virtualEvent": return NewVirtualEvent(), nil case "#microsoft.graph.virtualEventPresenter": return NewVirtualEventPresenter(), nil - case "#microsoft.graph.virtualEventRegistrant": - return NewVirtualEventRegistrant(), nil case "#microsoft.graph.virtualEventRegistration": return NewVirtualEventRegistration(), nil + case "#microsoft.graph.virtualEventRegistrationConfiguration": + return NewVirtualEventRegistrationConfiguration(), nil case "#microsoft.graph.virtualEventRegistrationQuestion": return NewVirtualEventRegistrationQuestion(), nil case "#microsoft.graph.virtualEventSession": @@ -2564,6 +2586,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewVirtualEventsRoot(), nil case "#microsoft.graph.virtualEventWebinar": return NewVirtualEventWebinar(), nil + case "#microsoft.graph.virtualEventWebinarRegistrationConfiguration": + return NewVirtualEventWebinarRegistrationConfiguration(), nil case "#microsoft.graph.voiceAuthenticationMethodConfiguration": return NewVoiceAuthenticationMethodConfiguration(), nil case "#microsoft.graph.voiceAuthenticationMethodTarget": @@ -2838,6 +2862,10 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewWorkbookComment(), nil case "#microsoft.graph.workbookCommentReply": return NewWorkbookCommentReply(), nil + case "#microsoft.graph.workbookDocumentTask": + return NewWorkbookDocumentTask(), nil + case "#microsoft.graph.workbookDocumentTaskChange": + return NewWorkbookDocumentTaskChange(), nil case "#microsoft.graph.workbookFilter": return NewWorkbookFilter(), nil case "#microsoft.graph.workbookFormatProtection": diff --git a/models/group.go b/models/group.go index 822fe0ae9c3..6fd5d8eb0ce 100644 --- a/models/group.go +++ b/models/group.go @@ -1187,6 +1187,16 @@ func (m *Group) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 } return nil } + res["uniqueName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUniqueName(val) + } + return nil + } res["unseenConversationsCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -1811,6 +1821,17 @@ func (m *Group) GetTransitiveMembers()([]DirectoryObjectable) { } return nil } +// GetUniqueName gets the uniqueName property value. The uniqueName property +func (m *Group) GetUniqueName()(*string) { + val, err := m.GetBackingStore().Get("uniqueName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUnseenConversationsCount gets the unseenConversationsCount property value. Count of conversations that have been delivered one or more new posts since the signed-in user's last visit to the group. This property is the same as unseenCount. Returned only on $select. func (m *Group) GetUnseenConversationsCount()(*int32) { val, err := m.GetBackingStore().Get("unseenConversationsCount") @@ -1844,7 +1865,7 @@ func (m *Group) GetUnseenMessagesCount()(*int32) { } return nil } -// GetVisibility gets the visibility property value. Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups, when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value is not specified during group creation on Microsoft Graph, a security group is created as Private by default and Microsoft 365 group is Public. Groups assignable to roles are always Private. See group visibility options to learn more. Returned by default. Nullable. +// GetVisibility gets the visibility property value. Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups, when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value is not specified during group creation on Microsoft Graph, a security group is created as Private by default and Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Returned by default. Nullable. func (m *Group) GetVisibility()(*string) { val, err := m.GetBackingStore().Get("visibility") if err != nil { @@ -2467,6 +2488,12 @@ func (m *Group) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c4 return err } } + { + err = writer.WriteStringValue("uniqueName", m.GetUniqueName()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("unseenConversationsCount", m.GetUnseenConversationsCount()) if err != nil { @@ -3017,6 +3044,13 @@ func (m *Group) SetTransitiveMembers(value []DirectoryObjectable)() { panic(err) } } +// SetUniqueName sets the uniqueName property value. The uniqueName property +func (m *Group) SetUniqueName(value *string)() { + err := m.GetBackingStore().Set("uniqueName", value) + if err != nil { + panic(err) + } +} // SetUnseenConversationsCount sets the unseenConversationsCount property value. Count of conversations that have been delivered one or more new posts since the signed-in user's last visit to the group. This property is the same as unseenCount. Returned only on $select. func (m *Group) SetUnseenConversationsCount(value *int32)() { err := m.GetBackingStore().Set("unseenConversationsCount", value) @@ -3038,7 +3072,7 @@ func (m *Group) SetUnseenMessagesCount(value *int32)() { panic(err) } } -// SetVisibility sets the visibility property value. Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups, when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value is not specified during group creation on Microsoft Graph, a security group is created as Private by default and Microsoft 365 group is Public. Groups assignable to roles are always Private. See group visibility options to learn more. Returned by default. Nullable. +// SetVisibility sets the visibility property value. Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups, when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value is not specified during group creation on Microsoft Graph, a security group is created as Private by default and Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Returned by default. Nullable. func (m *Group) SetVisibility(value *string)() { err := m.GetBackingStore().Set("visibility", value) if err != nil { @@ -3130,6 +3164,7 @@ type Groupable interface { GetThreads()([]ConversationThreadable) GetTransitiveMemberOf()([]DirectoryObjectable) GetTransitiveMembers()([]DirectoryObjectable) + GetUniqueName()(*string) GetUnseenConversationsCount()(*int32) GetUnseenCount()(*int32) GetUnseenMessagesCount()(*int32) @@ -3209,6 +3244,7 @@ type Groupable interface { SetThreads(value []ConversationThreadable)() SetTransitiveMemberOf(value []DirectoryObjectable)() SetTransitiveMembers(value []DirectoryObjectable)() + SetUniqueName(value *string)() SetUnseenConversationsCount(value *int32)() SetUnseenCount(value *int32)() SetUnseenMessagesCount(value *int32)() diff --git a/models/identity.go b/models/identity.go index fd9693bf6a3..43cd6557bad 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. 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. +// GetDisplayName gets the displayName property value. The display name of the identity. This property is read-only. 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. Unique identifier for the identity. +// GetId gets the id property value. The identifier of the identity. This property is read-only. 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. 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. +// SetDisplayName sets the displayName property value. The display name of the identity. This property is read-only. func (m *Identity) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetId sets the id property value. Unique identifier for the identity. +// SetId sets the id property value. The identifier of the identity. This property is read-only. func (m *Identity) SetId(value *string)() { err := m.GetBackingStore().Set("id", value) if err != nil { diff --git a/models/identity_set.go b/models/identity_set.go index 643b223a839..020c6644c2e 100644 --- a/models/identity_set.go +++ b/models/identity_set.go @@ -60,7 +60,7 @@ func (m *IdentitySet) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetApplication gets the application property value. Optional. The application associated with this action. +// GetApplication gets the application property value. The Identity of the Application. This property is read-only. func (m *IdentitySet) GetApplication()(Identityable) { val, err := m.GetBackingStore().Get("application") if err != nil { @@ -75,7 +75,7 @@ func (m *IdentitySet) GetApplication()(Identityable) { func (m *IdentitySet) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDevice gets the device property value. Optional. The device associated with this action. +// GetDevice gets the device property value. The Identity of the Device. This property is read-only. func (m *IdentitySet) GetDevice()(Identityable) { val, err := m.GetBackingStore().Get("device") if err != nil { @@ -142,7 +142,7 @@ func (m *IdentitySet) GetOdataType()(*string) { } return nil } -// GetUser gets the user property value. Optional. The user associated with this action. +// GetUser gets the user property value. The Identity of the User. This property is read-only. func (m *IdentitySet) GetUser()(Identityable) { val, err := m.GetBackingStore().Get("user") if err != nil { @@ -194,7 +194,7 @@ func (m *IdentitySet) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetApplication sets the application property value. Optional. The application associated with this action. +// SetApplication sets the application property value. The Identity of the Application. This property is read-only. func (m *IdentitySet) SetApplication(value Identityable)() { err := m.GetBackingStore().Set("application", value) if err != nil { @@ -205,7 +205,7 @@ func (m *IdentitySet) SetApplication(value Identityable)() { func (m *IdentitySet) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDevice sets the device property value. Optional. The device associated with this action. +// SetDevice sets the device property value. The Identity of the Device. This property is read-only. func (m *IdentitySet) SetDevice(value Identityable)() { err := m.GetBackingStore().Set("device", value) if err != nil { @@ -219,7 +219,7 @@ func (m *IdentitySet) SetOdataType(value *string)() { panic(err) } } -// SetUser sets the user property value. Optional. The user associated with this action. +// SetUser sets the user property value. The Identity of the User. This property is read-only. func (m *IdentitySet) SetUser(value Identityable)() { err := m.GetBackingStore().Set("user", value) if err != nil { diff --git a/models/key_value.go b/models/key_value.go index 6962803724a..c7b76d8369b 100644 --- a/models/key_value.go +++ b/models/key_value.go @@ -73,7 +73,7 @@ func (m *KeyValue) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetKey gets the key property value. Contains the name of the field that a value is associated with. +// GetKey gets the key property value. Key. 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. Contains the corresponding value for the specified key. +// GetValue gets the value property value. Value. 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. Contains the name of the field that a value is associated with. +// SetKey sets the key property value. Key. 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. Contains the corresponding value for the specified key. +// SetValue sets the value property value. Value. 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 999a9f32133..cb182b2479a 100644 --- a/models/key_value_pair.go +++ b/models/key_value_pair.go @@ -73,7 +73,7 @@ func (m *KeyValuePair) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } -// GetName gets the name property value. Name for this key-value pair +// GetName gets the name property value. Name for this key-value pair. For more information about possible names for each resource type that uses this configuration, see keyValuePair names and values. func (m *KeyValuePair) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -95,7 +95,7 @@ func (m *KeyValuePair) GetOdataType()(*string) { } return nil } -// GetValue gets the value property value. Value for this key-value pair +// GetValue gets the value property value. Value for this key-value pair. For more information about possible values for each resource type that uses this configuration, see keyValuePair names and values. func (m *KeyValuePair) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") if err != nil { @@ -145,7 +145,7 @@ func (m *KeyValuePair) SetAdditionalData(value map[string]any)() { func (m *KeyValuePair) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetName sets the name property value. Name for this key-value pair +// SetName sets the name property value. Name for this key-value pair. For more information about possible names for each resource type that uses this configuration, see keyValuePair names and values. func (m *KeyValuePair) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { @@ -159,7 +159,7 @@ func (m *KeyValuePair) SetOdataType(value *string)() { panic(err) } } -// SetValue sets the value property value. Value for this key-value pair +// SetValue sets the value property value. Value for this key-value pair. For more information about possible values for each resource type that uses this configuration, see keyValuePair names and values. func (m *KeyValuePair) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) if err != nil { diff --git a/models/mac_o_s_dmg_app.go b/models/mac_o_s_dmg_app.go index 3a792ccf3d5..b3a4ccd942f 100644 --- a/models/mac_o_s_dmg_app.go +++ b/models/mac_o_s_dmg_app.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSDmgApp contains properties and inherited properties for the MacOS DMG App. +// MacOSDmgApp contains properties and inherited properties for the MacOS DMG (Apple Disk Image) App. type MacOSDmgApp struct { MobileLobApp } @@ -82,7 +82,7 @@ func (m *MacOSDmgApp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return res } -// GetIgnoreVersionDetection gets the ignoreVersionDetection property value. A value indicating whether the app's version will be used to detect the app after it is installed on a device. Set this to true for apps that use a self-update feature. Set this to false to install the app when it is not already installed on the device, or if the deploying app's version number does not match the version that's already installed on the device. +// GetIgnoreVersionDetection gets the ignoreVersionDetection property value. When TRUE, indicates that the app's version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app's version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature. The default value is FALSE. func (m *MacOSDmgApp) GetIgnoreVersionDetection()(*bool) { val, err := m.GetBackingStore().Get("ignoreVersionDetection") if err != nil { @@ -93,7 +93,7 @@ func (m *MacOSDmgApp) GetIgnoreVersionDetection()(*bool) { } return nil } -// GetIncludedApps gets the includedApps property value. The list of apps expected to be installed by the DMG. +// GetIncludedApps gets the includedApps property value. The list of .apps expected to be installed by the DMG (Apple Disk Image) func (m *MacOSDmgApp) GetIncludedApps()([]MacOSIncludedAppable) { val, err := m.GetBackingStore().Get("includedApps") if err != nil { @@ -104,7 +104,7 @@ func (m *MacOSDmgApp) GetIncludedApps()([]MacOSIncludedAppable) { } return nil } -// GetMinimumSupportedOperatingSystem gets the minimumSupportedOperatingSystem property value. The value for the minimum applicable operating system. +// GetMinimumSupportedOperatingSystem gets the minimumSupportedOperatingSystem property value. ComplexType macOSMinimumOperatingSystem that indicates the minimum operating system applicable for the application. func (m *MacOSDmgApp) GetMinimumSupportedOperatingSystem()(MacOSMinimumOperatingSystemable) { val, err := m.GetBackingStore().Get("minimumSupportedOperatingSystem") if err != nil { @@ -115,7 +115,7 @@ func (m *MacOSDmgApp) GetMinimumSupportedOperatingSystem()(MacOSMinimumOperating } return nil } -// GetPrimaryBundleId gets the primaryBundleId property value. The primary CFBundleIdentifier of the DMG. +// GetPrimaryBundleId gets the primaryBundleId property value. The bundleId of the primary .app in the DMG (Apple Disk Image). This maps to the CFBundleIdentifier in the app's bundle configuration. func (m *MacOSDmgApp) GetPrimaryBundleId()(*string) { val, err := m.GetBackingStore().Get("primaryBundleId") if err != nil { @@ -126,7 +126,7 @@ func (m *MacOSDmgApp) GetPrimaryBundleId()(*string) { } return nil } -// GetPrimaryBundleVersion gets the primaryBundleVersion property value. The primary CFBundleVersion of the DMG. +// GetPrimaryBundleVersion gets the primaryBundleVersion property value. The version of the primary .app in the DMG (Apple Disk Image). This maps to the CFBundleShortVersion in the app's bundle configuration. func (m *MacOSDmgApp) GetPrimaryBundleVersion()(*string) { val, err := m.GetBackingStore().Get("primaryBundleVersion") if err != nil { @@ -181,35 +181,35 @@ func (m *MacOSDmgApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } -// SetIgnoreVersionDetection sets the ignoreVersionDetection property value. A value indicating whether the app's version will be used to detect the app after it is installed on a device. Set this to true for apps that use a self-update feature. Set this to false to install the app when it is not already installed on the device, or if the deploying app's version number does not match the version that's already installed on the device. +// SetIgnoreVersionDetection sets the ignoreVersionDetection property value. When TRUE, indicates that the app's version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app's version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature. The default value is FALSE. func (m *MacOSDmgApp) SetIgnoreVersionDetection(value *bool)() { err := m.GetBackingStore().Set("ignoreVersionDetection", value) if err != nil { panic(err) } } -// SetIncludedApps sets the includedApps property value. The list of apps expected to be installed by the DMG. +// SetIncludedApps sets the includedApps property value. The list of .apps expected to be installed by the DMG (Apple Disk Image) func (m *MacOSDmgApp) SetIncludedApps(value []MacOSIncludedAppable)() { err := m.GetBackingStore().Set("includedApps", value) if err != nil { panic(err) } } -// SetMinimumSupportedOperatingSystem sets the minimumSupportedOperatingSystem property value. The value for the minimum applicable operating system. +// SetMinimumSupportedOperatingSystem sets the minimumSupportedOperatingSystem property value. ComplexType macOSMinimumOperatingSystem that indicates the minimum operating system applicable for the application. func (m *MacOSDmgApp) SetMinimumSupportedOperatingSystem(value MacOSMinimumOperatingSystemable)() { err := m.GetBackingStore().Set("minimumSupportedOperatingSystem", value) if err != nil { panic(err) } } -// SetPrimaryBundleId sets the primaryBundleId property value. The primary CFBundleIdentifier of the DMG. +// SetPrimaryBundleId sets the primaryBundleId property value. The bundleId of the primary .app in the DMG (Apple Disk Image). This maps to the CFBundleIdentifier in the app's bundle configuration. func (m *MacOSDmgApp) SetPrimaryBundleId(value *string)() { err := m.GetBackingStore().Set("primaryBundleId", value) if err != nil { panic(err) } } -// SetPrimaryBundleVersion sets the primaryBundleVersion property value. The primary CFBundleVersion of the DMG. +// SetPrimaryBundleVersion sets the primaryBundleVersion property value. The version of the primary .app in the DMG (Apple Disk Image). This maps to the CFBundleShortVersion in the app's bundle configuration. func (m *MacOSDmgApp) SetPrimaryBundleVersion(value *string)() { err := m.GetBackingStore().Set("primaryBundleVersion", value) if err != nil { diff --git a/models/mac_o_s_included_app.go b/models/mac_o_s_included_app.go index f33073cadb9..bcec4eec2fb 100644 --- a/models/mac_o_s_included_app.go +++ b/models/mac_o_s_included_app.go @@ -38,7 +38,7 @@ func (m *MacOSIncludedApp) GetAdditionalData()(map[string]any) { func (m *MacOSIncludedApp) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetBundleId gets the bundleId property value. The CFBundleIdentifier. +// GetBundleId gets the bundleId property value. The bundleId of the app. This maps to the CFBundleIdentifier in the app's bundle configuration. func (m *MacOSIncludedApp) GetBundleId()(*string) { val, err := m.GetBackingStore().Get("bundleId") if err != nil { @@ -49,7 +49,7 @@ func (m *MacOSIncludedApp) GetBundleId()(*string) { } return nil } -// GetBundleVersion gets the bundleVersion property value. The CFBundleVersion. +// GetBundleVersion gets the bundleVersion property value. The version of the app. This maps to the CFBundleShortVersion in the app's bundle configuration. func (m *MacOSIncludedApp) GetBundleVersion()(*string) { val, err := m.GetBackingStore().Get("bundleVersion") if err != nil { @@ -145,14 +145,14 @@ func (m *MacOSIncludedApp) SetAdditionalData(value map[string]any)() { func (m *MacOSIncludedApp) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetBundleId sets the bundleId property value. The CFBundleIdentifier. +// SetBundleId sets the bundleId property value. The bundleId of the app. This maps to the CFBundleIdentifier in the app's bundle configuration. func (m *MacOSIncludedApp) SetBundleId(value *string)() { err := m.GetBackingStore().Set("bundleId", value) if err != nil { panic(err) } } -// SetBundleVersion sets the bundleVersion property value. The CFBundleVersion. +// SetBundleVersion sets the bundleVersion property value. The version of the app. This maps to the CFBundleShortVersion in the app's bundle configuration. func (m *MacOSIncludedApp) SetBundleVersion(value *string)() { err := m.GetBackingStore().Set("bundleVersion", value) if err != nil { diff --git a/models/mac_o_s_lob_app.go b/models/mac_o_s_lob_app.go index 0a7a065cc99..88a6655ab3a 100644 --- a/models/mac_o_s_lob_app.go +++ b/models/mac_o_s_lob_app.go @@ -161,7 +161,7 @@ func (m *MacOSLobApp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return res } -// GetIgnoreVersionDetection gets the ignoreVersionDetection property value. When TRUE, indicates that the app's version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app's version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature. +// GetIgnoreVersionDetection gets the ignoreVersionDetection property value. When TRUE, indicates that the app's version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app's version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature. The default value is FALSE. func (m *MacOSLobApp) GetIgnoreVersionDetection()(*bool) { val, err := m.GetBackingStore().Get("ignoreVersionDetection") if err != nil { @@ -172,7 +172,7 @@ func (m *MacOSLobApp) GetIgnoreVersionDetection()(*bool) { } return nil } -// GetInstallAsManaged gets the installAsManaged property value. When TRUE, indicates that the app will be installed as managed (requires macOS 11.0 and other managed package restrictions). When FALSE, indicates that the app will be installed as unmanaged. +// GetInstallAsManaged gets the installAsManaged property value. When TRUE, indicates that the app will be installed as managed (requires macOS 11.0 and other managed package restrictions). When FALSE, indicates that the app will be installed as unmanaged. The default value is FALSE. func (m *MacOSLobApp) GetInstallAsManaged()(*bool) { val, err := m.GetBackingStore().Get("installAsManaged") if err != nil { @@ -316,14 +316,14 @@ func (m *MacOSLobApp) SetChildApps(value []MacOSLobChildAppable)() { panic(err) } } -// SetIgnoreVersionDetection sets the ignoreVersionDetection property value. When TRUE, indicates that the app's version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app's version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature. +// SetIgnoreVersionDetection sets the ignoreVersionDetection property value. When TRUE, indicates that the app's version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app's version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature. The default value is FALSE. func (m *MacOSLobApp) SetIgnoreVersionDetection(value *bool)() { err := m.GetBackingStore().Set("ignoreVersionDetection", value) if err != nil { panic(err) } } -// SetInstallAsManaged sets the installAsManaged property value. When TRUE, indicates that the app will be installed as managed (requires macOS 11.0 and other managed package restrictions). When FALSE, indicates that the app will be installed as unmanaged. +// SetInstallAsManaged sets the installAsManaged property value. When TRUE, indicates that the app will be installed as managed (requires macOS 11.0 and other managed package restrictions). When FALSE, indicates that the app will be installed as unmanaged. The default value is FALSE. func (m *MacOSLobApp) SetInstallAsManaged(value *bool)() { err := m.GetBackingStore().Set("installAsManaged", value) if err != nil { diff --git a/models/mac_o_s_mdatp_app.go b/models/mac_o_s_mdatp_app.go deleted file mode 100644 index 184e050f30c..00000000000 --- a/models/mac_o_s_mdatp_app.go +++ /dev/null @@ -1,41 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// 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 -} -// NewMacOSMdatpApp instantiates a new macOSMdatpApp and sets the default values. -func NewMacOSMdatpApp()(*MacOSMdatpApp) { - m := &MacOSMdatpApp{ - MobileApp: *NewMobileApp(), - } - odataTypeValue := "#microsoft.graph.macOSMdatpApp" - m.SetOdataType(&odataTypeValue) - return m -} -// CreateMacOSMdatpAppFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateMacOSMdatpAppFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewMacOSMdatpApp(), nil -} -// GetFieldDeserializers the deserialization information for the current model -func (m *MacOSMdatpApp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.MobileApp.GetFieldDeserializers() - return res -} -// Serialize serializes information the current object -func (m *MacOSMdatpApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.MobileApp.Serialize(writer) - if err != nil { - return err - } - return nil -} -// MacOSMdatpAppable -type MacOSMdatpAppable interface { - MobileAppable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/models/mac_o_s_web_clip.go b/models/mac_o_s_web_clip.go new file mode 100644 index 00000000000..d834fb06053 --- /dev/null +++ b/models/mac_o_s_web_clip.go @@ -0,0 +1,149 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MacOSWebClip contains properties and inherited properties for macOS web apps. +type MacOSWebClip struct { + MobileApp +} +// NewMacOSWebClip instantiates a new macOSWebClip and sets the default values. +func NewMacOSWebClip()(*MacOSWebClip) { + m := &MacOSWebClip{ + MobileApp: *NewMobileApp(), + } + odataTypeValue := "#microsoft.graph.macOSWebClip" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateMacOSWebClipFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateMacOSWebClipFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMacOSWebClip(), nil +} +// GetAppUrl gets the appUrl property value. The web app URL starting with http:// or https://, such as https://learn.microsoft.com/mem/. +func (m *MacOSWebClip) GetAppUrl()(*string) { + val, err := m.GetBackingStore().Get("appUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *MacOSWebClip) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.MobileApp.GetFieldDeserializers() + res["appUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAppUrl(val) + } + return nil + } + res["fullScreenEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetFullScreenEnabled(val) + } + return nil + } + res["preComposedIconEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetPreComposedIconEnabled(val) + } + return nil + } + return res +} +// GetFullScreenEnabled gets the fullScreenEnabled property value. Whether or not to open the web clip as a full-screen web app. Defaults to false. If TRUE, opens the web clip as a full-screen web app. If FALSE, the web clip opens inside of another app. +func (m *MacOSWebClip) GetFullScreenEnabled()(*bool) { + val, err := m.GetBackingStore().Get("fullScreenEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*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'. +func (m *MacOSWebClip) GetPreComposedIconEnabled()(*bool) { + val, err := m.GetBackingStore().Get("preComposedIconEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *MacOSWebClip) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.MobileApp.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("appUrl", m.GetAppUrl()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("fullScreenEnabled", m.GetFullScreenEnabled()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("preComposedIconEnabled", m.GetPreComposedIconEnabled()) + if err != nil { + return err + } + } + return nil +} +// SetAppUrl sets the appUrl property value. The web app URL starting with http:// or https://, such as https://learn.microsoft.com/mem/. +func (m *MacOSWebClip) SetAppUrl(value *string)() { + err := m.GetBackingStore().Set("appUrl", value) + if err != nil { + panic(err) + } +} +// SetFullScreenEnabled sets the fullScreenEnabled property value. Whether or not to open the web clip as a full-screen web app. Defaults to false. If TRUE, opens the web clip as a full-screen web app. If FALSE, the web clip opens inside of another app. +func (m *MacOSWebClip) SetFullScreenEnabled(value *bool)() { + err := m.GetBackingStore().Set("fullScreenEnabled", value) + if err != nil { + 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'. +func (m *MacOSWebClip) SetPreComposedIconEnabled(value *bool)() { + err := m.GetBackingStore().Set("preComposedIconEnabled", value) + if err != nil { + panic(err) + } +} +// MacOSWebClipable +type MacOSWebClipable interface { + MobileAppable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAppUrl()(*string) + GetFullScreenEnabled()(*bool) + GetPreComposedIconEnabled()(*bool) + SetAppUrl(value *string)() + SetFullScreenEnabled(value *bool)() + SetPreComposedIconEnabled(value *bool)() +} diff --git a/models/mac_os_lob_app_assignment_settings.go b/models/mac_os_lob_app_assignment_settings.go index 1ef77798b5e..3f00c04ddb3 100644 --- a/models/mac_os_lob_app_assignment_settings.go +++ b/models/mac_os_lob_app_assignment_settings.go @@ -36,7 +36,7 @@ func (m *MacOsLobAppAssignmentSettings) GetFieldDeserializers()(map[string]func( } return res } -// 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. +// GetUninstallOnDeviceRemoval gets the uninstallOnDeviceRemoval property value. Whether or not to uninstall the app when device is removed from Intune. func (m *MacOsLobAppAssignmentSettings) GetUninstallOnDeviceRemoval()(*bool) { val, err := m.GetBackingStore().Get("uninstallOnDeviceRemoval") if err != nil { @@ -61,7 +61,7 @@ func (m *MacOsLobAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689638 } return nil } -// 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. +// SetUninstallOnDeviceRemoval sets the uninstallOnDeviceRemoval property value. Whether or not to uninstall the app when device is removed from Intune. func (m *MacOsLobAppAssignmentSettings) SetUninstallOnDeviceRemoval(value *bool)() { err := m.GetBackingStore().Set("uninstallOnDeviceRemoval", value) if err != nil { diff --git a/models/managed_android_lob_app.go b/models/managed_android_lob_app.go index 576fc96a367..39e56c24467 100644 --- a/models/managed_android_lob_app.go +++ b/models/managed_android_lob_app.go @@ -64,6 +64,16 @@ func (m *ManagedAndroidLobApp) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["targetedPlatforms"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseAndroidTargetedPlatforms) + if err != nil { + return err + } + if val != nil { + m.SetTargetedPlatforms(val.(*AndroidTargetedPlatforms)) + } + return nil + } res["versionCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -130,6 +140,17 @@ func (m *ManagedAndroidLobApp) GetPackageId()(*string) { } return nil } +// GetTargetedPlatforms gets the targetedPlatforms property value. Specifies which platform(s) can be targeted for a given Android LOB application or Managed Android LOB application. +func (m *ManagedAndroidLobApp) GetTargetedPlatforms()(*AndroidTargetedPlatforms) { + val, err := m.GetBackingStore().Get("targetedPlatforms") + if err != nil { + panic(err) + } + if val != nil { + return val.(*AndroidTargetedPlatforms) + } + return nil +} // GetVersionCode gets the versionCode property value. The version code of managed Android Line of Business (LoB) app. func (m *ManagedAndroidLobApp) GetVersionCode()(*string) { val, err := m.GetBackingStore().Get("versionCode") @@ -182,6 +203,13 @@ func (m *ManagedAndroidLobApp) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + if m.GetTargetedPlatforms() != nil { + cast := (*m.GetTargetedPlatforms()).String() + err = writer.WriteStringValue("targetedPlatforms", &cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("versionCode", m.GetVersionCode()) if err != nil { @@ -224,6 +252,13 @@ func (m *ManagedAndroidLobApp) SetPackageId(value *string)() { panic(err) } } +// SetTargetedPlatforms sets the targetedPlatforms property value. Specifies which platform(s) can be targeted for a given Android LOB application or Managed Android LOB application. +func (m *ManagedAndroidLobApp) SetTargetedPlatforms(value *AndroidTargetedPlatforms)() { + err := m.GetBackingStore().Set("targetedPlatforms", value) + if err != nil { + panic(err) + } +} // SetVersionCode sets the versionCode property value. The version code of managed Android Line of Business (LoB) app. func (m *ManagedAndroidLobApp) SetVersionCode(value *string)() { err := m.GetBackingStore().Set("versionCode", value) @@ -246,12 +281,14 @@ type ManagedAndroidLobAppable interface { GetIdentityVersion()(*string) GetMinimumSupportedOperatingSystem()(AndroidMinimumOperatingSystemable) GetPackageId()(*string) + GetTargetedPlatforms()(*AndroidTargetedPlatforms) GetVersionCode()(*string) GetVersionName()(*string) SetIdentityName(value *string)() SetIdentityVersion(value *string)() SetMinimumSupportedOperatingSystem(value AndroidMinimumOperatingSystemable)() SetPackageId(value *string)() + SetTargetedPlatforms(value *AndroidTargetedPlatforms)() SetVersionCode(value *string)() SetVersionName(value *string)() } diff --git a/models/managed_device.go b/models/managed_device.go index bd340cc01da..06e5f135a01 100644 --- a/models/managed_device.go +++ b/models/managed_device.go @@ -1313,6 +1313,16 @@ func (m *ManagedDevice) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["securityPatchLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSecurityPatchLevel(val) + } + return nil + } res["serialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -1883,6 +1893,17 @@ func (m *ManagedDevice) GetSecurityBaselineStates()([]SecurityBaselineStateable) } return nil } +// GetSecurityPatchLevel gets the securityPatchLevel property value. This indicates the security patch level of the operating system. These special updates contain important security fixes. For iOS/MacOS they are in (a) format. For android its in 2017-08-07 format. This property is read-only. +func (m *ManagedDevice) GetSecurityPatchLevel()(*string) { + val, err := m.GetBackingStore().Get("securityPatchLevel") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSerialNumber gets the serialNumber property value. SerialNumber. This property is read-only. func (m *ManagedDevice) GetSerialNumber()(*string) { val, err := m.GetBackingStore().Get("serialNumber") @@ -2897,6 +2918,13 @@ func (m *ManagedDevice) SetSecurityBaselineStates(value []SecurityBaselineStatea panic(err) } } +// SetSecurityPatchLevel sets the securityPatchLevel property value. This indicates the security patch level of the operating system. These special updates contain important security fixes. For iOS/MacOS they are in (a) format. For android its in 2017-08-07 format. This property is read-only. +func (m *ManagedDevice) SetSecurityPatchLevel(value *string)() { + err := m.GetBackingStore().Set("securityPatchLevel", value) + if err != nil { + panic(err) + } +} // SetSerialNumber sets the serialNumber property value. SerialNumber. This property is read-only. func (m *ManagedDevice) SetSerialNumber(value *string)() { err := m.GetBackingStore().Set("serialNumber", value) @@ -3089,6 +3117,7 @@ type ManagedDeviceable interface { GetRetireAfterDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetRoleScopeTagIds()([]string) GetSecurityBaselineStates()([]SecurityBaselineStateable) + GetSecurityPatchLevel()(*string) GetSerialNumber()(*string) GetSkuFamily()(*string) GetSkuNumber()(*int32) @@ -3181,6 +3210,7 @@ type ManagedDeviceable interface { SetRetireAfterDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetRoleScopeTagIds(value []string)() SetSecurityBaselineStates(value []SecurityBaselineStateable)() + SetSecurityPatchLevel(value *string)() SetSerialNumber(value *string)() SetSkuFamily(value *string)() SetSkuNumber(value *int32)() diff --git a/models/managed_identity.go b/models/managed_identity.go index 996e6f18fb1..08ca560e287 100644 --- a/models/managed_identity.go +++ b/models/managed_identity.go @@ -49,6 +49,28 @@ func (m *ManagedIdentity) GetAssociatedResourceId()(*string) { func (m *ManagedIdentity) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } +// GetFederatedTokenId gets the federatedTokenId property value. The unique ID of the federated token. +func (m *ManagedIdentity) GetFederatedTokenId()(*string) { + val, err := m.GetBackingStore().Get("federatedTokenId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFederatedTokenIssuer gets the federatedTokenIssuer property value. The issuer of the federated token. +func (m *ManagedIdentity) GetFederatedTokenIssuer()(*string) { + val, err := m.GetBackingStore().Get("federatedTokenIssuer") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model func (m *ManagedIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) @@ -62,6 +84,26 @@ func (m *ManagedIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return nil } + res["federatedTokenId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFederatedTokenId(val) + } + return nil + } + res["federatedTokenIssuer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFederatedTokenIssuer(val) + } + return nil + } res["msiType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseMsiType) if err != nil { @@ -114,6 +156,18 @@ func (m *ManagedIdentity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return err } } + { + err := writer.WriteStringValue("federatedTokenId", m.GetFederatedTokenId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("federatedTokenIssuer", m.GetFederatedTokenIssuer()) + if err != nil { + return err + } + } if m.GetMsiType() != nil { cast := (*m.GetMsiType()).String() err := writer.WriteStringValue("msiType", &cast) @@ -153,6 +207,20 @@ func (m *ManagedIdentity) SetAssociatedResourceId(value *string)() { func (m *ManagedIdentity) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetFederatedTokenId sets the federatedTokenId property value. The unique ID of the federated token. +func (m *ManagedIdentity) SetFederatedTokenId(value *string)() { + err := m.GetBackingStore().Set("federatedTokenId", value) + if err != nil { + panic(err) + } +} +// SetFederatedTokenIssuer sets the federatedTokenIssuer property value. The issuer of the federated token. +func (m *ManagedIdentity) SetFederatedTokenIssuer(value *string)() { + err := m.GetBackingStore().Set("federatedTokenIssuer", value) + if err != nil { + panic(err) + } +} // SetMsiType sets the msiType property value. The possible values are: none, userAssigned, systemAssigned, unknownFutureValue. func (m *ManagedIdentity) SetMsiType(value *MsiType)() { err := m.GetBackingStore().Set("msiType", value) @@ -174,10 +242,14 @@ type ManagedIdentityable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAssociatedResourceId()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetFederatedTokenId()(*string) + GetFederatedTokenIssuer()(*string) GetMsiType()(*MsiType) GetOdataType()(*string) SetAssociatedResourceId(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetFederatedTokenId(value *string)() + SetFederatedTokenIssuer(value *string)() SetMsiType(value *MsiType)() SetOdataType(value *string)() } diff --git a/models/managedtenants/credential_user_registrations_summary.go b/models/managedtenants/credential_user_registrations_summary.go index 847f53b1098..60d1f0943e3 100644 --- a/models/managedtenants/credential_user_registrations_summary.go +++ b/models/managedtenants/credential_user_registrations_summary.go @@ -256,7 +256,7 @@ func (m *CredentialUserRegistrationsSummary) GetTenantId()(*string) { } return nil } -// GetTenantLicenseType gets the tenantLicenseType property value. The tenantLicenseType property +// GetTenantLicenseType gets the tenantLicenseType property value. The license type associated with the tenant; for example, AADFree, AADPremium1, AADPremium2. func (m *CredentialUserRegistrationsSummary) GetTenantLicenseType()(*string) { val, err := m.GetBackingStore().Get("tenantLicenseType") if err != nil { @@ -428,7 +428,7 @@ func (m *CredentialUserRegistrationsSummary) SetTenantId(value *string)() { panic(err) } } -// SetTenantLicenseType sets the tenantLicenseType property value. The tenantLicenseType property +// SetTenantLicenseType sets the tenantLicenseType property value. The license type associated with the tenant; for example, AADFree, AADPremium1, AADPremium2. func (m *CredentialUserRegistrationsSummary) SetTenantLicenseType(value *string)() { err := m.GetBackingStore().Set("tenantLicenseType", value) if err != nil { diff --git a/models/mobile_app.go b/models/mobile_app.go index 289f208e6e2..649199db4f4 100644 --- a/models/mobile_app.go +++ b/models/mobile_app.go @@ -52,8 +52,6 @@ func CreateMobileAppFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewMacOSDmgApp(), nil case "#microsoft.graph.macOSLobApp": return NewMacOSLobApp(), nil - case "#microsoft.graph.macOSMdatpApp": - return NewMacOSMdatpApp(), nil case "#microsoft.graph.macOSMicrosoftDefenderApp": return NewMacOSMicrosoftDefenderApp(), nil case "#microsoft.graph.macOSMicrosoftEdgeApp": @@ -64,6 +62,8 @@ func CreateMobileAppFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewMacOSPkgApp(), nil case "#microsoft.graph.macOsVppApp": return NewMacOsVppApp(), nil + case "#microsoft.graph.macOSWebClip": + return NewMacOSWebClip(), nil case "#microsoft.graph.managedAndroidLobApp": return NewManagedAndroidLobApp(), nil case "#microsoft.graph.managedAndroidStoreApp": diff --git a/models/mobile_threat_partner_tenant_state.go b/models/mobile_threat_partner_tenant_state.go index ec800a0161e..baf5ce54add 100644 --- a/models/mobile_threat_partner_tenant_state.go +++ b/models/mobile_threat_partner_tenant_state.go @@ -14,10 +14,16 @@ const ( ENABLED_MOBILETHREATPARTNERTENANTSTATE // Partner is unresponsive. UNRESPONSIVE_MOBILETHREATPARTNERTENANTSTATE + // Indicates that the partner connector is not set up. This can occur when the connector is not provisioned and Intune has not received a heartbeat for the connector. Please see https://go.microsoft.com/fwlink/?linkid=2239039 for more information on connector states. + NOTSETUP_MOBILETHREATPARTNERTENANTSTATE + // Indicates that the partner connector is in an error state. This can occur when the connector has a non-zero error code set due to an internal error in processing. Please see https://go.microsoft.com/fwlink/?linkid=2239039 for more information on connector states. + ERROR_MOBILETHREATPARTNERTENANTSTATE + // Evolvable enumeration sentinel value. Do not use. + UNKNOWNFUTUREVALUE_MOBILETHREATPARTNERTENANTSTATE ) func (i MobileThreatPartnerTenantState) String() string { - return []string{"unavailable", "available", "enabled", "unresponsive"}[i] + return []string{"unavailable", "available", "enabled", "unresponsive", "notSetUp", "error", "unknownFutureValue"}[i] } func ParseMobileThreatPartnerTenantState(v string) (any, error) { result := UNAVAILABLE_MOBILETHREATPARTNERTENANTSTATE @@ -30,6 +36,12 @@ func ParseMobileThreatPartnerTenantState(v string) (any, error) { result = ENABLED_MOBILETHREATPARTNERTENANTSTATE case "unresponsive": result = UNRESPONSIVE_MOBILETHREATPARTNERTENANTSTATE + case "notSetUp": + result = NOTSETUP_MOBILETHREATPARTNERTENANTSTATE + case "error": + result = ERROR_MOBILETHREATPARTNERTENANTSTATE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_MOBILETHREATPARTNERTENANTSTATE default: return 0, errors.New("Unknown MobileThreatPartnerTenantState value: " + v) } diff --git a/models/multi_tenant_organization.go b/models/multi_tenant_organization.go new file mode 100644 index 00000000000..88470976fab --- /dev/null +++ b/models/multi_tenant_organization.go @@ -0,0 +1,269 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MultiTenantOrganization +type MultiTenantOrganization struct { + Entity +} +// NewMultiTenantOrganization instantiates a new multiTenantOrganization and sets the default values. +func NewMultiTenantOrganization()(*MultiTenantOrganization) { + m := &MultiTenantOrganization{ + Entity: *NewEntity(), + } + return m +} +// CreateMultiTenantOrganizationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateMultiTenantOrganizationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMultiTenantOrganization(), nil +} +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +func (m *MultiTenantOrganization) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetDescription gets the description property value. The description property +func (m *MultiTenantOrganization) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDisplayName gets the displayName property value. The displayName property +func (m *MultiTenantOrganization) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *MultiTenantOrganization) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["joinRequest"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateMultiTenantOrganizationJoinRequestRecordFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetJoinRequest(val.(MultiTenantOrganizationJoinRequestRecordable)) + } + return nil + } + res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMultiTenantOrganizationState) + if err != nil { + return err + } + if val != nil { + m.SetState(val.(*MultiTenantOrganizationState)) + } + return nil + } + res["tenants"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateMultiTenantOrganizationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]MultiTenantOrganizationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(MultiTenantOrganizationMemberable) + } + } + m.SetTenants(res) + } + return nil + } + return res +} +// GetJoinRequest gets the joinRequest property value. The joinRequest property +func (m *MultiTenantOrganization) GetJoinRequest()(MultiTenantOrganizationJoinRequestRecordable) { + val, err := m.GetBackingStore().Get("joinRequest") + if err != nil { + panic(err) + } + if val != nil { + return val.(MultiTenantOrganizationJoinRequestRecordable) + } + return nil +} +// GetState gets the state property value. The state property +func (m *MultiTenantOrganization) GetState()(*MultiTenantOrganizationState) { + val, err := m.GetBackingStore().Get("state") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MultiTenantOrganizationState) + } + return nil +} +// GetTenants gets the tenants property value. The tenants property +func (m *MultiTenantOrganization) GetTenants()([]MultiTenantOrganizationMemberable) { + val, err := m.GetBackingStore().Get("tenants") + if err != nil { + panic(err) + } + if val != nil { + return val.([]MultiTenantOrganizationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *MultiTenantOrganization) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("joinRequest", m.GetJoinRequest()) + if err != nil { + return err + } + } + if m.GetState() != nil { + cast := (*m.GetState()).String() + err = writer.WriteStringValue("state", &cast) + if err != nil { + return err + } + } + if m.GetTenants() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTenants())) + for i, v := range m.GetTenants() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("tenants", cast) + if err != nil { + return err + } + } + return nil +} +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *MultiTenantOrganization) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetDescription sets the description property value. The description property +func (m *MultiTenantOrganization) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *MultiTenantOrganization) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetJoinRequest sets the joinRequest property value. The joinRequest property +func (m *MultiTenantOrganization) SetJoinRequest(value MultiTenantOrganizationJoinRequestRecordable)() { + err := m.GetBackingStore().Set("joinRequest", value) + if err != nil { + panic(err) + } +} +// SetState sets the state property value. The state property +func (m *MultiTenantOrganization) SetState(value *MultiTenantOrganizationState)() { + err := m.GetBackingStore().Set("state", value) + if err != nil { + panic(err) + } +} +// SetTenants sets the tenants property value. The tenants property +func (m *MultiTenantOrganization) SetTenants(value []MultiTenantOrganizationMemberable)() { + err := m.GetBackingStore().Set("tenants", value) + if err != nil { + panic(err) + } +} +// MultiTenantOrganizationable +type MultiTenantOrganizationable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetDescription()(*string) + GetDisplayName()(*string) + GetJoinRequest()(MultiTenantOrganizationJoinRequestRecordable) + GetState()(*MultiTenantOrganizationState) + GetTenants()([]MultiTenantOrganizationMemberable) + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetDescription(value *string)() + SetDisplayName(value *string)() + SetJoinRequest(value MultiTenantOrganizationJoinRequestRecordable)() + SetState(value *MultiTenantOrganizationState)() + SetTenants(value []MultiTenantOrganizationMemberable)() +} diff --git a/models/multi_tenant_organization_identity_sync_policy_template.go b/models/multi_tenant_organization_identity_sync_policy_template.go new file mode 100644 index 00000000000..f18e24463ca --- /dev/null +++ b/models/multi_tenant_organization_identity_sync_policy_template.go @@ -0,0 +1,112 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MultiTenantOrganizationIdentitySyncPolicyTemplate +type MultiTenantOrganizationIdentitySyncPolicyTemplate struct { + Entity +} +// NewMultiTenantOrganizationIdentitySyncPolicyTemplate instantiates a new multiTenantOrganizationIdentitySyncPolicyTemplate and sets the default values. +func NewMultiTenantOrganizationIdentitySyncPolicyTemplate()(*MultiTenantOrganizationIdentitySyncPolicyTemplate) { + m := &MultiTenantOrganizationIdentitySyncPolicyTemplate{ + Entity: *NewEntity(), + } + return m +} +// CreateMultiTenantOrganizationIdentitySyncPolicyTemplateFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateMultiTenantOrganizationIdentitySyncPolicyTemplateFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMultiTenantOrganizationIdentitySyncPolicyTemplate(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *MultiTenantOrganizationIdentitySyncPolicyTemplate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["templateApplicationLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseTemplateApplicationLevel) + if err != nil { + return err + } + if val != nil { + m.SetTemplateApplicationLevel(val.(*TemplateApplicationLevel)) + } + return nil + } + res["userSyncInbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantUserSyncInboundFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetUserSyncInbound(val.(CrossTenantUserSyncInboundable)) + } + return nil + } + return res +} +// GetTemplateApplicationLevel gets the templateApplicationLevel property value. The templateApplicationLevel property +func (m *MultiTenantOrganizationIdentitySyncPolicyTemplate) GetTemplateApplicationLevel()(*TemplateApplicationLevel) { + val, err := m.GetBackingStore().Get("templateApplicationLevel") + if err != nil { + panic(err) + } + if val != nil { + return val.(*TemplateApplicationLevel) + } + return nil +} +// GetUserSyncInbound gets the userSyncInbound property value. The userSyncInbound property +func (m *MultiTenantOrganizationIdentitySyncPolicyTemplate) GetUserSyncInbound()(CrossTenantUserSyncInboundable) { + val, err := m.GetBackingStore().Get("userSyncInbound") + if err != nil { + panic(err) + } + if val != nil { + return val.(CrossTenantUserSyncInboundable) + } + return nil +} +// Serialize serializes information the current object +func (m *MultiTenantOrganizationIdentitySyncPolicyTemplate) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + if m.GetTemplateApplicationLevel() != nil { + cast := (*m.GetTemplateApplicationLevel()).String() + err = writer.WriteStringValue("templateApplicationLevel", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("userSyncInbound", m.GetUserSyncInbound()) + if err != nil { + return err + } + } + return nil +} +// SetTemplateApplicationLevel sets the templateApplicationLevel property value. The templateApplicationLevel property +func (m *MultiTenantOrganizationIdentitySyncPolicyTemplate) SetTemplateApplicationLevel(value *TemplateApplicationLevel)() { + err := m.GetBackingStore().Set("templateApplicationLevel", value) + if err != nil { + panic(err) + } +} +// SetUserSyncInbound sets the userSyncInbound property value. The userSyncInbound property +func (m *MultiTenantOrganizationIdentitySyncPolicyTemplate) SetUserSyncInbound(value CrossTenantUserSyncInboundable)() { + err := m.GetBackingStore().Set("userSyncInbound", value) + if err != nil { + panic(err) + } +} +// MultiTenantOrganizationIdentitySyncPolicyTemplateable +type MultiTenantOrganizationIdentitySyncPolicyTemplateable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetTemplateApplicationLevel()(*TemplateApplicationLevel) + GetUserSyncInbound()(CrossTenantUserSyncInboundable) + SetTemplateApplicationLevel(value *TemplateApplicationLevel)() + SetUserSyncInbound(value CrossTenantUserSyncInboundable)() +} diff --git a/models/multi_tenant_organization_join_request_record.go b/models/multi_tenant_organization_join_request_record.go new file mode 100644 index 00000000000..8181a84f7c8 --- /dev/null +++ b/models/multi_tenant_organization_join_request_record.go @@ -0,0 +1,185 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MultiTenantOrganizationJoinRequestRecord +type MultiTenantOrganizationJoinRequestRecord struct { + Entity +} +// NewMultiTenantOrganizationJoinRequestRecord instantiates a new multiTenantOrganizationJoinRequestRecord and sets the default values. +func NewMultiTenantOrganizationJoinRequestRecord()(*MultiTenantOrganizationJoinRequestRecord) { + m := &MultiTenantOrganizationJoinRequestRecord{ + Entity: *NewEntity(), + } + return m +} +// CreateMultiTenantOrganizationJoinRequestRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateMultiTenantOrganizationJoinRequestRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMultiTenantOrganizationJoinRequestRecord(), nil +} +// GetAddedByTenantId gets the addedByTenantId property value. The addedByTenantId property +func (m *MultiTenantOrganizationJoinRequestRecord) GetAddedByTenantId()(*string) { + val, err := m.GetBackingStore().Get("addedByTenantId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *MultiTenantOrganizationJoinRequestRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["addedByTenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAddedByTenantId(val) + } + return nil + } + res["memberState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberState) + if err != nil { + return err + } + if val != nil { + m.SetMemberState(val.(*MultiTenantOrganizationMemberState)) + } + return nil + } + res["role"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberRole) + if err != nil { + return err + } + if val != nil { + m.SetRole(val.(*MultiTenantOrganizationMemberRole)) + } + return nil + } + res["transitionDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateMultiTenantOrganizationJoinRequestTransitionDetailsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTransitionDetails(val.(MultiTenantOrganizationJoinRequestTransitionDetailsable)) + } + return nil + } + return res +} +// GetMemberState gets the memberState property value. The memberState property +func (m *MultiTenantOrganizationJoinRequestRecord) GetMemberState()(*MultiTenantOrganizationMemberState) { + val, err := m.GetBackingStore().Get("memberState") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MultiTenantOrganizationMemberState) + } + return nil +} +// GetRole gets the role property value. The role property +func (m *MultiTenantOrganizationJoinRequestRecord) GetRole()(*MultiTenantOrganizationMemberRole) { + val, err := m.GetBackingStore().Get("role") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MultiTenantOrganizationMemberRole) + } + return nil +} +// GetTransitionDetails gets the transitionDetails property value. The transitionDetails property +func (m *MultiTenantOrganizationJoinRequestRecord) GetTransitionDetails()(MultiTenantOrganizationJoinRequestTransitionDetailsable) { + val, err := m.GetBackingStore().Get("transitionDetails") + if err != nil { + panic(err) + } + if val != nil { + return val.(MultiTenantOrganizationJoinRequestTransitionDetailsable) + } + return nil +} +// Serialize serializes information the current object +func (m *MultiTenantOrganizationJoinRequestRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("addedByTenantId", m.GetAddedByTenantId()) + if err != nil { + return err + } + } + if m.GetMemberState() != nil { + cast := (*m.GetMemberState()).String() + err = writer.WriteStringValue("memberState", &cast) + if err != nil { + return err + } + } + if m.GetRole() != nil { + cast := (*m.GetRole()).String() + err = writer.WriteStringValue("role", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("transitionDetails", m.GetTransitionDetails()) + if err != nil { + return err + } + } + return nil +} +// SetAddedByTenantId sets the addedByTenantId property value. The addedByTenantId property +func (m *MultiTenantOrganizationJoinRequestRecord) SetAddedByTenantId(value *string)() { + err := m.GetBackingStore().Set("addedByTenantId", value) + if err != nil { + panic(err) + } +} +// SetMemberState sets the memberState property value. The memberState property +func (m *MultiTenantOrganizationJoinRequestRecord) SetMemberState(value *MultiTenantOrganizationMemberState)() { + err := m.GetBackingStore().Set("memberState", value) + if err != nil { + panic(err) + } +} +// SetRole sets the role property value. The role property +func (m *MultiTenantOrganizationJoinRequestRecord) SetRole(value *MultiTenantOrganizationMemberRole)() { + err := m.GetBackingStore().Set("role", value) + if err != nil { + panic(err) + } +} +// SetTransitionDetails sets the transitionDetails property value. The transitionDetails property +func (m *MultiTenantOrganizationJoinRequestRecord) SetTransitionDetails(value MultiTenantOrganizationJoinRequestTransitionDetailsable)() { + err := m.GetBackingStore().Set("transitionDetails", value) + if err != nil { + panic(err) + } +} +// MultiTenantOrganizationJoinRequestRecordable +type MultiTenantOrganizationJoinRequestRecordable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAddedByTenantId()(*string) + GetMemberState()(*MultiTenantOrganizationMemberState) + GetRole()(*MultiTenantOrganizationMemberRole) + GetTransitionDetails()(MultiTenantOrganizationJoinRequestTransitionDetailsable) + SetAddedByTenantId(value *string)() + SetMemberState(value *MultiTenantOrganizationMemberState)() + SetRole(value *MultiTenantOrganizationMemberRole)() + SetTransitionDetails(value MultiTenantOrganizationJoinRequestTransitionDetailsable)() +} diff --git a/models/multi_tenant_organization_join_request_transition_details.go b/models/multi_tenant_organization_join_request_transition_details.go new file mode 100644 index 00000000000..4fa17b7feee --- /dev/null +++ b/models/multi_tenant_organization_join_request_transition_details.go @@ -0,0 +1,220 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// MultiTenantOrganizationJoinRequestTransitionDetails +type MultiTenantOrganizationJoinRequestTransitionDetails struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewMultiTenantOrganizationJoinRequestTransitionDetails instantiates a new multiTenantOrganizationJoinRequestTransitionDetails and sets the default values. +func NewMultiTenantOrganizationJoinRequestTransitionDetails()(*MultiTenantOrganizationJoinRequestTransitionDetails) { + m := &MultiTenantOrganizationJoinRequestTransitionDetails{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateMultiTenantOrganizationJoinRequestTransitionDetailsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateMultiTenantOrganizationJoinRequestTransitionDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMultiTenantOrganizationJoinRequestTransitionDetails(), 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 *MultiTenantOrganizationJoinRequestTransitionDetails) 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 *MultiTenantOrganizationJoinRequestTransitionDetails) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDesiredMemberState gets the desiredMemberState property value. The desiredMemberState property +func (m *MultiTenantOrganizationJoinRequestTransitionDetails) GetDesiredMemberState()(*MultiTenantOrganizationMemberState) { + val, err := m.GetBackingStore().Get("desiredMemberState") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MultiTenantOrganizationMemberState) + } + return nil +} +// GetDetails gets the details property value. The details property +func (m *MultiTenantOrganizationJoinRequestTransitionDetails) GetDetails()(*string) { + val, err := m.GetBackingStore().Get("details") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *MultiTenantOrganizationJoinRequestTransitionDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["desiredMemberState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberState) + if err != nil { + return err + } + if val != nil { + m.SetDesiredMemberState(val.(*MultiTenantOrganizationMemberState)) + } + return nil + } + res["details"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDetails(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["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberProcessingStatus) + if err != nil { + return err + } + if val != nil { + m.SetStatus(val.(*MultiTenantOrganizationMemberProcessingStatus)) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MultiTenantOrganizationJoinRequestTransitionDetails) 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 *MultiTenantOrganizationJoinRequestTransitionDetails) GetStatus()(*MultiTenantOrganizationMemberProcessingStatus) { + val, err := m.GetBackingStore().Get("status") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MultiTenantOrganizationMemberProcessingStatus) + } + return nil +} +// Serialize serializes information the current object +func (m *MultiTenantOrganizationJoinRequestTransitionDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetDesiredMemberState() != nil { + cast := (*m.GetDesiredMemberState()).String() + err := writer.WriteStringValue("desiredMemberState", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("details", m.GetDetails()) + if err != nil { + 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) + 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 *MultiTenantOrganizationJoinRequestTransitionDetails) 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 *MultiTenantOrganizationJoinRequestTransitionDetails) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDesiredMemberState sets the desiredMemberState property value. The desiredMemberState property +func (m *MultiTenantOrganizationJoinRequestTransitionDetails) SetDesiredMemberState(value *MultiTenantOrganizationMemberState)() { + err := m.GetBackingStore().Set("desiredMemberState", value) + if err != nil { + panic(err) + } +} +// SetDetails sets the details property value. The details property +func (m *MultiTenantOrganizationJoinRequestTransitionDetails) SetDetails(value *string)() { + err := m.GetBackingStore().Set("details", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MultiTenantOrganizationJoinRequestTransitionDetails) 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 *MultiTenantOrganizationJoinRequestTransitionDetails) SetStatus(value *MultiTenantOrganizationMemberProcessingStatus)() { + err := m.GetBackingStore().Set("status", value) + if err != nil { + panic(err) + } +} +// MultiTenantOrganizationJoinRequestTransitionDetailsable +type MultiTenantOrganizationJoinRequestTransitionDetailsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDesiredMemberState()(*MultiTenantOrganizationMemberState) + GetDetails()(*string) + GetOdataType()(*string) + GetStatus()(*MultiTenantOrganizationMemberProcessingStatus) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDesiredMemberState(value *MultiTenantOrganizationMemberState)() + SetDetails(value *string)() + SetOdataType(value *string)() + SetStatus(value *MultiTenantOrganizationMemberProcessingStatus)() +} diff --git a/models/multi_tenant_organization_member.go b/models/multi_tenant_organization_member.go new file mode 100644 index 00000000000..bd8b4252dc2 --- /dev/null +++ b/models/multi_tenant_organization_member.go @@ -0,0 +1,333 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MultiTenantOrganizationMember +type MultiTenantOrganizationMember struct { + DirectoryObject +} +// NewMultiTenantOrganizationMember instantiates a new multiTenantOrganizationMember and sets the default values. +func NewMultiTenantOrganizationMember()(*MultiTenantOrganizationMember) { + m := &MultiTenantOrganizationMember{ + DirectoryObject: *NewDirectoryObject(), + } + odataTypeValue := "#microsoft.graph.multiTenantOrganizationMember" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateMultiTenantOrganizationMemberFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateMultiTenantOrganizationMemberFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMultiTenantOrganizationMember(), nil +} +// GetAddedByTenantId gets the addedByTenantId property value. The addedByTenantId property +func (m *MultiTenantOrganizationMember) GetAddedByTenantId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + val, err := m.GetBackingStore().Get("addedByTenantId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + } + return nil +} +// GetAddedDateTime gets the addedDateTime property value. The addedDateTime property +func (m *MultiTenantOrganizationMember) GetAddedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("addedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetDisplayName gets the displayName property value. The displayName property +func (m *MultiTenantOrganizationMember) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *MultiTenantOrganizationMember) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.DirectoryObject.GetFieldDeserializers() + res["addedByTenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetAddedByTenantId(val) + } + return nil + } + res["addedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetAddedDateTime(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["joinedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetJoinedDateTime(val) + } + return nil + } + res["role"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberRole) + if err != nil { + return err + } + if val != nil { + m.SetRole(val.(*MultiTenantOrganizationMemberRole)) + } + return nil + } + res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberState) + if err != nil { + return err + } + if val != nil { + m.SetState(val.(*MultiTenantOrganizationMemberState)) + } + return nil + } + res["tenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTenantId(val) + } + return nil + } + res["transitionDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateMultiTenantOrganizationMemberTransitionDetailsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTransitionDetails(val.(MultiTenantOrganizationMemberTransitionDetailsable)) + } + return nil + } + return res +} +// GetJoinedDateTime gets the joinedDateTime property value. The joinedDateTime property +func (m *MultiTenantOrganizationMember) GetJoinedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("joinedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetRole gets the role property value. The role property +func (m *MultiTenantOrganizationMember) GetRole()(*MultiTenantOrganizationMemberRole) { + val, err := m.GetBackingStore().Get("role") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MultiTenantOrganizationMemberRole) + } + return nil +} +// GetState gets the state property value. The state property +func (m *MultiTenantOrganizationMember) GetState()(*MultiTenantOrganizationMemberState) { + val, err := m.GetBackingStore().Get("state") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MultiTenantOrganizationMemberState) + } + return nil +} +// GetTenantId gets the tenantId property value. The tenantId property +func (m *MultiTenantOrganizationMember) GetTenantId()(*string) { + val, err := m.GetBackingStore().Get("tenantId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTransitionDetails gets the transitionDetails property value. The transitionDetails property +func (m *MultiTenantOrganizationMember) GetTransitionDetails()(MultiTenantOrganizationMemberTransitionDetailsable) { + val, err := m.GetBackingStore().Get("transitionDetails") + if err != nil { + panic(err) + } + if val != nil { + return val.(MultiTenantOrganizationMemberTransitionDetailsable) + } + return nil +} +// Serialize serializes information the current object +func (m *MultiTenantOrganizationMember) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.DirectoryObject.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteUUIDValue("addedByTenantId", m.GetAddedByTenantId()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("addedDateTime", m.GetAddedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("joinedDateTime", m.GetJoinedDateTime()) + if err != nil { + return err + } + } + if m.GetRole() != nil { + cast := (*m.GetRole()).String() + err = writer.WriteStringValue("role", &cast) + if err != nil { + return err + } + } + if m.GetState() != nil { + cast := (*m.GetState()).String() + err = writer.WriteStringValue("state", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("tenantId", m.GetTenantId()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("transitionDetails", m.GetTransitionDetails()) + if err != nil { + return err + } + } + return nil +} +// SetAddedByTenantId sets the addedByTenantId property value. The addedByTenantId property +func (m *MultiTenantOrganizationMember) SetAddedByTenantId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + err := m.GetBackingStore().Set("addedByTenantId", value) + if err != nil { + panic(err) + } +} +// SetAddedDateTime sets the addedDateTime property value. The addedDateTime property +func (m *MultiTenantOrganizationMember) SetAddedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("addedDateTime", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *MultiTenantOrganizationMember) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetJoinedDateTime sets the joinedDateTime property value. The joinedDateTime property +func (m *MultiTenantOrganizationMember) SetJoinedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("joinedDateTime", value) + if err != nil { + panic(err) + } +} +// SetRole sets the role property value. The role property +func (m *MultiTenantOrganizationMember) SetRole(value *MultiTenantOrganizationMemberRole)() { + err := m.GetBackingStore().Set("role", value) + if err != nil { + panic(err) + } +} +// SetState sets the state property value. The state property +func (m *MultiTenantOrganizationMember) SetState(value *MultiTenantOrganizationMemberState)() { + err := m.GetBackingStore().Set("state", value) + if err != nil { + panic(err) + } +} +// SetTenantId sets the tenantId property value. The tenantId property +func (m *MultiTenantOrganizationMember) SetTenantId(value *string)() { + err := m.GetBackingStore().Set("tenantId", value) + if err != nil { + panic(err) + } +} +// SetTransitionDetails sets the transitionDetails property value. The transitionDetails property +func (m *MultiTenantOrganizationMember) SetTransitionDetails(value MultiTenantOrganizationMemberTransitionDetailsable)() { + err := m.GetBackingStore().Set("transitionDetails", value) + if err != nil { + panic(err) + } +} +// MultiTenantOrganizationMemberable +type MultiTenantOrganizationMemberable interface { + DirectoryObjectable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAddedByTenantId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetAddedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetDisplayName()(*string) + GetJoinedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetRole()(*MultiTenantOrganizationMemberRole) + GetState()(*MultiTenantOrganizationMemberState) + GetTenantId()(*string) + GetTransitionDetails()(MultiTenantOrganizationMemberTransitionDetailsable) + SetAddedByTenantId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetAddedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetDisplayName(value *string)() + SetJoinedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetRole(value *MultiTenantOrganizationMemberRole)() + SetState(value *MultiTenantOrganizationMemberState)() + SetTenantId(value *string)() + SetTransitionDetails(value MultiTenantOrganizationMemberTransitionDetailsable)() +} diff --git a/models/multi_tenant_organization_member_collection_response.go b/models/multi_tenant_organization_member_collection_response.go new file mode 100644 index 00000000000..0d2fcd016ed --- /dev/null +++ b/models/multi_tenant_organization_member_collection_response.go @@ -0,0 +1,87 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MultiTenantOrganizationMemberCollectionResponse +type MultiTenantOrganizationMemberCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewMultiTenantOrganizationMemberCollectionResponse instantiates a new multiTenantOrganizationMemberCollectionResponse and sets the default values. +func NewMultiTenantOrganizationMemberCollectionResponse()(*MultiTenantOrganizationMemberCollectionResponse) { + m := &MultiTenantOrganizationMemberCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateMultiTenantOrganizationMemberCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateMultiTenantOrganizationMemberCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMultiTenantOrganizationMemberCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *MultiTenantOrganizationMemberCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateMultiTenantOrganizationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]MultiTenantOrganizationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(MultiTenantOrganizationMemberable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *MultiTenantOrganizationMemberCollectionResponse) GetValue()([]MultiTenantOrganizationMemberable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]MultiTenantOrganizationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *MultiTenantOrganizationMemberCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *MultiTenantOrganizationMemberCollectionResponse) SetValue(value []MultiTenantOrganizationMemberable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// MultiTenantOrganizationMemberCollectionResponseable +type MultiTenantOrganizationMemberCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]MultiTenantOrganizationMemberable) + SetValue(value []MultiTenantOrganizationMemberable)() +} diff --git a/models/multi_tenant_organization_member_processing_status.go b/models/multi_tenant_organization_member_processing_status.go new file mode 100644 index 00000000000..6844cd0c938 --- /dev/null +++ b/models/multi_tenant_organization_member_processing_status.go @@ -0,0 +1,43 @@ +package models +import ( + "errors" +) +// +type MultiTenantOrganizationMemberProcessingStatus int + +const ( + NOTSTARTED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS MultiTenantOrganizationMemberProcessingStatus = iota + RUNNING_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS + SUCCEEDED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS + FAILED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS + UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS +) + +func (i MultiTenantOrganizationMemberProcessingStatus) String() string { + return []string{"notStarted", "running", "succeeded", "failed", "unknownFutureValue"}[i] +} +func ParseMultiTenantOrganizationMemberProcessingStatus(v string) (any, error) { + result := NOTSTARTED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS + switch v { + case "notStarted": + result = NOTSTARTED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS + case "running": + result = RUNNING_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS + case "succeeded": + result = SUCCEEDED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS + case "failed": + result = FAILED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS + default: + return 0, errors.New("Unknown MultiTenantOrganizationMemberProcessingStatus value: " + v) + } + return &result, nil +} +func SerializeMultiTenantOrganizationMemberProcessingStatus(values []MultiTenantOrganizationMemberProcessingStatus) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/multi_tenant_organization_member_role.go b/models/multi_tenant_organization_member_role.go new file mode 100644 index 00000000000..bb555ca467b --- /dev/null +++ b/models/multi_tenant_organization_member_role.go @@ -0,0 +1,37 @@ +package models +import ( + "errors" +) +// +type MultiTenantOrganizationMemberRole int + +const ( + OWNER_MULTITENANTORGANIZATIONMEMBERROLE MultiTenantOrganizationMemberRole = iota + MEMBER_MULTITENANTORGANIZATIONMEMBERROLE + UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERROLE +) + +func (i MultiTenantOrganizationMemberRole) String() string { + return []string{"owner", "member", "unknownFutureValue"}[i] +} +func ParseMultiTenantOrganizationMemberRole(v string) (any, error) { + result := OWNER_MULTITENANTORGANIZATIONMEMBERROLE + switch v { + case "owner": + result = OWNER_MULTITENANTORGANIZATIONMEMBERROLE + case "member": + result = MEMBER_MULTITENANTORGANIZATIONMEMBERROLE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERROLE + default: + return 0, errors.New("Unknown MultiTenantOrganizationMemberRole value: " + v) + } + return &result, nil +} +func SerializeMultiTenantOrganizationMemberRole(values []MultiTenantOrganizationMemberRole) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/multi_tenant_organization_member_state.go b/models/multi_tenant_organization_member_state.go new file mode 100644 index 00000000000..aa6f8613ac2 --- /dev/null +++ b/models/multi_tenant_organization_member_state.go @@ -0,0 +1,40 @@ +package models +import ( + "errors" +) +// +type MultiTenantOrganizationMemberState int + +const ( + PENDING_MULTITENANTORGANIZATIONMEMBERSTATE MultiTenantOrganizationMemberState = iota + ACTIVE_MULTITENANTORGANIZATIONMEMBERSTATE + REMOVED_MULTITENANTORGANIZATIONMEMBERSTATE + UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERSTATE +) + +func (i MultiTenantOrganizationMemberState) String() string { + return []string{"pending", "active", "removed", "unknownFutureValue"}[i] +} +func ParseMultiTenantOrganizationMemberState(v string) (any, error) { + result := PENDING_MULTITENANTORGANIZATIONMEMBERSTATE + switch v { + case "pending": + result = PENDING_MULTITENANTORGANIZATIONMEMBERSTATE + case "active": + result = ACTIVE_MULTITENANTORGANIZATIONMEMBERSTATE + case "removed": + result = REMOVED_MULTITENANTORGANIZATIONMEMBERSTATE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERSTATE + default: + return 0, errors.New("Unknown MultiTenantOrganizationMemberState value: " + v) + } + return &result, nil +} +func SerializeMultiTenantOrganizationMemberState(values []MultiTenantOrganizationMemberState) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/multi_tenant_organization_member_transition_details.go b/models/multi_tenant_organization_member_transition_details.go new file mode 100644 index 00000000000..18e5fb34ba5 --- /dev/null +++ b/models/multi_tenant_organization_member_transition_details.go @@ -0,0 +1,257 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// MultiTenantOrganizationMemberTransitionDetails +type MultiTenantOrganizationMemberTransitionDetails struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewMultiTenantOrganizationMemberTransitionDetails instantiates a new multiTenantOrganizationMemberTransitionDetails and sets the default values. +func NewMultiTenantOrganizationMemberTransitionDetails()(*MultiTenantOrganizationMemberTransitionDetails) { + m := &MultiTenantOrganizationMemberTransitionDetails{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateMultiTenantOrganizationMemberTransitionDetailsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateMultiTenantOrganizationMemberTransitionDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMultiTenantOrganizationMemberTransitionDetails(), 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 *MultiTenantOrganizationMemberTransitionDetails) 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 *MultiTenantOrganizationMemberTransitionDetails) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDesiredRole gets the desiredRole property value. The desiredRole property +func (m *MultiTenantOrganizationMemberTransitionDetails) GetDesiredRole()(*MultiTenantOrganizationMemberRole) { + val, err := m.GetBackingStore().Get("desiredRole") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MultiTenantOrganizationMemberRole) + } + return nil +} +// GetDesiredState gets the desiredState property value. The desiredState property +func (m *MultiTenantOrganizationMemberTransitionDetails) GetDesiredState()(*MultiTenantOrganizationMemberState) { + val, err := m.GetBackingStore().Get("desiredState") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MultiTenantOrganizationMemberState) + } + return nil +} +// GetDetails gets the details property value. The details property +func (m *MultiTenantOrganizationMemberTransitionDetails) GetDetails()(*string) { + val, err := m.GetBackingStore().Get("details") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *MultiTenantOrganizationMemberTransitionDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["desiredRole"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberRole) + if err != nil { + return err + } + if val != nil { + m.SetDesiredRole(val.(*MultiTenantOrganizationMemberRole)) + } + return nil + } + res["desiredState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberState) + if err != nil { + return err + } + if val != nil { + m.SetDesiredState(val.(*MultiTenantOrganizationMemberState)) + } + return nil + } + res["details"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDetails(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["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberProcessingStatus) + if err != nil { + return err + } + if val != nil { + m.SetStatus(val.(*MultiTenantOrganizationMemberProcessingStatus)) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MultiTenantOrganizationMemberTransitionDetails) 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 *MultiTenantOrganizationMemberTransitionDetails) GetStatus()(*MultiTenantOrganizationMemberProcessingStatus) { + val, err := m.GetBackingStore().Get("status") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MultiTenantOrganizationMemberProcessingStatus) + } + return nil +} +// Serialize serializes information the current object +func (m *MultiTenantOrganizationMemberTransitionDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetDesiredRole() != nil { + cast := (*m.GetDesiredRole()).String() + err := writer.WriteStringValue("desiredRole", &cast) + if err != nil { + return err + } + } + if m.GetDesiredState() != nil { + cast := (*m.GetDesiredState()).String() + err := writer.WriteStringValue("desiredState", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("details", m.GetDetails()) + if err != nil { + 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) + 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 *MultiTenantOrganizationMemberTransitionDetails) 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 *MultiTenantOrganizationMemberTransitionDetails) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDesiredRole sets the desiredRole property value. The desiredRole property +func (m *MultiTenantOrganizationMemberTransitionDetails) SetDesiredRole(value *MultiTenantOrganizationMemberRole)() { + err := m.GetBackingStore().Set("desiredRole", value) + if err != nil { + panic(err) + } +} +// SetDesiredState sets the desiredState property value. The desiredState property +func (m *MultiTenantOrganizationMemberTransitionDetails) SetDesiredState(value *MultiTenantOrganizationMemberState)() { + err := m.GetBackingStore().Set("desiredState", value) + if err != nil { + panic(err) + } +} +// SetDetails sets the details property value. The details property +func (m *MultiTenantOrganizationMemberTransitionDetails) SetDetails(value *string)() { + err := m.GetBackingStore().Set("details", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MultiTenantOrganizationMemberTransitionDetails) 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 *MultiTenantOrganizationMemberTransitionDetails) SetStatus(value *MultiTenantOrganizationMemberProcessingStatus)() { + err := m.GetBackingStore().Set("status", value) + if err != nil { + panic(err) + } +} +// MultiTenantOrganizationMemberTransitionDetailsable +type MultiTenantOrganizationMemberTransitionDetailsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDesiredRole()(*MultiTenantOrganizationMemberRole) + GetDesiredState()(*MultiTenantOrganizationMemberState) + GetDetails()(*string) + GetOdataType()(*string) + GetStatus()(*MultiTenantOrganizationMemberProcessingStatus) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDesiredRole(value *MultiTenantOrganizationMemberRole)() + SetDesiredState(value *MultiTenantOrganizationMemberState)() + SetDetails(value *string)() + SetOdataType(value *string)() + SetStatus(value *MultiTenantOrganizationMemberProcessingStatus)() +} diff --git a/models/multi_tenant_organization_partner_configuration_template.go b/models/multi_tenant_organization_partner_configuration_template.go new file mode 100644 index 00000000000..a64825df760 --- /dev/null +++ b/models/multi_tenant_organization_partner_configuration_template.go @@ -0,0 +1,292 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MultiTenantOrganizationPartnerConfigurationTemplate +type MultiTenantOrganizationPartnerConfigurationTemplate struct { + Entity +} +// NewMultiTenantOrganizationPartnerConfigurationTemplate instantiates a new multiTenantOrganizationPartnerConfigurationTemplate and sets the default values. +func NewMultiTenantOrganizationPartnerConfigurationTemplate()(*MultiTenantOrganizationPartnerConfigurationTemplate) { + m := &MultiTenantOrganizationPartnerConfigurationTemplate{ + Entity: *NewEntity(), + } + return m +} +// CreateMultiTenantOrganizationPartnerConfigurationTemplateFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateMultiTenantOrganizationPartnerConfigurationTemplateFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMultiTenantOrganizationPartnerConfigurationTemplate(), nil +} +// GetAutomaticUserConsentSettings gets the automaticUserConsentSettings property value. The automaticUserConsentSettings property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) GetAutomaticUserConsentSettings()(InboundOutboundPolicyConfigurationable) { + val, err := m.GetBackingStore().Get("automaticUserConsentSettings") + if err != nil { + panic(err) + } + if val != nil { + return val.(InboundOutboundPolicyConfigurationable) + } + return nil +} +// GetB2bCollaborationInbound gets the b2bCollaborationInbound property value. The b2bCollaborationInbound property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) GetB2bCollaborationInbound()(CrossTenantAccessPolicyB2BSettingable) { + val, err := m.GetBackingStore().Get("b2bCollaborationInbound") + if err != nil { + panic(err) + } + if val != nil { + return val.(CrossTenantAccessPolicyB2BSettingable) + } + return nil +} +// GetB2bCollaborationOutbound gets the b2bCollaborationOutbound property value. The b2bCollaborationOutbound property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) GetB2bCollaborationOutbound()(CrossTenantAccessPolicyB2BSettingable) { + val, err := m.GetBackingStore().Get("b2bCollaborationOutbound") + if err != nil { + panic(err) + } + if val != nil { + return val.(CrossTenantAccessPolicyB2BSettingable) + } + return nil +} +// GetB2bDirectConnectInbound gets the b2bDirectConnectInbound property value. The b2bDirectConnectInbound property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) GetB2bDirectConnectInbound()(CrossTenantAccessPolicyB2BSettingable) { + val, err := m.GetBackingStore().Get("b2bDirectConnectInbound") + if err != nil { + panic(err) + } + if val != nil { + return val.(CrossTenantAccessPolicyB2BSettingable) + } + return nil +} +// GetB2bDirectConnectOutbound gets the b2bDirectConnectOutbound property value. The b2bDirectConnectOutbound property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) GetB2bDirectConnectOutbound()(CrossTenantAccessPolicyB2BSettingable) { + val, err := m.GetBackingStore().Get("b2bDirectConnectOutbound") + if err != nil { + panic(err) + } + if val != nil { + return val.(CrossTenantAccessPolicyB2BSettingable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["automaticUserConsentSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateInboundOutboundPolicyConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAutomaticUserConsentSettings(val.(InboundOutboundPolicyConfigurationable)) + } + return nil + } + res["b2bCollaborationInbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetB2bCollaborationInbound(val.(CrossTenantAccessPolicyB2BSettingable)) + } + return nil + } + res["b2bCollaborationOutbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetB2bCollaborationOutbound(val.(CrossTenantAccessPolicyB2BSettingable)) + } + return nil + } + res["b2bDirectConnectInbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetB2bDirectConnectInbound(val.(CrossTenantAccessPolicyB2BSettingable)) + } + return nil + } + res["b2bDirectConnectOutbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetB2bDirectConnectOutbound(val.(CrossTenantAccessPolicyB2BSettingable)) + } + return nil + } + res["inboundTrust"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyInboundTrustFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetInboundTrust(val.(CrossTenantAccessPolicyInboundTrustable)) + } + return nil + } + res["templateApplicationLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseTemplateApplicationLevel) + if err != nil { + return err + } + if val != nil { + m.SetTemplateApplicationLevel(val.(*TemplateApplicationLevel)) + } + return nil + } + return res +} +// GetInboundTrust gets the inboundTrust property value. The inboundTrust property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) GetInboundTrust()(CrossTenantAccessPolicyInboundTrustable) { + val, err := m.GetBackingStore().Get("inboundTrust") + if err != nil { + panic(err) + } + if val != nil { + return val.(CrossTenantAccessPolicyInboundTrustable) + } + return nil +} +// GetTemplateApplicationLevel gets the templateApplicationLevel property value. The templateApplicationLevel property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) GetTemplateApplicationLevel()(*TemplateApplicationLevel) { + val, err := m.GetBackingStore().Get("templateApplicationLevel") + if err != nil { + panic(err) + } + if val != nil { + return val.(*TemplateApplicationLevel) + } + return nil +} +// Serialize serializes information the current object +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("automaticUserConsentSettings", m.GetAutomaticUserConsentSettings()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("b2bCollaborationInbound", m.GetB2bCollaborationInbound()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("b2bCollaborationOutbound", m.GetB2bCollaborationOutbound()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("b2bDirectConnectInbound", m.GetB2bDirectConnectInbound()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("b2bDirectConnectOutbound", m.GetB2bDirectConnectOutbound()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("inboundTrust", m.GetInboundTrust()) + if err != nil { + return err + } + } + if m.GetTemplateApplicationLevel() != nil { + cast := (*m.GetTemplateApplicationLevel()).String() + err = writer.WriteStringValue("templateApplicationLevel", &cast) + if err != nil { + return err + } + } + return nil +} +// SetAutomaticUserConsentSettings sets the automaticUserConsentSettings property value. The automaticUserConsentSettings property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) SetAutomaticUserConsentSettings(value InboundOutboundPolicyConfigurationable)() { + err := m.GetBackingStore().Set("automaticUserConsentSettings", value) + if err != nil { + panic(err) + } +} +// SetB2bCollaborationInbound sets the b2bCollaborationInbound property value. The b2bCollaborationInbound property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) SetB2bCollaborationInbound(value CrossTenantAccessPolicyB2BSettingable)() { + err := m.GetBackingStore().Set("b2bCollaborationInbound", value) + if err != nil { + panic(err) + } +} +// SetB2bCollaborationOutbound sets the b2bCollaborationOutbound property value. The b2bCollaborationOutbound property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) SetB2bCollaborationOutbound(value CrossTenantAccessPolicyB2BSettingable)() { + err := m.GetBackingStore().Set("b2bCollaborationOutbound", value) + if err != nil { + panic(err) + } +} +// SetB2bDirectConnectInbound sets the b2bDirectConnectInbound property value. The b2bDirectConnectInbound property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) SetB2bDirectConnectInbound(value CrossTenantAccessPolicyB2BSettingable)() { + err := m.GetBackingStore().Set("b2bDirectConnectInbound", value) + if err != nil { + panic(err) + } +} +// SetB2bDirectConnectOutbound sets the b2bDirectConnectOutbound property value. The b2bDirectConnectOutbound property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) SetB2bDirectConnectOutbound(value CrossTenantAccessPolicyB2BSettingable)() { + err := m.GetBackingStore().Set("b2bDirectConnectOutbound", value) + if err != nil { + panic(err) + } +} +// SetInboundTrust sets the inboundTrust property value. The inboundTrust property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) SetInboundTrust(value CrossTenantAccessPolicyInboundTrustable)() { + err := m.GetBackingStore().Set("inboundTrust", value) + if err != nil { + panic(err) + } +} +// SetTemplateApplicationLevel sets the templateApplicationLevel property value. The templateApplicationLevel property +func (m *MultiTenantOrganizationPartnerConfigurationTemplate) SetTemplateApplicationLevel(value *TemplateApplicationLevel)() { + err := m.GetBackingStore().Set("templateApplicationLevel", value) + if err != nil { + panic(err) + } +} +// MultiTenantOrganizationPartnerConfigurationTemplateable +type MultiTenantOrganizationPartnerConfigurationTemplateable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAutomaticUserConsentSettings()(InboundOutboundPolicyConfigurationable) + GetB2bCollaborationInbound()(CrossTenantAccessPolicyB2BSettingable) + GetB2bCollaborationOutbound()(CrossTenantAccessPolicyB2BSettingable) + GetB2bDirectConnectInbound()(CrossTenantAccessPolicyB2BSettingable) + GetB2bDirectConnectOutbound()(CrossTenantAccessPolicyB2BSettingable) + GetInboundTrust()(CrossTenantAccessPolicyInboundTrustable) + GetTemplateApplicationLevel()(*TemplateApplicationLevel) + SetAutomaticUserConsentSettings(value InboundOutboundPolicyConfigurationable)() + SetB2bCollaborationInbound(value CrossTenantAccessPolicyB2BSettingable)() + SetB2bCollaborationOutbound(value CrossTenantAccessPolicyB2BSettingable)() + SetB2bDirectConnectInbound(value CrossTenantAccessPolicyB2BSettingable)() + SetB2bDirectConnectOutbound(value CrossTenantAccessPolicyB2BSettingable)() + SetInboundTrust(value CrossTenantAccessPolicyInboundTrustable)() + SetTemplateApplicationLevel(value *TemplateApplicationLevel)() +} diff --git a/models/multi_tenant_organization_state.go b/models/multi_tenant_organization_state.go new file mode 100644 index 00000000000..b265a29f77e --- /dev/null +++ b/models/multi_tenant_organization_state.go @@ -0,0 +1,37 @@ +package models +import ( + "errors" +) +// +type MultiTenantOrganizationState int + +const ( + ACTIVE_MULTITENANTORGANIZATIONSTATE MultiTenantOrganizationState = iota + INACTIVE_MULTITENANTORGANIZATIONSTATE + UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONSTATE +) + +func (i MultiTenantOrganizationState) String() string { + return []string{"active", "inactive", "unknownFutureValue"}[i] +} +func ParseMultiTenantOrganizationState(v string) (any, error) { + result := ACTIVE_MULTITENANTORGANIZATIONSTATE + switch v { + case "active": + result = ACTIVE_MULTITENANTORGANIZATIONSTATE + case "inactive": + result = INACTIVE_MULTITENANTORGANIZATIONSTATE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONSTATE + default: + return 0, errors.New("Unknown MultiTenantOrganizationState value: " + v) + } + return &result, nil +} +func SerializeMultiTenantOrganizationState(values []MultiTenantOrganizationState) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/networkaccess/branch_connectivity_configuration.go b/models/networkaccess/branch_connectivity_configuration.go new file mode 100644 index 00000000000..38f707b03ba --- /dev/null +++ b/models/networkaccess/branch_connectivity_configuration.go @@ -0,0 +1,230 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// BranchConnectivityConfiguration +type BranchConnectivityConfiguration struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewBranchConnectivityConfiguration instantiates a new branchConnectivityConfiguration and sets the default values. +func NewBranchConnectivityConfiguration()(*BranchConnectivityConfiguration) { + m := &BranchConnectivityConfiguration{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateBranchConnectivityConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateBranchConnectivityConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewBranchConnectivityConfiguration(), 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 *BranchConnectivityConfiguration) 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 *BranchConnectivityConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBranchId gets the branchId property value. The branchId property +func (m *BranchConnectivityConfiguration) GetBranchId()(*string) { + val, err := m.GetBackingStore().Get("branchId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetBranchName gets the branchName property value. The branchName property +func (m *BranchConnectivityConfiguration) GetBranchName()(*string) { + val, err := m.GetBackingStore().Get("branchName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *BranchConnectivityConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["branchId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBranchId(val) + } + return nil + } + res["branchName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBranchName(val) + } + return nil + } + res["links"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateConnectivityConfigurationLinkFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ConnectivityConfigurationLinkable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ConnectivityConfigurationLinkable) + } + } + m.SetLinks(res) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetLinks gets the links property value. The links property +func (m *BranchConnectivityConfiguration) GetLinks()([]ConnectivityConfigurationLinkable) { + val, err := m.GetBackingStore().Get("links") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ConnectivityConfigurationLinkable) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *BranchConnectivityConfiguration) 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 *BranchConnectivityConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("branchId", m.GetBranchId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("branchName", m.GetBranchName()) + if err != nil { + return err + } + } + if m.GetLinks() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetLinks())) + for i, v := range m.GetLinks() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("links", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *BranchConnectivityConfiguration) 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 *BranchConnectivityConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBranchId sets the branchId property value. The branchId property +func (m *BranchConnectivityConfiguration) SetBranchId(value *string)() { + err := m.GetBackingStore().Set("branchId", value) + if err != nil { + panic(err) + } +} +// SetBranchName sets the branchName property value. The branchName property +func (m *BranchConnectivityConfiguration) SetBranchName(value *string)() { + err := m.GetBackingStore().Set("branchName", value) + if err != nil { + panic(err) + } +} +// SetLinks sets the links property value. The links property +func (m *BranchConnectivityConfiguration) SetLinks(value []ConnectivityConfigurationLinkable)() { + err := m.GetBackingStore().Set("links", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *BranchConnectivityConfiguration) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// BranchConnectivityConfigurationable +type BranchConnectivityConfigurationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBranchId()(*string) + GetBranchName()(*string) + GetLinks()([]ConnectivityConfigurationLinkable) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBranchId(value *string)() + SetBranchName(value *string)() + SetLinks(value []ConnectivityConfigurationLinkable)() + SetOdataType(value *string)() +} diff --git a/models/networkaccess/branch_site.go b/models/networkaccess/branch_site.go index d1f3b150a78..5f038b43589 100644 --- a/models/networkaccess/branch_site.go +++ b/models/networkaccess/branch_site.go @@ -32,6 +32,17 @@ func (m *BranchSite) GetBandwidthCapacity()(*int64) { } return nil } +// GetConnectivityConfiguration gets the connectivityConfiguration property value. The connectivityConfiguration property +func (m *BranchSite) GetConnectivityConfiguration()(BranchConnectivityConfigurationable) { + val, err := m.GetBackingStore().Get("connectivityConfiguration") + if err != nil { + panic(err) + } + if val != nil { + return val.(BranchConnectivityConfigurationable) + } + return nil +} // GetConnectivityState gets the connectivityState property value. Determines the branch site status. The possible values are: pending, connected, inactive, error. func (m *BranchSite) GetConnectivityState()(*ConnectivityState) { val, err := m.GetBackingStore().Get("connectivityState") @@ -78,6 +89,16 @@ func (m *BranchSite) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } return nil } + res["connectivityConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateBranchConnectivityConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetConnectivityConfiguration(val.(BranchConnectivityConfigurationable)) + } + return nil + } res["connectivityState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseConnectivityState) if err != nil { @@ -239,6 +260,12 @@ func (m *BranchSite) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c return err } } + { + err = writer.WriteObjectValue("connectivityConfiguration", m.GetConnectivityConfiguration()) + if err != nil { + return err + } + } if m.GetConnectivityState() != nil { cast := (*m.GetConnectivityState()).String() err = writer.WriteStringValue("connectivityState", &cast) @@ -310,6 +337,13 @@ func (m *BranchSite) SetBandwidthCapacity(value *int64)() { panic(err) } } +// SetConnectivityConfiguration sets the connectivityConfiguration property value. The connectivityConfiguration property +func (m *BranchSite) SetConnectivityConfiguration(value BranchConnectivityConfigurationable)() { + err := m.GetBackingStore().Set("connectivityConfiguration", value) + if err != nil { + panic(err) + } +} // 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) @@ -371,6 +405,7 @@ type BranchSiteable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBandwidthCapacity()(*int64) + GetConnectivityConfiguration()(BranchConnectivityConfigurationable) GetConnectivityState()(*ConnectivityState) GetCountry()(*string) GetDeviceLinks()([]DeviceLinkable) @@ -380,6 +415,7 @@ type BranchSiteable interface { GetRegion()(*Region) GetVersion()(*string) SetBandwidthCapacity(value *int64)() + SetConnectivityConfiguration(value BranchConnectivityConfigurationable)() SetConnectivityState(value *ConnectivityState)() SetCountry(value *string)() SetDeviceLinks(value []DeviceLinkable)() diff --git a/models/networkaccess/connectivity_configuration_link.go b/models/networkaccess/connectivity_configuration_link.go new file mode 100644 index 00000000000..d473a096a3d --- /dev/null +++ b/models/networkaccess/connectivity_configuration_link.go @@ -0,0 +1,160 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// ConnectivityConfigurationLink +type ConnectivityConfigurationLink struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity +} +// NewConnectivityConfigurationLink instantiates a new connectivityConfigurationLink and sets the default values. +func NewConnectivityConfigurationLink()(*ConnectivityConfigurationLink) { + m := &ConnectivityConfigurationLink{ + Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), + } + return m +} +// CreateConnectivityConfigurationLinkFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateConnectivityConfigurationLinkFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewConnectivityConfigurationLink(), nil +} +// GetDisplayName gets the displayName property value. The displayName property +func (m *ConnectivityConfigurationLink) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ConnectivityConfigurationLink) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["localConfigurations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateLocalConnectivityConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]LocalConnectivityConfigurationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(LocalConnectivityConfigurationable) + } + } + m.SetLocalConfigurations(res) + } + return nil + } + res["peerConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePeerConnectivityConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPeerConfiguration(val.(PeerConnectivityConfigurationable)) + } + return nil + } + return res +} +// GetLocalConfigurations gets the localConfigurations property value. The localConfigurations property +func (m *ConnectivityConfigurationLink) GetLocalConfigurations()([]LocalConnectivityConfigurationable) { + val, err := m.GetBackingStore().Get("localConfigurations") + if err != nil { + panic(err) + } + if val != nil { + return val.([]LocalConnectivityConfigurationable) + } + return nil +} +// GetPeerConfiguration gets the peerConfiguration property value. The peerConfiguration property +func (m *ConnectivityConfigurationLink) GetPeerConfiguration()(PeerConnectivityConfigurationable) { + val, err := m.GetBackingStore().Get("peerConfiguration") + if err != nil { + panic(err) + } + if val != nil { + return val.(PeerConnectivityConfigurationable) + } + return nil +} +// Serialize serializes information the current object +func (m *ConnectivityConfigurationLink) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + if m.GetLocalConfigurations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetLocalConfigurations())) + for i, v := range m.GetLocalConfigurations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("localConfigurations", cast) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("peerConfiguration", m.GetPeerConfiguration()) + if err != nil { + return err + } + } + return nil +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *ConnectivityConfigurationLink) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetLocalConfigurations sets the localConfigurations property value. The localConfigurations property +func (m *ConnectivityConfigurationLink) SetLocalConfigurations(value []LocalConnectivityConfigurationable)() { + err := m.GetBackingStore().Set("localConfigurations", value) + if err != nil { + panic(err) + } +} +// SetPeerConfiguration sets the peerConfiguration property value. The peerConfiguration property +func (m *ConnectivityConfigurationLink) SetPeerConfiguration(value PeerConnectivityConfigurationable)() { + err := m.GetBackingStore().Set("peerConfiguration", value) + if err != nil { + panic(err) + } +} +// ConnectivityConfigurationLinkable +type ConnectivityConfigurationLinkable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDisplayName()(*string) + GetLocalConfigurations()([]LocalConnectivityConfigurationable) + GetPeerConfiguration()(PeerConnectivityConfigurationable) + SetDisplayName(value *string)() + SetLocalConfigurations(value []LocalConnectivityConfigurationable)() + SetPeerConfiguration(value PeerConnectivityConfigurationable)() +} diff --git a/models/networkaccess/connectivity_configuration_link_collection_response.go b/models/networkaccess/connectivity_configuration_link_collection_response.go new file mode 100644 index 00000000000..10497489a76 --- /dev/null +++ b/models/networkaccess/connectivity_configuration_link_collection_response.go @@ -0,0 +1,88 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// ConnectivityConfigurationLinkCollectionResponse +type ConnectivityConfigurationLinkCollectionResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewConnectivityConfigurationLinkCollectionResponse instantiates a new connectivityConfigurationLinkCollectionResponse and sets the default values. +func NewConnectivityConfigurationLinkCollectionResponse()(*ConnectivityConfigurationLinkCollectionResponse) { + m := &ConnectivityConfigurationLinkCollectionResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateConnectivityConfigurationLinkCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateConnectivityConfigurationLinkCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewConnectivityConfigurationLinkCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ConnectivityConfigurationLinkCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateConnectivityConfigurationLinkFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ConnectivityConfigurationLinkable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ConnectivityConfigurationLinkable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ConnectivityConfigurationLinkCollectionResponse) GetValue()([]ConnectivityConfigurationLinkable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ConnectivityConfigurationLinkable) + } + return nil +} +// Serialize serializes information the current object +func (m *ConnectivityConfigurationLinkCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ConnectivityConfigurationLinkCollectionResponse) SetValue(value []ConnectivityConfigurationLinkable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ConnectivityConfigurationLinkCollectionResponseable +type ConnectivityConfigurationLinkCollectionResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ConnectivityConfigurationLinkable) + SetValue(value []ConnectivityConfigurationLinkable)() +} diff --git a/models/networkaccess/local_connectivity_configuration.go b/models/networkaccess/local_connectivity_configuration.go new file mode 100644 index 00000000000..e8afd6c4f44 --- /dev/null +++ b/models/networkaccess/local_connectivity_configuration.go @@ -0,0 +1,255 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// LocalConnectivityConfiguration +type LocalConnectivityConfiguration struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewLocalConnectivityConfiguration instantiates a new localConnectivityConfiguration and sets the default values. +func NewLocalConnectivityConfiguration()(*LocalConnectivityConfiguration) { + m := &LocalConnectivityConfiguration{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateLocalConnectivityConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateLocalConnectivityConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewLocalConnectivityConfiguration(), 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 *LocalConnectivityConfiguration) 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) +} +// GetAsn gets the asn property value. The asn property +func (m *LocalConnectivityConfiguration) GetAsn()(*int32) { + val, err := m.GetBackingStore().Get("asn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetBackingStore gets the backingStore property value. Stores model information. +func (m *LocalConnectivityConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBgpAddress gets the bgpAddress property value. The bgpAddress property +func (m *LocalConnectivityConfiguration) GetBgpAddress()(*string) { + val, err := m.GetBackingStore().Get("bgpAddress") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetEndpoint gets the endpoint property value. The endpoint property +func (m *LocalConnectivityConfiguration) GetEndpoint()(*string) { + val, err := m.GetBackingStore().Get("endpoint") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *LocalConnectivityConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["asn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetAsn(val) + } + return nil + } + res["bgpAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBgpAddress(val) + } + return nil + } + res["endpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEndpoint(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["region"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRegion) + if err != nil { + return err + } + if val != nil { + m.SetRegion(val.(*Region)) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *LocalConnectivityConfiguration) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRegion gets the region property value. The region property +func (m *LocalConnectivityConfiguration) GetRegion()(*Region) { + val, err := m.GetBackingStore().Get("region") + if err != nil { + panic(err) + } + if val != nil { + return val.(*Region) + } + return nil +} +// Serialize serializes information the current object +func (m *LocalConnectivityConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("asn", m.GetAsn()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("bgpAddress", m.GetBgpAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("endpoint", m.GetEndpoint()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetRegion() != nil { + cast := (*m.GetRegion()).String() + err := writer.WriteStringValue("region", &cast) + 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 *LocalConnectivityConfiguration) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAsn sets the asn property value. The asn property +func (m *LocalConnectivityConfiguration) SetAsn(value *int32)() { + err := m.GetBackingStore().Set("asn", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the backingStore property value. Stores model information. +func (m *LocalConnectivityConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBgpAddress sets the bgpAddress property value. The bgpAddress property +func (m *LocalConnectivityConfiguration) SetBgpAddress(value *string)() { + err := m.GetBackingStore().Set("bgpAddress", value) + if err != nil { + panic(err) + } +} +// SetEndpoint sets the endpoint property value. The endpoint property +func (m *LocalConnectivityConfiguration) SetEndpoint(value *string)() { + err := m.GetBackingStore().Set("endpoint", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *LocalConnectivityConfiguration) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetRegion sets the region property value. The region property +func (m *LocalConnectivityConfiguration) SetRegion(value *Region)() { + err := m.GetBackingStore().Set("region", value) + if err != nil { + panic(err) + } +} +// LocalConnectivityConfigurationable +type LocalConnectivityConfigurationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAsn()(*int32) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBgpAddress()(*string) + GetEndpoint()(*string) + GetOdataType()(*string) + GetRegion()(*Region) + SetAsn(value *int32)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBgpAddress(value *string)() + SetEndpoint(value *string)() + SetOdataType(value *string)() + SetRegion(value *Region)() +} diff --git a/models/networkaccess/peer_connectivity_configuration.go b/models/networkaccess/peer_connectivity_configuration.go new file mode 100644 index 00000000000..3c94c2009c8 --- /dev/null +++ b/models/networkaccess/peer_connectivity_configuration.go @@ -0,0 +1,218 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// PeerConnectivityConfiguration +type PeerConnectivityConfiguration struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewPeerConnectivityConfiguration instantiates a new peerConnectivityConfiguration and sets the default values. +func NewPeerConnectivityConfiguration()(*PeerConnectivityConfiguration) { + m := &PeerConnectivityConfiguration{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreatePeerConnectivityConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePeerConnectivityConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPeerConnectivityConfiguration(), 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 *PeerConnectivityConfiguration) 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) +} +// GetAsn gets the asn property value. The asn property +func (m *PeerConnectivityConfiguration) GetAsn()(*int32) { + val, err := m.GetBackingStore().Get("asn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetBackingStore gets the backingStore property value. Stores model information. +func (m *PeerConnectivityConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBgpAddress gets the bgpAddress property value. The bgpAddress property +func (m *PeerConnectivityConfiguration) GetBgpAddress()(*string) { + val, err := m.GetBackingStore().Get("bgpAddress") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetEndpoint gets the endpoint property value. The endpoint property +func (m *PeerConnectivityConfiguration) GetEndpoint()(*string) { + val, err := m.GetBackingStore().Get("endpoint") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PeerConnectivityConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["asn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetAsn(val) + } + return nil + } + res["bgpAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBgpAddress(val) + } + return nil + } + res["endpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEndpoint(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PeerConnectivityConfiguration) 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 *PeerConnectivityConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("asn", m.GetAsn()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("bgpAddress", m.GetBgpAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("endpoint", m.GetEndpoint()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PeerConnectivityConfiguration) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAsn sets the asn property value. The asn property +func (m *PeerConnectivityConfiguration) SetAsn(value *int32)() { + err := m.GetBackingStore().Set("asn", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the backingStore property value. Stores model information. +func (m *PeerConnectivityConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBgpAddress sets the bgpAddress property value. The bgpAddress property +func (m *PeerConnectivityConfiguration) SetBgpAddress(value *string)() { + err := m.GetBackingStore().Set("bgpAddress", value) + if err != nil { + panic(err) + } +} +// SetEndpoint sets the endpoint property value. The endpoint property +func (m *PeerConnectivityConfiguration) SetEndpoint(value *string)() { + err := m.GetBackingStore().Set("endpoint", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PeerConnectivityConfiguration) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// PeerConnectivityConfigurationable +type PeerConnectivityConfigurationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAsn()(*int32) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBgpAddress()(*string) + GetEndpoint()(*string) + GetOdataType()(*string) + SetAsn(value *int32)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBgpAddress(value *string)() + SetEndpoint(value *string)() + SetOdataType(value *string)() +} diff --git a/models/on_premises_sip_info.go b/models/on_premises_sip_info.go new file mode 100644 index 00000000000..0b9d69d26e1 --- /dev/null +++ b/models/on_premises_sip_info.go @@ -0,0 +1,218 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// OnPremisesSipInfo +type OnPremisesSipInfo struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewOnPremisesSipInfo instantiates a new onPremisesSipInfo and sets the default values. +func NewOnPremisesSipInfo()(*OnPremisesSipInfo) { + m := &OnPremisesSipInfo{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateOnPremisesSipInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnPremisesSipInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnPremisesSipInfo(), 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 *OnPremisesSipInfo) 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 *OnPremisesSipInfo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnPremisesSipInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isSipEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsSipEnabled(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["sipDeploymentLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSipDeploymentLocation(val) + } + return nil + } + res["sipPrimaryAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSipPrimaryAddress(val) + } + return nil + } + return res +} +// GetIsSipEnabled gets the isSipEnabled property value. Indicates whether the user is currently enabled for on-premises Skype for Business. +func (m *OnPremisesSipInfo) GetIsSipEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isSipEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *OnPremisesSipInfo) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSipDeploymentLocation gets the sipDeploymentLocation property value. Indicates a fully qualified DNS name of the Microsoft Online Communications Server deployment. +func (m *OnPremisesSipInfo) GetSipDeploymentLocation()(*string) { + val, err := m.GetBackingStore().Get("sipDeploymentLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSipPrimaryAddress gets the sipPrimaryAddress property value. Serves as a unique identifier for each user on the on-premises Skype for Business. +func (m *OnPremisesSipInfo) GetSipPrimaryAddress()(*string) { + val, err := m.GetBackingStore().Get("sipPrimaryAddress") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *OnPremisesSipInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isSipEnabled", m.GetIsSipEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sipDeploymentLocation", m.GetSipDeploymentLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sipPrimaryAddress", m.GetSipPrimaryAddress()) + 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 *OnPremisesSipInfo) 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 *OnPremisesSipInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsSipEnabled sets the isSipEnabled property value. Indicates whether the user is currently enabled for on-premises Skype for Business. +func (m *OnPremisesSipInfo) SetIsSipEnabled(value *bool)() { + err := m.GetBackingStore().Set("isSipEnabled", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OnPremisesSipInfo) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetSipDeploymentLocation sets the sipDeploymentLocation property value. Indicates a fully qualified DNS name of the Microsoft Online Communications Server deployment. +func (m *OnPremisesSipInfo) SetSipDeploymentLocation(value *string)() { + err := m.GetBackingStore().Set("sipDeploymentLocation", value) + if err != nil { + panic(err) + } +} +// SetSipPrimaryAddress sets the sipPrimaryAddress property value. Serves as a unique identifier for each user on the on-premises Skype for Business. +func (m *OnPremisesSipInfo) SetSipPrimaryAddress(value *string)() { + err := m.GetBackingStore().Set("sipPrimaryAddress", value) + if err != nil { + panic(err) + } +} +// OnPremisesSipInfoable +type OnPremisesSipInfoable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsSipEnabled()(*bool) + GetOdataType()(*string) + GetSipDeploymentLocation()(*string) + GetSipPrimaryAddress()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsSipEnabled(value *bool)() + SetOdataType(value *string)() + SetSipDeploymentLocation(value *string)() + SetSipPrimaryAddress(value *string)() +} diff --git a/models/online_meeting.go b/models/online_meeting.go index 0259ae77390..1145917f274 100644 --- a/models/online_meeting.go +++ b/models/online_meeting.go @@ -225,6 +225,17 @@ func (m *OnlineMeeting) GetChatInfo()(ChatInfoable) { } return nil } +// GetChatRestrictions gets the chatRestrictions property value. The chatRestrictions property +func (m *OnlineMeeting) GetChatRestrictions()(ChatRestrictionsable) { + val, err := m.GetBackingStore().Get("chatRestrictions") + if err != nil { + panic(err) + } + if val != nil { + return val.(ChatRestrictionsable) + } + return nil +} // GetCreationDateTime gets the creationDateTime property value. The meeting creation time in UTC. Read-only. func (m *OnlineMeeting) GetCreationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("creationDateTime") @@ -449,6 +460,16 @@ func (m *OnlineMeeting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["chatRestrictions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateChatRestrictionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetChatRestrictions(val.(ChatRestrictionsable)) + } + return nil + } res["creationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -671,16 +692,6 @@ func (m *OnlineMeeting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } - res["virtualAppointment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateVirtualAppointmentFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetVirtualAppointment(val.(VirtualAppointmentable)) - } - return nil - } res["watermarkProtection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateWatermarkProtectionValuesFromDiscriminatorValue) if err != nil { @@ -814,7 +825,7 @@ func (m *OnlineMeeting) GetRecording()([]byte) { } return nil } -// GetRecordings gets the recordings property value. The recordings property +// GetRecordings gets the recordings property value. The recordings of an online meeting. Read-only. func (m *OnlineMeeting) GetRecordings()([]CallRecordingable) { val, err := m.GetBackingStore().Get("recordings") if err != nil { @@ -891,17 +902,6 @@ func (m *OnlineMeeting) GetVideoTeleconferenceId()(*string) { } return nil } -// GetVirtualAppointment gets the virtualAppointment property value. The virtualAppointment property -func (m *OnlineMeeting) GetVirtualAppointment()(VirtualAppointmentable) { - val, err := m.GetBackingStore().Get("virtualAppointment") - if err != nil { - panic(err) - } - if val != nil { - return val.(VirtualAppointmentable) - } - return nil -} // GetWatermarkProtection gets the watermarkProtection property value. Specifies whether a watermark should be applied to a content type by the client application. func (m *OnlineMeeting) GetWatermarkProtection()(WatermarkProtectionValuesable) { val, err := m.GetBackingStore().Get("watermarkProtection") @@ -1029,6 +1029,12 @@ func (m *OnlineMeeting) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + { + err = writer.WriteObjectValue("chatRestrictions", m.GetChatRestrictions()) + if err != nil { + return err + } + } { err = writer.WriteTimeValue("creationDateTime", m.GetCreationDateTime()) if err != nil { @@ -1168,12 +1174,6 @@ func (m *OnlineMeeting) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } - { - err = writer.WriteObjectValue("virtualAppointment", m.GetVirtualAppointment()) - if err != nil { - return err - } - } { err = writer.WriteObjectValue("watermarkProtection", m.GetWatermarkProtection()) if err != nil { @@ -1301,6 +1301,13 @@ func (m *OnlineMeeting) SetChatInfo(value ChatInfoable)() { panic(err) } } +// SetChatRestrictions sets the chatRestrictions property value. The chatRestrictions property +func (m *OnlineMeeting) SetChatRestrictions(value ChatRestrictionsable)() { + err := m.GetBackingStore().Set("chatRestrictions", value) + if err != nil { + panic(err) + } +} // SetCreationDateTime sets the creationDateTime property value. The meeting creation time in UTC. Read-only. func (m *OnlineMeeting) SetCreationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("creationDateTime", value) @@ -1399,7 +1406,7 @@ func (m *OnlineMeeting) SetRecording(value []byte)() { panic(err) } } -// SetRecordings sets the recordings property value. The recordings property +// SetRecordings sets the recordings property value. The recordings of an online meeting. Read-only. func (m *OnlineMeeting) SetRecordings(value []CallRecordingable)() { err := m.GetBackingStore().Set("recordings", value) if err != nil { @@ -1448,13 +1455,6 @@ func (m *OnlineMeeting) SetVideoTeleconferenceId(value *string)() { panic(err) } } -// SetVirtualAppointment sets the virtualAppointment property value. The virtualAppointment property -func (m *OnlineMeeting) SetVirtualAppointment(value VirtualAppointmentable)() { - err := m.GetBackingStore().Set("virtualAppointment", value) - if err != nil { - panic(err) - } -} // SetWatermarkProtection sets the watermarkProtection property value. Specifies whether a watermark should be applied to a content type by the client application. func (m *OnlineMeeting) SetWatermarkProtection(value WatermarkProtectionValuesable)() { err := m.GetBackingStore().Set("watermarkProtection", value) @@ -1483,6 +1483,7 @@ type OnlineMeetingable interface { GetBroadcastSettings()(BroadcastMeetingSettingsable) GetCapabilities()([]MeetingCapabilities) GetChatInfo()(ChatInfoable) + GetChatRestrictions()(ChatRestrictionsable) GetCreationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetExternalId()(*string) @@ -1504,7 +1505,6 @@ type OnlineMeetingable interface { GetSubject()(*string) GetTranscripts()([]CallTranscriptable) GetVideoTeleconferenceId()(*string) - GetVirtualAppointment()(VirtualAppointmentable) GetWatermarkProtection()(WatermarkProtectionValuesable) SetAllowAttendeeToEnableCamera(value *bool)() SetAllowAttendeeToEnableMic(value *bool)() @@ -1523,6 +1523,7 @@ type OnlineMeetingable interface { SetBroadcastSettings(value BroadcastMeetingSettingsable)() SetCapabilities(value []MeetingCapabilities)() SetChatInfo(value ChatInfoable)() + SetChatRestrictions(value ChatRestrictionsable)() SetCreationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetExternalId(value *string)() @@ -1544,6 +1545,5 @@ type OnlineMeetingable interface { SetSubject(value *string)() SetTranscripts(value []CallTranscriptable)() SetVideoTeleconferenceId(value *string)() - SetVirtualAppointment(value VirtualAppointmentable)() SetWatermarkProtection(value WatermarkProtectionValuesable)() } diff --git a/models/organization_settings.go b/models/organization_settings.go index 5fa8bcbdff0..b5cfa85c30f 100644 --- a/models/organization_settings.go +++ b/models/organization_settings.go @@ -134,7 +134,7 @@ func (m *OrganizationSettings) GetPeopleInsights()(InsightsSettingsable) { } return nil } -// GetProfileCardProperties gets the profileCardProperties property value. Contains a collection of the properties an administrator has defined as visible on the Microsoft 365 profile card. Get organization settings returns the properties configured for profile cards for the organization. +// GetProfileCardProperties gets the profileCardProperties property value. The profileCardProperties property func (m *OrganizationSettings) GetProfileCardProperties()([]ProfileCardPropertyable) { val, err := m.GetBackingStore().Get("profileCardProperties") if err != nil { @@ -234,7 +234,7 @@ func (m *OrganizationSettings) SetPeopleInsights(value InsightsSettingsable)() { panic(err) } } -// SetProfileCardProperties sets the profileCardProperties property value. Contains a collection of the properties an administrator has defined as visible on the Microsoft 365 profile card. Get organization settings returns the properties configured for profile cards for the organization. +// SetProfileCardProperties sets the profileCardProperties property value. The profileCardProperties property func (m *OrganizationSettings) SetProfileCardProperties(value []ProfileCardPropertyable)() { err := m.GetBackingStore().Set("profileCardProperties", value) if err != nil { diff --git a/models/original_transfer_methods.go b/models/original_transfer_methods.go new file mode 100644 index 00000000000..7edfdf255cb --- /dev/null +++ b/models/original_transfer_methods.go @@ -0,0 +1,40 @@ +package models +import ( + "errors" +) +// +type OriginalTransferMethods int + +const ( + NONE_ORIGINALTRANSFERMETHODS OriginalTransferMethods = iota + DEVICECODEFLOW_ORIGINALTRANSFERMETHODS + AUTHENTICATIONTRANSFER_ORIGINALTRANSFERMETHODS + UNKNOWNFUTUREVALUE_ORIGINALTRANSFERMETHODS +) + +func (i OriginalTransferMethods) String() string { + return []string{"none", "deviceCodeFlow", "authenticationTransfer", "unknownFutureValue"}[i] +} +func ParseOriginalTransferMethods(v string) (any, error) { + result := NONE_ORIGINALTRANSFERMETHODS + switch v { + case "none": + result = NONE_ORIGINALTRANSFERMETHODS + case "deviceCodeFlow": + result = DEVICECODEFLOW_ORIGINALTRANSFERMETHODS + case "authenticationTransfer": + result = AUTHENTICATIONTRANSFER_ORIGINALTRANSFERMETHODS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_ORIGINALTRANSFERMETHODS + default: + return 0, errors.New("Unknown OriginalTransferMethods value: " + v) + } + return &result, nil +} +func SerializeOriginalTransferMethods(values []OriginalTransferMethods) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/package_escaped.go b/models/package_escaped.go index 94cebb77108..adc14d97326 100644 --- a/models/package_escaped.go +++ b/models/package_escaped.go @@ -132,15 +132,3 @@ func (m *PackageEscaped) SetTypeEscaped(value *string)() { panic(err) } } -// PackageEscapedable -type PackageEscapedable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetOdataType()(*string) - GetTypeEscaped()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetOdataType(value *string)() - SetTypeEscaped(value *string)() -} diff --git a/models/package_escapedable.go b/models/package_escapedable.go new file mode 100644 index 00000000000..fbe4c937a44 --- /dev/null +++ b/models/package_escapedable.go @@ -0,0 +1,19 @@ +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) + GetTypeEscaped()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/models/password_profile.go b/models/password_profile.go index 970badd4aee..6e6d9c6c3ae 100644 --- a/models/password_profile.go +++ b/models/password_profile.go @@ -116,7 +116,7 @@ func (m *PasswordProfile) GetOdataType()(*string) { } return nil } -// GetPassword gets the password property value. The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user’s passwordPolicies property. By default, a strong password is required. +// GetPassword gets the password property value. The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user's passwordPolicies property. By default, a strong password is required. func (m *PasswordProfile) GetPassword()(*string) { val, err := m.GetBackingStore().Get("password") if err != nil { @@ -193,7 +193,7 @@ func (m *PasswordProfile) SetOdataType(value *string)() { panic(err) } } -// SetPassword sets the password property value. The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user’s passwordPolicies property. By default, a strong password is required. +// SetPassword sets the password property value. The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user's passwordPolicies property. By default, a strong password is required. func (m *PasswordProfile) SetPassword(value *string)() { err := m.GetBackingStore().Set("password", value) if err != nil { diff --git a/models/people_admin_settings.go b/models/people_admin_settings.go index efd2f475031..0b298bc1aed 100644 --- a/models/people_admin_settings.go +++ b/models/people_admin_settings.go @@ -50,7 +50,7 @@ func (m *PeopleAdminSettings) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } -// GetProfileCardProperties gets the profileCardProperties property value. The profileCardProperties property +// GetProfileCardProperties gets the profileCardProperties property value. Contains a collection of the properties an administrator has defined as visible on the Microsoft 365 profile card. func (m *PeopleAdminSettings) GetProfileCardProperties()([]ProfileCardPropertyable) { val, err := m.GetBackingStore().Get("profileCardProperties") if err != nil { @@ -98,7 +98,7 @@ func (m *PeopleAdminSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } -// SetProfileCardProperties sets the profileCardProperties property value. The profileCardProperties property +// SetProfileCardProperties sets the profileCardProperties property value. Contains a collection of the properties an administrator has defined as visible on the Microsoft 365 profile card. func (m *PeopleAdminSettings) SetProfileCardProperties(value []ProfileCardPropertyable)() { err := m.GetBackingStore().Set("profileCardProperties", value) if err != nil { diff --git a/models/policy_template.go b/models/policy_template.go new file mode 100644 index 00000000000..506d8fa6ad4 --- /dev/null +++ b/models/policy_template.go @@ -0,0 +1,111 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// PolicyTemplate +type PolicyTemplate struct { + Entity +} +// NewPolicyTemplate instantiates a new policyTemplate and sets the default values. +func NewPolicyTemplate()(*PolicyTemplate) { + m := &PolicyTemplate{ + Entity: *NewEntity(), + } + return m +} +// CreatePolicyTemplateFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePolicyTemplateFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPolicyTemplate(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PolicyTemplate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["multiTenantOrganizationIdentitySynchronization"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateMultiTenantOrganizationIdentitySyncPolicyTemplateFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetMultiTenantOrganizationIdentitySynchronization(val.(MultiTenantOrganizationIdentitySyncPolicyTemplateable)) + } + return nil + } + res["multiTenantOrganizationPartnerConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateMultiTenantOrganizationPartnerConfigurationTemplateFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetMultiTenantOrganizationPartnerConfiguration(val.(MultiTenantOrganizationPartnerConfigurationTemplateable)) + } + return nil + } + return res +} +// GetMultiTenantOrganizationIdentitySynchronization gets the multiTenantOrganizationIdentitySynchronization property value. The multiTenantOrganizationIdentitySynchronization property +func (m *PolicyTemplate) GetMultiTenantOrganizationIdentitySynchronization()(MultiTenantOrganizationIdentitySyncPolicyTemplateable) { + val, err := m.GetBackingStore().Get("multiTenantOrganizationIdentitySynchronization") + if err != nil { + panic(err) + } + if val != nil { + return val.(MultiTenantOrganizationIdentitySyncPolicyTemplateable) + } + return nil +} +// GetMultiTenantOrganizationPartnerConfiguration gets the multiTenantOrganizationPartnerConfiguration property value. The multiTenantOrganizationPartnerConfiguration property +func (m *PolicyTemplate) GetMultiTenantOrganizationPartnerConfiguration()(MultiTenantOrganizationPartnerConfigurationTemplateable) { + val, err := m.GetBackingStore().Get("multiTenantOrganizationPartnerConfiguration") + if err != nil { + panic(err) + } + if val != nil { + return val.(MultiTenantOrganizationPartnerConfigurationTemplateable) + } + return nil +} +// Serialize serializes information the current object +func (m *PolicyTemplate) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("multiTenantOrganizationIdentitySynchronization", m.GetMultiTenantOrganizationIdentitySynchronization()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("multiTenantOrganizationPartnerConfiguration", m.GetMultiTenantOrganizationPartnerConfiguration()) + if err != nil { + return err + } + } + return nil +} +// SetMultiTenantOrganizationIdentitySynchronization sets the multiTenantOrganizationIdentitySynchronization property value. The multiTenantOrganizationIdentitySynchronization property +func (m *PolicyTemplate) SetMultiTenantOrganizationIdentitySynchronization(value MultiTenantOrganizationIdentitySyncPolicyTemplateable)() { + err := m.GetBackingStore().Set("multiTenantOrganizationIdentitySynchronization", value) + if err != nil { + panic(err) + } +} +// SetMultiTenantOrganizationPartnerConfiguration sets the multiTenantOrganizationPartnerConfiguration property value. The multiTenantOrganizationPartnerConfiguration property +func (m *PolicyTemplate) SetMultiTenantOrganizationPartnerConfiguration(value MultiTenantOrganizationPartnerConfigurationTemplateable)() { + err := m.GetBackingStore().Set("multiTenantOrganizationPartnerConfiguration", value) + if err != nil { + panic(err) + } +} +// PolicyTemplateable +type PolicyTemplateable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetMultiTenantOrganizationIdentitySynchronization()(MultiTenantOrganizationIdentitySyncPolicyTemplateable) + GetMultiTenantOrganizationPartnerConfiguration()(MultiTenantOrganizationPartnerConfigurationTemplateable) + SetMultiTenantOrganizationIdentitySynchronization(value MultiTenantOrganizationIdentitySyncPolicyTemplateable)() + SetMultiTenantOrganizationPartnerConfiguration(value MultiTenantOrganizationPartnerConfigurationTemplateable)() +} diff --git a/models/publication_facet.go b/models/publication_facet.go index 07a2e00c310..0b23ad77b79 100644 --- a/models/publication_facet.go +++ b/models/publication_facet.go @@ -38,9 +38,30 @@ func (m *PublicationFacet) GetAdditionalData()(map[string]any) { func (m *PublicationFacet) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } +// GetCheckedOutBy gets the checkedOutBy property value. The checkedOutBy property +func (m *PublicationFacet) GetCheckedOutBy()(IdentitySetable) { + val, err := m.GetBackingStore().Get("checkedOutBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(IdentitySetable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model func (m *PublicationFacet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["checkedOutBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCheckedOutBy(val.(IdentitySetable)) + } + return nil + } res["level"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -108,6 +129,12 @@ func (m *PublicationFacet) GetVersionId()(*string) { } // Serialize serializes information the current object func (m *PublicationFacet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("checkedOutBy", m.GetCheckedOutBy()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("level", m.GetLevel()) if err != nil { @@ -145,6 +172,13 @@ func (m *PublicationFacet) SetAdditionalData(value map[string]any)() { func (m *PublicationFacet) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetCheckedOutBy sets the checkedOutBy property value. The checkedOutBy property +func (m *PublicationFacet) SetCheckedOutBy(value IdentitySetable)() { + err := m.GetBackingStore().Set("checkedOutBy", value) + if err != nil { + panic(err) + } +} // SetLevel sets the level property value. The state of publication for this document. Either published or checkout. Read-only. func (m *PublicationFacet) SetLevel(value *string)() { err := m.GetBackingStore().Set("level", value) @@ -172,10 +206,12 @@ type PublicationFacetable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCheckedOutBy()(IdentitySetable) GetLevel()(*string) GetOdataType()(*string) GetVersionId()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCheckedOutBy(value IdentitySetable)() SetLevel(value *string)() SetOdataType(value *string)() SetVersionId(value *string)() diff --git a/models/remote_action.go b/models/remote_action.go index 0ebc2c9323c..9f0ccae18e0 100644 --- a/models/remote_action.go +++ b/models/remote_action.go @@ -70,10 +70,16 @@ const ( ROTATELOCALADMINPASSWORD_REMOTEACTION // Evolvable enumeration sentinel value. Do not use. UNKNOWNFUTUREVALUE_REMOTEACTION + // Add device action of Remote Help Launch + LAUNCHREMOTEHELP_REMOTEACTION + // Revoke all Apple Vpp licenses for a device + REVOKEAPPLEVPPLICENSES_REMOTEACTION + // Indicate IT Admin initiates an action to remove devices from Device Firmware Configuration Interface management + REMOVEDEVICEFIRMWARECONFIGURATIONINTERFACEMANAGEMENT_REMOTEACTION ) func (i RemoteAction) String() string { - return []string{"unknown", "factoryReset", "removeCompanyData", "resetPasscode", "remoteLock", "enableLostMode", "disableLostMode", "locateDevice", "rebootNow", "recoverPasscode", "cleanWindowsDevice", "logoutSharedAppleDeviceActiveUser", "quickScan", "fullScan", "windowsDefenderUpdateSignatures", "factoryResetKeepEnrollmentData", "updateDeviceAccount", "automaticRedeployment", "shutDown", "rotateBitLockerKeys", "rotateFileVaultKey", "getFileVaultKey", "setDeviceName", "activateDeviceEsim", "deprovision", "disable", "reenable", "moveDeviceToOrganizationalUnit", "initiateMobileDeviceManagementKeyRecovery", "initiateOnDemandProactiveRemediation", "rotateLocalAdminPassword", "unknownFutureValue"}[i] + return []string{"unknown", "factoryReset", "removeCompanyData", "resetPasscode", "remoteLock", "enableLostMode", "disableLostMode", "locateDevice", "rebootNow", "recoverPasscode", "cleanWindowsDevice", "logoutSharedAppleDeviceActiveUser", "quickScan", "fullScan", "windowsDefenderUpdateSignatures", "factoryResetKeepEnrollmentData", "updateDeviceAccount", "automaticRedeployment", "shutDown", "rotateBitLockerKeys", "rotateFileVaultKey", "getFileVaultKey", "setDeviceName", "activateDeviceEsim", "deprovision", "disable", "reenable", "moveDeviceToOrganizationalUnit", "initiateMobileDeviceManagementKeyRecovery", "initiateOnDemandProactiveRemediation", "rotateLocalAdminPassword", "unknownFutureValue", "launchRemoteHelp", "revokeAppleVppLicenses", "removeDeviceFirmwareConfigurationInterfaceManagement"}[i] } func ParseRemoteAction(v string) (any, error) { result := UNKNOWN_REMOTEACTION @@ -142,6 +148,12 @@ func ParseRemoteAction(v string) (any, error) { result = ROTATELOCALADMINPASSWORD_REMOTEACTION case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_REMOTEACTION + case "launchRemoteHelp": + result = LAUNCHREMOTEHELP_REMOTEACTION + case "revokeAppleVppLicenses": + result = REVOKEAPPLEVPPLICENSES_REMOTEACTION + case "removeDeviceFirmwareConfigurationInterfaceManagement": + result = REMOVEDEVICEFIRMWARECONFIGURATIONINTERFACEMANAGEMENT_REMOTEACTION default: return 0, errors.New("Unknown RemoteAction value: " + v) } diff --git a/models/reseller_delegated_admin_relationship.go b/models/reseller_delegated_admin_relationship.go new file mode 100644 index 00000000000..6bce9bad5a5 --- /dev/null +++ b/models/reseller_delegated_admin_relationship.go @@ -0,0 +1,111 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ResellerDelegatedAdminRelationship +type ResellerDelegatedAdminRelationship struct { + DelegatedAdminRelationship +} +// NewResellerDelegatedAdminRelationship instantiates a new resellerDelegatedAdminRelationship and sets the default values. +func NewResellerDelegatedAdminRelationship()(*ResellerDelegatedAdminRelationship) { + m := &ResellerDelegatedAdminRelationship{ + DelegatedAdminRelationship: *NewDelegatedAdminRelationship(), + } + return m +} +// CreateResellerDelegatedAdminRelationshipFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateResellerDelegatedAdminRelationshipFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewResellerDelegatedAdminRelationship(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ResellerDelegatedAdminRelationship) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.DelegatedAdminRelationship.GetFieldDeserializers() + res["indirectProviderTenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIndirectProviderTenantId(val) + } + return nil + } + res["isPartnerConsentPending"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsPartnerConsentPending(val) + } + return nil + } + return res +} +// GetIndirectProviderTenantId gets the indirectProviderTenantId property value. The indirectProviderTenantId property +func (m *ResellerDelegatedAdminRelationship) GetIndirectProviderTenantId()(*string) { + val, err := m.GetBackingStore().Get("indirectProviderTenantId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetIsPartnerConsentPending gets the isPartnerConsentPending property value. The isPartnerConsentPending property +func (m *ResellerDelegatedAdminRelationship) GetIsPartnerConsentPending()(*bool) { + val, err := m.GetBackingStore().Get("isPartnerConsentPending") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ResellerDelegatedAdminRelationship) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.DelegatedAdminRelationship.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("indirectProviderTenantId", m.GetIndirectProviderTenantId()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isPartnerConsentPending", m.GetIsPartnerConsentPending()) + if err != nil { + return err + } + } + return nil +} +// SetIndirectProviderTenantId sets the indirectProviderTenantId property value. The indirectProviderTenantId property +func (m *ResellerDelegatedAdminRelationship) SetIndirectProviderTenantId(value *string)() { + err := m.GetBackingStore().Set("indirectProviderTenantId", value) + if err != nil { + panic(err) + } +} +// SetIsPartnerConsentPending sets the isPartnerConsentPending property value. The isPartnerConsentPending property +func (m *ResellerDelegatedAdminRelationship) SetIsPartnerConsentPending(value *bool)() { + err := m.GetBackingStore().Set("isPartnerConsentPending", value) + if err != nil { + panic(err) + } +} +// ResellerDelegatedAdminRelationshipable +type ResellerDelegatedAdminRelationshipable interface { + DelegatedAdminRelationshipable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetIndirectProviderTenantId()(*string) + GetIsPartnerConsentPending()(*bool) + SetIndirectProviderTenantId(value *string)() + SetIsPartnerConsentPending(value *bool)() +} diff --git a/models/restriction_action.go b/models/restriction_action.go deleted file mode 100644 index ea2f30cb4ba..00000000000 --- a/models/restriction_action.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type RestrictionAction int - -const ( - WARN_RESTRICTIONACTION RestrictionAction = iota - AUDIT_RESTRICTIONACTION - BLOCK_RESTRICTIONACTION -) - -func (i RestrictionAction) String() string { - return []string{"warn", "audit", "block"}[i] -} -func ParseRestrictionAction(v string) (any, error) { - result := WARN_RESTRICTIONACTION - switch v { - case "warn": - result = WARN_RESTRICTIONACTION - case "audit": - result = AUDIT_RESTRICTIONACTION - case "block": - result = BLOCK_RESTRICTIONACTION - default: - return 0, errors.New("Unknown RestrictionAction value: " + v) - } - return &result, nil -} -func SerializeRestrictionAction(values []RestrictionAction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} diff --git a/models/restriction_trigger.go b/models/restriction_trigger.go deleted file mode 100644 index 14b81c6649d..00000000000 --- a/models/restriction_trigger.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type RestrictionTrigger int - -const ( - COPYPASTE_RESTRICTIONTRIGGER RestrictionTrigger = iota - COPYTONETWORKSHARE_RESTRICTIONTRIGGER - COPYTOREMOVABLEMEDIA_RESTRICTIONTRIGGER - SCREENCAPTURE_RESTRICTIONTRIGGER - PRINT_RESTRICTIONTRIGGER - CLOUDEGRESS_RESTRICTIONTRIGGER - UNALLOWEDAPPS_RESTRICTIONTRIGGER -) - -func (i RestrictionTrigger) String() string { - return []string{"copyPaste", "copyToNetworkShare", "copyToRemovableMedia", "screenCapture", "print", "cloudEgress", "unallowedApps"}[i] -} -func ParseRestrictionTrigger(v string) (any, error) { - result := COPYPASTE_RESTRICTIONTRIGGER - switch v { - case "copyPaste": - result = COPYPASTE_RESTRICTIONTRIGGER - case "copyToNetworkShare": - result = COPYTONETWORKSHARE_RESTRICTIONTRIGGER - case "copyToRemovableMedia": - result = COPYTOREMOVABLEMEDIA_RESTRICTIONTRIGGER - case "screenCapture": - result = SCREENCAPTURE_RESTRICTIONTRIGGER - case "print": - result = PRINT_RESTRICTIONTRIGGER - case "cloudEgress": - result = CLOUDEGRESS_RESTRICTIONTRIGGER - case "unallowedApps": - result = UNALLOWEDAPPS_RESTRICTIONTRIGGER - default: - return 0, errors.New("Unknown RestrictionTrigger value: " + v) - } - return &result, nil -} -func SerializeRestrictionTrigger(values []RestrictionTrigger) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} diff --git a/models/search_hit.go b/models/search_hit.go index ab2a41f3f47..4778c406995 100644 --- a/models/search_hit.go +++ b/models/search_hit.go @@ -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/security/alert.go b/models/security/alert.go index b8abf3511c2..e480eee19dc 100644 --- a/models/security/alert.go +++ b/models/security/alert.go @@ -32,6 +32,17 @@ func (m *Alert) GetActorDisplayName()(*string) { } return nil } +// GetAlertPolicyId gets the alertPolicyId property value. The alertPolicyId property +func (m *Alert) GetAlertPolicyId()(*string) { + val, err := m.GetBackingStore().Get("alertPolicyId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetAlertWebUrl gets the alertWebUrl property value. URL for the alert page in the Microsoft 365 Defender portal. func (m *Alert) GetAlertWebUrl()(*string) { val, err := m.GetBackingStore().Get("alertWebUrl") @@ -65,7 +76,7 @@ func (m *Alert) GetCategory()(*string) { } return nil } -// GetClassification gets the classification property value. Specifies whether the alert represents a true threat. Possible values are: unknown, falsePositive, truePositive, benignPositive, unknownFutureValue. +// GetClassification gets the classification property value. Specifies whether the alert represents a true threat. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue. func (m *Alert) GetClassification()(*AlertClassification) { val, err := m.GetBackingStore().Get("classification") if err != nil { @@ -166,6 +177,16 @@ func (m *Alert) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 } return nil } + res["alertPolicyId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAlertPolicyId(val) + } + return nil + } res["alertWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -671,6 +692,12 @@ func (m *Alert) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c4 return err } } + { + err = writer.WriteStringValue("alertPolicyId", m.GetAlertPolicyId()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("alertWebUrl", m.GetAlertWebUrl()) if err != nil { @@ -866,6 +893,13 @@ func (m *Alert) SetActorDisplayName(value *string)() { panic(err) } } +// SetAlertPolicyId sets the alertPolicyId property value. The alertPolicyId property +func (m *Alert) SetAlertPolicyId(value *string)() { + err := m.GetBackingStore().Set("alertPolicyId", value) + if err != nil { + panic(err) + } +} // SetAlertWebUrl sets the alertWebUrl property value. URL for the alert page in the Microsoft 365 Defender portal. func (m *Alert) SetAlertWebUrl(value *string)() { err := m.GetBackingStore().Set("alertWebUrl", value) @@ -887,7 +921,7 @@ func (m *Alert) SetCategory(value *string)() { panic(err) } } -// SetClassification sets the classification property value. Specifies whether the alert represents a true threat. Possible values are: unknown, falsePositive, truePositive, benignPositive, unknownFutureValue. +// SetClassification sets the classification property value. Specifies whether the alert represents a true threat. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue. func (m *Alert) SetClassification(value *AlertClassification)() { err := m.GetBackingStore().Set("classification", value) if err != nil { @@ -1067,6 +1101,7 @@ type Alertable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetActorDisplayName()(*string) + GetAlertPolicyId()(*string) GetAlertWebUrl()(*string) GetAssignedTo()(*string) GetCategory()(*string) @@ -1096,6 +1131,7 @@ type Alertable interface { GetThreatFamilyName()(*string) GetTitle()(*string) SetActorDisplayName(value *string)() + SetAlertPolicyId(value *string)() SetAlertWebUrl(value *string)() SetAssignedTo(value *string)() SetCategory(value *string)() diff --git a/models/security/alert_evidence.go b/models/security/alert_evidence.go index a68a947cf61..d4736e5565a 100644 --- a/models/security/alert_evidence.go +++ b/models/security/alert_evidence.go @@ -124,7 +124,7 @@ func (m *AlertEvidence) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a } return nil } -// GetDetailedRoles gets the detailedRoles property value. The detailedRoles property +// GetDetailedRoles gets the detailedRoles property value. Detailed description of the entity role/s in an alert. Values are free-form. func (m *AlertEvidence) GetDetailedRoles()([]string) { val, err := m.GetBackingStore().Get("detailedRoles") if err != nil { @@ -271,7 +271,7 @@ func (m *AlertEvidence) GetRemediationStatusDetails()(*string) { } return nil } -// GetRoles gets the roles property value. One or more roles that an evidence entity represents in an alert. For example, an IP address that is associated with an attacker has the evidence role Attacker. +// GetRoles gets the roles property value. The role/s that an evidence entity represents in an alert, e.g., an IP address that is associated with an attacker will have the evidence role Attacker. func (m *AlertEvidence) GetRoles()([]EvidenceRole) { val, err := m.GetBackingStore().Get("roles") if err != nil { @@ -282,7 +282,7 @@ func (m *AlertEvidence) GetRoles()([]EvidenceRole) { } return nil } -// GetTags gets the tags property value. Array of custom tags associated with an evidence instance. For example, to denote a group of devices or high value assets. +// GetTags gets the tags property value. Array of custom tags associated with an evidence instance, for example, to denote a group of devices, high-value assets, etc. func (m *AlertEvidence) GetTags()([]string) { val, err := m.GetBackingStore().Get("tags") if err != nil { @@ -382,7 +382,7 @@ func (m *AlertEvidence) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad9 panic(err) } } -// SetDetailedRoles sets the detailedRoles property value. The detailedRoles property +// SetDetailedRoles sets the detailedRoles property value. Detailed description of the entity role/s in an alert. Values are free-form. func (m *AlertEvidence) SetDetailedRoles(value []string)() { err := m.GetBackingStore().Set("detailedRoles", value) if err != nil { @@ -410,14 +410,14 @@ func (m *AlertEvidence) SetRemediationStatusDetails(value *string)() { panic(err) } } -// SetRoles sets the roles property value. One or more roles that an evidence entity represents in an alert. For example, an IP address that is associated with an attacker has the evidence role Attacker. +// SetRoles sets the roles property value. The role/s that an evidence entity represents in an alert, e.g., an IP address that is associated with an attacker will have the evidence role Attacker. func (m *AlertEvidence) SetRoles(value []EvidenceRole)() { err := m.GetBackingStore().Set("roles", value) if err != nil { panic(err) } } -// SetTags sets the tags property value. Array of custom tags associated with an evidence instance. For example, to denote a group of devices or high value assets. +// SetTags sets the tags property value. Array of custom tags associated with an evidence instance, for example, to denote a group of devices, high-value assets, etc. func (m *AlertEvidence) SetTags(value []string)() { err := m.GetBackingStore().Set("tags", value) if err != nil { diff --git a/models/security/blob_container_evidence.go b/models/security/blob_container_evidence.go index acf9bcd9106..2ccd57f8975 100644 --- a/models/security/blob_container_evidence.go +++ b/models/security/blob_container_evidence.go @@ -56,7 +56,7 @@ func (m *BlobContainerEvidence) GetFieldDeserializers()(map[string]func(i878a80d } return res } -// GetName gets the name property value. The name property +// GetName gets the name property value. The name of the blob container. func (m *BlobContainerEvidence) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -67,7 +67,7 @@ func (m *BlobContainerEvidence) GetName()(*string) { } return nil } -// GetStorageResource gets the storageResource property value. The storageResource property +// GetStorageResource gets the storageResource property value. The storage which the blob container belongs to. func (m *BlobContainerEvidence) GetStorageResource()(AzureResourceEvidenceable) { val, err := m.GetBackingStore().Get("storageResource") if err != nil { @@ -78,7 +78,7 @@ func (m *BlobContainerEvidence) GetStorageResource()(AzureResourceEvidenceable) } return nil } -// GetUrl gets the url property value. The url property +// GetUrl gets the url property value. The full URL representation of the blob container. func (m *BlobContainerEvidence) GetUrl()(*string) { val, err := m.GetBackingStore().Get("url") if err != nil { @@ -115,21 +115,21 @@ func (m *BlobContainerEvidence) Serialize(writer i878a80d2330e89d26896388a3f487e } return nil } -// SetName sets the name property value. The name property +// SetName sets the name property value. The name of the blob container. func (m *BlobContainerEvidence) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetStorageResource sets the storageResource property value. The storageResource property +// SetStorageResource sets the storageResource property value. The storage which the blob container belongs to. func (m *BlobContainerEvidence) SetStorageResource(value AzureResourceEvidenceable)() { err := m.GetBackingStore().Set("storageResource", value) if err != nil { panic(err) } } -// SetUrl sets the url property value. The url property +// SetUrl sets the url property value. The full URL representation of the blob container. func (m *BlobContainerEvidence) SetUrl(value *string)() { err := m.GetBackingStore().Set("url", value) if err != nil { diff --git a/models/security/blob_evidence.go b/models/security/blob_evidence.go index 0fc1023809c..85da3f7b5ef 100644 --- a/models/security/blob_evidence.go +++ b/models/security/blob_evidence.go @@ -21,7 +21,7 @@ func NewBlobEvidence()(*BlobEvidence) { func CreateBlobEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewBlobEvidence(), nil } -// GetBlobContainer gets the blobContainer property value. The blobContainer property +// GetBlobContainer gets the blobContainer property value. The container which the blob belongs to. func (m *BlobEvidence) GetBlobContainer()(BlobContainerEvidenceable) { val, err := m.GetBackingStore().Get("blobContainer") if err != nil { @@ -32,7 +32,7 @@ func (m *BlobEvidence) GetBlobContainer()(BlobContainerEvidenceable) { } return nil } -// GetEtag gets the etag property value. The etag property +// GetEtag gets the etag property value. The Etag associated with this blob. func (m *BlobEvidence) GetEtag()(*string) { val, err := m.GetBackingStore().Get("etag") if err != nil { @@ -104,7 +104,7 @@ func (m *BlobEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } -// GetFileHashes gets the fileHashes property value. The fileHashes property +// GetFileHashes gets the fileHashes property value. The file hashes associated with this blob. func (m *BlobEvidence) GetFileHashes()([]FileHashable) { val, err := m.GetBackingStore().Get("fileHashes") if err != nil { @@ -115,7 +115,7 @@ func (m *BlobEvidence) GetFileHashes()([]FileHashable) { } return nil } -// GetName gets the name property value. The name property +// GetName gets the name property value. The name of the blob. func (m *BlobEvidence) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -126,7 +126,7 @@ func (m *BlobEvidence) GetName()(*string) { } return nil } -// GetUrl gets the url property value. The url property +// GetUrl gets the url property value. The full URL representation of the blob. func (m *BlobEvidence) GetUrl()(*string) { val, err := m.GetBackingStore().Get("url") if err != nil { @@ -181,35 +181,35 @@ func (m *BlobEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e } return nil } -// SetBlobContainer sets the blobContainer property value. The blobContainer property +// SetBlobContainer sets the blobContainer property value. The container which the blob belongs to. func (m *BlobEvidence) SetBlobContainer(value BlobContainerEvidenceable)() { err := m.GetBackingStore().Set("blobContainer", value) if err != nil { panic(err) } } -// SetEtag sets the etag property value. The etag property +// SetEtag sets the etag property value. The Etag associated with this blob. func (m *BlobEvidence) SetEtag(value *string)() { err := m.GetBackingStore().Set("etag", value) if err != nil { panic(err) } } -// SetFileHashes sets the fileHashes property value. The fileHashes property +// SetFileHashes sets the fileHashes property value. The file hashes associated with this blob. func (m *BlobEvidence) SetFileHashes(value []FileHashable)() { err := m.GetBackingStore().Set("fileHashes", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. The name of the blob. func (m *BlobEvidence) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetUrl sets the url property value. The url property +// SetUrl sets the url property value. The full URL representation of the blob. func (m *BlobEvidence) SetUrl(value *string)() { err := m.GetBackingStore().Set("url", value) if err != nil { diff --git a/models/security/container_evidence.go b/models/security/container_evidence.go index 85b42e81630..3b5fd85ba28 100644 --- a/models/security/container_evidence.go +++ b/models/security/container_evidence.go @@ -21,7 +21,7 @@ func NewContainerEvidence()(*ContainerEvidence) { func CreateContainerEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewContainerEvidence(), nil } -// GetArgs gets the args property value. The args property +// GetArgs gets the args property value. The list of arguments. func (m *ContainerEvidence) GetArgs()([]string) { val, err := m.GetBackingStore().Get("args") if err != nil { @@ -32,7 +32,7 @@ func (m *ContainerEvidence) GetArgs()([]string) { } return nil } -// GetCommand gets the command property value. The command property +// GetCommand gets the command property value. The list of commands. func (m *ContainerEvidence) GetCommand()([]string) { val, err := m.GetBackingStore().Get("command") if err != nil { @@ -43,7 +43,7 @@ func (m *ContainerEvidence) GetCommand()([]string) { } return nil } -// GetContainerId gets the containerId property value. The containerId property +// GetContainerId gets the containerId property value. The container ID. func (m *ContainerEvidence) GetContainerId()(*string) { val, err := m.GetBackingStore().Get("containerId") if err != nil { @@ -141,7 +141,7 @@ func (m *ContainerEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetImage gets the image property value. The image property +// GetImage gets the image property value. The image used to run the container. func (m *ContainerEvidence) GetImage()(ContainerImageEvidenceable) { val, err := m.GetBackingStore().Get("image") if err != nil { @@ -152,7 +152,7 @@ func (m *ContainerEvidence) GetImage()(ContainerImageEvidenceable) { } return nil } -// GetIsPrivileged gets the isPrivileged property value. The isPrivileged property +// GetIsPrivileged gets the isPrivileged property value. The privileged status. func (m *ContainerEvidence) GetIsPrivileged()(*bool) { val, err := m.GetBackingStore().Get("isPrivileged") if err != nil { @@ -163,7 +163,7 @@ func (m *ContainerEvidence) GetIsPrivileged()(*bool) { } return nil } -// GetName gets the name property value. The name property +// GetName gets the name property value. The container name. func (m *ContainerEvidence) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -174,7 +174,7 @@ func (m *ContainerEvidence) GetName()(*string) { } return nil } -// GetPod gets the pod property value. The pod property +// GetPod gets the pod property value. The pod that this container belongs to. func (m *ContainerEvidence) GetPod()(KubernetesPodEvidenceable) { val, err := m.GetBackingStore().Get("pod") if err != nil { @@ -235,49 +235,49 @@ func (m *ContainerEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetArgs sets the args property value. The args property +// SetArgs sets the args property value. The list of arguments. func (m *ContainerEvidence) SetArgs(value []string)() { err := m.GetBackingStore().Set("args", value) if err != nil { panic(err) } } -// SetCommand sets the command property value. The command property +// SetCommand sets the command property value. The list of commands. func (m *ContainerEvidence) SetCommand(value []string)() { err := m.GetBackingStore().Set("command", value) if err != nil { panic(err) } } -// SetContainerId sets the containerId property value. The containerId property +// SetContainerId sets the containerId property value. The container ID. func (m *ContainerEvidence) SetContainerId(value *string)() { err := m.GetBackingStore().Set("containerId", value) if err != nil { panic(err) } } -// SetImage sets the image property value. The image property +// SetImage sets the image property value. The image used to run the container. func (m *ContainerEvidence) SetImage(value ContainerImageEvidenceable)() { err := m.GetBackingStore().Set("image", value) if err != nil { panic(err) } } -// SetIsPrivileged sets the isPrivileged property value. The isPrivileged property +// SetIsPrivileged sets the isPrivileged property value. The privileged status. func (m *ContainerEvidence) SetIsPrivileged(value *bool)() { err := m.GetBackingStore().Set("isPrivileged", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. The container name. func (m *ContainerEvidence) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetPod sets the pod property value. The pod property +// SetPod sets the pod property value. The pod that this container belongs to. func (m *ContainerEvidence) SetPod(value KubernetesPodEvidenceable)() { err := m.GetBackingStore().Set("pod", value) if err != nil { diff --git a/models/security/container_image_evidence.go b/models/security/container_image_evidence.go index bf61a3f1ba3..bb8d4d1340d 100644 --- a/models/security/container_image_evidence.go +++ b/models/security/container_image_evidence.go @@ -21,7 +21,7 @@ func NewContainerImageEvidence()(*ContainerImageEvidence) { func CreateContainerImageEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewContainerImageEvidence(), nil } -// GetDigestImage gets the digestImage property value. The digestImage property +// GetDigestImage gets the digestImage property value. The digest image entity, in case this is a tag image. func (m *ContainerImageEvidence) GetDigestImage()(ContainerImageEvidenceable) { val, err := m.GetBackingStore().Get("digestImage") if err != nil { @@ -67,7 +67,7 @@ func (m *ContainerImageEvidence) GetFieldDeserializers()(map[string]func(i878a80 } return res } -// GetImageId gets the imageId property value. The imageId property +// GetImageId gets the imageId property value. The unique identifier for the container image entity. func (m *ContainerImageEvidence) GetImageId()(*string) { val, err := m.GetBackingStore().Get("imageId") if err != nil { @@ -78,7 +78,7 @@ func (m *ContainerImageEvidence) GetImageId()(*string) { } return nil } -// GetRegistry gets the registry property value. The registry property +// GetRegistry gets the registry property value. The container registry for this image. func (m *ContainerImageEvidence) GetRegistry()(ContainerRegistryEvidenceable) { val, err := m.GetBackingStore().Get("registry") if err != nil { @@ -115,21 +115,21 @@ func (m *ContainerImageEvidence) Serialize(writer i878a80d2330e89d26896388a3f487 } return nil } -// SetDigestImage sets the digestImage property value. The digestImage property +// SetDigestImage sets the digestImage property value. The digest image entity, in case this is a tag image. func (m *ContainerImageEvidence) SetDigestImage(value ContainerImageEvidenceable)() { err := m.GetBackingStore().Set("digestImage", value) if err != nil { panic(err) } } -// SetImageId sets the imageId property value. The imageId property +// SetImageId sets the imageId property value. The unique identifier for the container image entity. func (m *ContainerImageEvidence) SetImageId(value *string)() { err := m.GetBackingStore().Set("imageId", value) if err != nil { panic(err) } } -// SetRegistry sets the registry property value. The registry property +// SetRegistry sets the registry property value. The container registry for this image. func (m *ContainerImageEvidence) SetRegistry(value ContainerRegistryEvidenceable)() { err := m.GetBackingStore().Set("registry", value) if err != nil { diff --git a/models/security/container_registry_evidence.go b/models/security/container_registry_evidence.go index 8fe62b84913..46670170523 100644 --- a/models/security/container_registry_evidence.go +++ b/models/security/container_registry_evidence.go @@ -36,7 +36,7 @@ func (m *ContainerRegistryEvidence) GetFieldDeserializers()(map[string]func(i878 } return res } -// GetRegistry gets the registry property value. The registry property +// GetRegistry gets the registry property value. The registry URI. func (m *ContainerRegistryEvidence) GetRegistry()(*string) { val, err := m.GetBackingStore().Get("registry") if err != nil { @@ -61,7 +61,7 @@ func (m *ContainerRegistryEvidence) Serialize(writer i878a80d2330e89d26896388a3f } return nil } -// SetRegistry sets the registry property value. The registry property +// SetRegistry sets the registry property value. The registry URI. func (m *ContainerRegistryEvidence) SetRegistry(value *string)() { err := m.GetBackingStore().Set("registry", value) if err != nil { diff --git a/models/security/device_evidence.go b/models/security/device_evidence.go index f1ced3407c3..44db9601673 100644 --- a/models/security/device_evidence.go +++ b/models/security/device_evidence.go @@ -254,7 +254,7 @@ func (m *DeviceEvidence) GetHealthStatus()(*DeviceHealthStatus) { } return nil } -// GetIpInterfaces gets the ipInterfaces property value. The ipInterfaces property +// GetIpInterfaces gets the ipInterfaces property value. Ip interfaces of the device during the time of the alert. func (m *DeviceEvidence) GetIpInterfaces()([]string) { val, err := m.GetBackingStore().Get("ipInterfaces") if err != nil { @@ -524,7 +524,7 @@ func (m *DeviceEvidence) SetHealthStatus(value *DeviceHealthStatus)() { panic(err) } } -// SetIpInterfaces sets the ipInterfaces property value. The ipInterfaces property +// SetIpInterfaces sets the ipInterfaces property value. Ip interfaces of the device during the time of the alert. func (m *DeviceEvidence) SetIpInterfaces(value []string)() { err := m.GetBackingStore().Set("ipInterfaces", value) if err != nil { diff --git a/models/security/file_hash.go b/models/security/file_hash.go index 07d90e7e005..dd5500a78cd 100644 --- a/models/security/file_hash.go +++ b/models/security/file_hash.go @@ -95,7 +95,7 @@ func (m *FileHash) GetOdataType()(*string) { } return nil } -// GetValue gets the value property value. The value property +// GetValue gets the value property value. The hash value. func (m *FileHash) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") if err != nil { @@ -160,7 +160,7 @@ func (m *FileHash) SetOdataType(value *string)() { panic(err) } } -// SetValue sets the value property value. The value property +// SetValue sets the value property value. The hash value. func (m *FileHash) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) if err != nil { diff --git a/models/security/host.go b/models/security/host.go index 566f8ea8d1b..e8730022882 100644 --- a/models/security/host.go +++ b/models/security/host.go @@ -42,7 +42,7 @@ func CreateHostFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487ee } return NewHost(), nil } -// GetChildHostPairs gets the childHostPairs property value. The childHostPairs property +// GetChildHostPairs gets the childHostPairs property value. The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. func (m *Host) GetChildHostPairs()([]HostPairable) { val, err := m.GetBackingStore().Get("childHostPairs") if err != nil { @@ -291,7 +291,7 @@ func (m *Host) GetFirstSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a } return nil } -// GetHostPairs gets the hostPairs property value. The hostPairs property +// GetHostPairs gets the hostPairs property value. The hostPairs that are associated with this host, where this host is either the parentHost or childHost. func (m *Host) GetHostPairs()([]HostPairable) { val, err := m.GetBackingStore().Get("hostPairs") if err != nil { @@ -313,7 +313,7 @@ func (m *Host) GetLastSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a1 } return nil } -// GetParentHostPairs gets the parentHostPairs property value. The parentHostPairs property +// GetParentHostPairs gets the parentHostPairs property value. The hostPairs that are associated with a host, where that host is the childHost and has an incoming pairing with a parentHost. func (m *Host) GetParentHostPairs()([]HostPairable) { val, err := m.GetBackingStore().Get("parentHostPairs") if err != nil { @@ -553,7 +553,7 @@ func (m *Host) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 } return nil } -// SetChildHostPairs sets the childHostPairs property value. The childHostPairs property +// SetChildHostPairs sets the childHostPairs property value. The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. func (m *Host) SetChildHostPairs(value []HostPairable)() { err := m.GetBackingStore().Set("childHostPairs", value) if err != nil { @@ -581,7 +581,7 @@ func (m *Host) SetFirstSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3 panic(err) } } -// SetHostPairs sets the hostPairs property value. The hostPairs property +// SetHostPairs sets the hostPairs property value. The hostPairs that are associated with this host, where this host is either the parentHost or childHost. func (m *Host) SetHostPairs(value []HostPairable)() { err := m.GetBackingStore().Set("hostPairs", value) if err != nil { @@ -595,7 +595,7 @@ func (m *Host) SetLastSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f30 panic(err) } } -// SetParentHostPairs sets the parentHostPairs property value. The parentHostPairs property +// SetParentHostPairs sets the parentHostPairs property value. The hostPairs that are associated with a host, where that host is the childHost and has an incoming pairing with a parentHost. func (m *Host) SetParentHostPairs(value []HostPairable)() { err := m.GetBackingStore().Set("parentHostPairs", value) if err != nil { diff --git a/models/security/host_pair.go b/models/security/host_pair.go index f135b181114..59d9ab3ebc2 100644 --- a/models/security/host_pair.go +++ b/models/security/host_pair.go @@ -87,7 +87,7 @@ func (m *HostPair) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetFirstSeenDateTime gets the firstSeenDateTime property value. The firstSeenDateTime property +// GetFirstSeenDateTime gets the firstSeenDateTime property value. The first date and time when Microsoft Defender Threat Intelligence observed the hostPair. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. func (m *HostPair) GetFirstSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("firstSeenDateTime") if err != nil { @@ -98,7 +98,7 @@ func (m *HostPair) GetFirstSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3 } return nil } -// GetLastSeenDateTime gets the lastSeenDateTime property value. The lastSeenDateTime property +// GetLastSeenDateTime gets the lastSeenDateTime property value. The last date and time when Microsoft Defender Threat Intelligence observed the hostPair. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. func (m *HostPair) GetLastSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastSeenDateTime") if err != nil { @@ -109,7 +109,7 @@ func (m *HostPair) GetLastSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f30 } return nil } -// GetLinkKind gets the linkKind property value. The linkKind property +// GetLinkKind gets the linkKind property value. The reason the two hosts are identified as hostPairs. func (m *HostPair) GetLinkKind()(*string) { val, err := m.GetBackingStore().Get("linkKind") if err != nil { @@ -176,21 +176,21 @@ func (m *HostPair) SetChildHost(value Hostable)() { panic(err) } } -// SetFirstSeenDateTime sets the firstSeenDateTime property value. The firstSeenDateTime property +// SetFirstSeenDateTime sets the firstSeenDateTime property value. The first date and time when Microsoft Defender Threat Intelligence observed the hostPair. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. func (m *HostPair) SetFirstSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("firstSeenDateTime", value) if err != nil { panic(err) } } -// SetLastSeenDateTime sets the lastSeenDateTime property value. The lastSeenDateTime property +// SetLastSeenDateTime sets the lastSeenDateTime property value. The last date and time when Microsoft Defender Threat Intelligence observed the hostPair. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. func (m *HostPair) SetLastSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastSeenDateTime", value) if err != nil { panic(err) } } -// SetLinkKind sets the linkKind property value. The linkKind property +// SetLinkKind sets the linkKind property value. The reason the two hosts are identified as hostPairs. func (m *HostPair) SetLinkKind(value *string)() { err := m.GetBackingStore().Set("linkKind", value) if err != nil { diff --git a/models/security/incident.go b/models/security/incident.go index 60f6a2464b2..a334c813924 100644 --- a/models/security/incident.go +++ b/models/security/incident.go @@ -241,6 +241,16 @@ func (m *Incident) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["lastModifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLastModifiedBy(val) + } + return nil + } res["lastUpdateDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -346,6 +356,17 @@ func (m *Incident) GetIncidentWebUrl()(*string) { } return nil } +// GetLastModifiedBy gets the lastModifiedBy property value. The lastModifiedBy property +func (m *Incident) GetLastModifiedBy()(*string) { + val, err := m.GetBackingStore().Get("lastModifiedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetLastUpdateDateTime gets the lastUpdateDateTime property value. Time when the incident was last updated. func (m *Incident) GetLastUpdateDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastUpdateDateTime") @@ -514,6 +535,12 @@ func (m *Incident) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteStringValue("lastModifiedBy", m.GetLastModifiedBy()) + if err != nil { + return err + } + } { err = writer.WriteTimeValue("lastUpdateDateTime", m.GetLastUpdateDateTime()) if err != nil { @@ -642,6 +669,13 @@ func (m *Incident) SetIncidentWebUrl(value *string)() { panic(err) } } +// SetLastModifiedBy sets the lastModifiedBy property value. The lastModifiedBy property +func (m *Incident) SetLastModifiedBy(value *string)() { + err := m.GetBackingStore().Set("lastModifiedBy", value) + if err != nil { + panic(err) + } +} // SetLastUpdateDateTime sets the lastUpdateDateTime property value. Time when the incident was last updated. func (m *Incident) SetLastUpdateDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastUpdateDateTime", value) @@ -712,6 +746,7 @@ type Incidentable interface { GetDetermination()(*AlertDetermination) GetDisplayName()(*string) GetIncidentWebUrl()(*string) + GetLastModifiedBy()(*string) GetLastUpdateDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetRecommendedActions()(*string) GetRecommendedHuntingQueries()([]RecommendedHuntingQueryable) @@ -730,6 +765,7 @@ type Incidentable interface { SetDetermination(value *AlertDetermination)() SetDisplayName(value *string)() SetIncidentWebUrl(value *string)() + SetLastModifiedBy(value *string)() SetLastUpdateDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetRecommendedActions(value *string)() SetRecommendedHuntingQueries(value []RecommendedHuntingQueryable)() diff --git a/models/security/kubernetes_cluster_evidence.go b/models/security/kubernetes_cluster_evidence.go index 8b243267a59..d1f82ad64e3 100644 --- a/models/security/kubernetes_cluster_evidence.go +++ b/models/security/kubernetes_cluster_evidence.go @@ -21,7 +21,7 @@ func NewKubernetesClusterEvidence()(*KubernetesClusterEvidence) { func CreateKubernetesClusterEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewKubernetesClusterEvidence(), nil } -// GetCloudResource gets the cloudResource property value. The cloudResource property +// GetCloudResource gets the cloudResource property value. The cloud identifier of the cluster. Can be either an amazonResourceEvidence, azureResourceEvidence, or googleCloudResourceEvidence object. func (m *KubernetesClusterEvidence) GetCloudResource()(AlertEvidenceable) { val, err := m.GetBackingStore().Get("cloudResource") if err != nil { @@ -32,7 +32,7 @@ func (m *KubernetesClusterEvidence) GetCloudResource()(AlertEvidenceable) { } return nil } -// GetDistribution gets the distribution property value. The distribution property +// GetDistribution gets the distribution property value. The distribution type of the cluster. func (m *KubernetesClusterEvidence) GetDistribution()(*string) { val, err := m.GetBackingStore().Get("distribution") if err != nil { @@ -98,7 +98,7 @@ func (m *KubernetesClusterEvidence) GetFieldDeserializers()(map[string]func(i878 } return res } -// GetName gets the name property value. The name property +// GetName gets the name property value. The cluster name. func (m *KubernetesClusterEvidence) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -109,7 +109,7 @@ func (m *KubernetesClusterEvidence) GetName()(*string) { } return nil } -// GetPlatform gets the platform property value. The platform property +// GetPlatform gets the platform property value. The platform the cluster runs on. Possible values are: unknown, aks, eks, gke, arc, unknownFutureValue. func (m *KubernetesClusterEvidence) GetPlatform()(*KubernetesPlatform) { val, err := m.GetBackingStore().Get("platform") if err != nil { @@ -120,7 +120,7 @@ func (m *KubernetesClusterEvidence) GetPlatform()(*KubernetesPlatform) { } return nil } -// GetVersion gets the version property value. The version property +// GetVersion gets the version property value. The kubernetes version of the cluster. func (m *KubernetesClusterEvidence) GetVersion()(*string) { val, err := m.GetBackingStore().Get("version") if err != nil { @@ -170,35 +170,35 @@ func (m *KubernetesClusterEvidence) Serialize(writer i878a80d2330e89d26896388a3f } return nil } -// SetCloudResource sets the cloudResource property value. The cloudResource property +// SetCloudResource sets the cloudResource property value. The cloud identifier of the cluster. Can be either an amazonResourceEvidence, azureResourceEvidence, or googleCloudResourceEvidence object. func (m *KubernetesClusterEvidence) SetCloudResource(value AlertEvidenceable)() { err := m.GetBackingStore().Set("cloudResource", value) if err != nil { panic(err) } } -// SetDistribution sets the distribution property value. The distribution property +// SetDistribution sets the distribution property value. The distribution type of the cluster. func (m *KubernetesClusterEvidence) SetDistribution(value *string)() { err := m.GetBackingStore().Set("distribution", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. The cluster name. func (m *KubernetesClusterEvidence) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetPlatform sets the platform property value. The platform property +// SetPlatform sets the platform property value. The platform the cluster runs on. Possible values are: unknown, aks, eks, gke, arc, unknownFutureValue. func (m *KubernetesClusterEvidence) SetPlatform(value *KubernetesPlatform)() { err := m.GetBackingStore().Set("platform", value) if err != nil { panic(err) } } -// SetVersion sets the version property value. The version property +// SetVersion sets the version property value. The kubernetes version of the cluster. func (m *KubernetesClusterEvidence) SetVersion(value *string)() { err := m.GetBackingStore().Set("version", value) if err != nil { diff --git a/models/security/kubernetes_controller_evidence.go b/models/security/kubernetes_controller_evidence.go index c64380d78d1..7bec77f58fe 100644 --- a/models/security/kubernetes_controller_evidence.go +++ b/models/security/kubernetes_controller_evidence.go @@ -66,7 +66,7 @@ func (m *KubernetesControllerEvidence) GetFieldDeserializers()(map[string]func(i } return res } -// GetLabels gets the labels property value. The labels property +// GetLabels gets the labels property value. The labels for the Kubernetes pod. func (m *KubernetesControllerEvidence) GetLabels()(Dictionaryable) { val, err := m.GetBackingStore().Get("labels") if err != nil { @@ -77,7 +77,7 @@ func (m *KubernetesControllerEvidence) GetLabels()(Dictionaryable) { } return nil } -// GetName gets the name property value. The name property +// GetName gets the name property value. The controller name. func (m *KubernetesControllerEvidence) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -88,7 +88,7 @@ func (m *KubernetesControllerEvidence) GetName()(*string) { } return nil } -// GetNamespace gets the namespace property value. The namespace property +// GetNamespace gets the namespace property value. The service account namespace. func (m *KubernetesControllerEvidence) GetNamespace()(KubernetesNamespaceEvidenceable) { val, err := m.GetBackingStore().Get("namespace") if err != nil { @@ -99,7 +99,7 @@ func (m *KubernetesControllerEvidence) GetNamespace()(KubernetesNamespaceEvidenc } return nil } -// GetTypeEscaped gets the type property value. The type property +// GetTypeEscaped gets the type property value. The controller type. func (m *KubernetesControllerEvidence) GetTypeEscaped()(*string) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { @@ -142,28 +142,28 @@ func (m *KubernetesControllerEvidence) Serialize(writer i878a80d2330e89d26896388 } return nil } -// SetLabels sets the labels property value. The labels property +// SetLabels sets the labels property value. The labels for the Kubernetes pod. func (m *KubernetesControllerEvidence) SetLabels(value Dictionaryable)() { err := m.GetBackingStore().Set("labels", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. The controller name. func (m *KubernetesControllerEvidence) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetNamespace sets the namespace property value. The namespace property +// SetNamespace sets the namespace property value. The service account namespace. func (m *KubernetesControllerEvidence) SetNamespace(value KubernetesNamespaceEvidenceable)() { err := m.GetBackingStore().Set("namespace", value) if err != nil { panic(err) } } -// SetTypeEscaped sets the type property value. The type property +// SetTypeEscaped sets the type property value. The controller type. func (m *KubernetesControllerEvidence) SetTypeEscaped(value *string)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { diff --git a/models/security/kubernetes_namespace_evidence.go b/models/security/kubernetes_namespace_evidence.go index 359e29e3d87..03c154ff851 100644 --- a/models/security/kubernetes_namespace_evidence.go +++ b/models/security/kubernetes_namespace_evidence.go @@ -21,7 +21,7 @@ func NewKubernetesNamespaceEvidence()(*KubernetesNamespaceEvidence) { func CreateKubernetesNamespaceEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewKubernetesNamespaceEvidence(), nil } -// GetCluster gets the cluster property value. The cluster property +// GetCluster gets the cluster property value. The namespace cluster. func (m *KubernetesNamespaceEvidence) GetCluster()(KubernetesClusterEvidenceable) { val, err := m.GetBackingStore().Get("cluster") if err != nil { @@ -67,7 +67,7 @@ func (m *KubernetesNamespaceEvidence) GetFieldDeserializers()(map[string]func(i8 } return res } -// GetLabels gets the labels property value. The labels property +// GetLabels gets the labels property value. The labels for the Kubernetes pod. func (m *KubernetesNamespaceEvidence) GetLabels()(Dictionaryable) { val, err := m.GetBackingStore().Get("labels") if err != nil { @@ -78,7 +78,7 @@ func (m *KubernetesNamespaceEvidence) GetLabels()(Dictionaryable) { } return nil } -// GetName gets the name property value. The name property +// GetName gets the name property value. The namespace name. func (m *KubernetesNamespaceEvidence) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -115,21 +115,21 @@ func (m *KubernetesNamespaceEvidence) Serialize(writer i878a80d2330e89d26896388a } return nil } -// SetCluster sets the cluster property value. The cluster property +// SetCluster sets the cluster property value. The namespace cluster. func (m *KubernetesNamespaceEvidence) SetCluster(value KubernetesClusterEvidenceable)() { err := m.GetBackingStore().Set("cluster", value) if err != nil { panic(err) } } -// SetLabels sets the labels property value. The labels property +// SetLabels sets the labels property value. The labels for the Kubernetes pod. func (m *KubernetesNamespaceEvidence) SetLabels(value Dictionaryable)() { err := m.GetBackingStore().Set("labels", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. The namespace name. func (m *KubernetesNamespaceEvidence) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { diff --git a/models/security/kubernetes_pod_evidence.go b/models/security/kubernetes_pod_evidence.go index 346efb70cea..84ccafb567b 100644 --- a/models/security/kubernetes_pod_evidence.go +++ b/models/security/kubernetes_pod_evidence.go @@ -21,7 +21,7 @@ func NewKubernetesPodEvidence()(*KubernetesPodEvidence) { func CreateKubernetesPodEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewKubernetesPodEvidence(), nil } -// GetContainers gets the containers property value. The containers property +// GetContainers gets the containers property value. The list of pod containers which are not init or ephemeral containers. func (m *KubernetesPodEvidence) GetContainers()([]ContainerEvidenceable) { val, err := m.GetBackingStore().Get("containers") if err != nil { @@ -32,7 +32,7 @@ func (m *KubernetesPodEvidence) GetContainers()([]ContainerEvidenceable) { } return nil } -// GetController gets the controller property value. The controller property +// GetController gets the controller property value. The pod controller. func (m *KubernetesPodEvidence) GetController()(KubernetesControllerEvidenceable) { val, err := m.GetBackingStore().Get("controller") if err != nil { @@ -43,7 +43,7 @@ func (m *KubernetesPodEvidence) GetController()(KubernetesControllerEvidenceable } return nil } -// GetEphemeralContainers gets the ephemeralContainers property value. The ephemeralContainers property +// GetEphemeralContainers gets the ephemeralContainers property value. The list of pod ephemeral containers. func (m *KubernetesPodEvidence) GetEphemeralContainers()([]ContainerEvidenceable) { val, err := m.GetBackingStore().Get("ephemeralContainers") if err != nil { @@ -167,7 +167,7 @@ func (m *KubernetesPodEvidence) GetFieldDeserializers()(map[string]func(i878a80d } return res } -// GetInitContainers gets the initContainers property value. The initContainers property +// GetInitContainers gets the initContainers property value. The list of pod init containers. func (m *KubernetesPodEvidence) GetInitContainers()([]ContainerEvidenceable) { val, err := m.GetBackingStore().Get("initContainers") if err != nil { @@ -178,7 +178,7 @@ func (m *KubernetesPodEvidence) GetInitContainers()([]ContainerEvidenceable) { } return nil } -// GetLabels gets the labels property value. The labels property +// GetLabels gets the labels property value. The pod labels. func (m *KubernetesPodEvidence) GetLabels()(Dictionaryable) { val, err := m.GetBackingStore().Get("labels") if err != nil { @@ -189,7 +189,7 @@ func (m *KubernetesPodEvidence) GetLabels()(Dictionaryable) { } return nil } -// GetName gets the name property value. The name property +// GetName gets the name property value. The pod name. func (m *KubernetesPodEvidence) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -200,7 +200,7 @@ func (m *KubernetesPodEvidence) GetName()(*string) { } return nil } -// GetNamespace gets the namespace property value. The namespace property +// GetNamespace gets the namespace property value. The pod namespace. func (m *KubernetesPodEvidence) GetNamespace()(KubernetesNamespaceEvidenceable) { val, err := m.GetBackingStore().Get("namespace") if err != nil { @@ -211,7 +211,7 @@ func (m *KubernetesPodEvidence) GetNamespace()(KubernetesNamespaceEvidenceable) } return nil } -// GetPodIp gets the podIp property value. The podIp property +// GetPodIp gets the podIp property value. The pod IP. func (m *KubernetesPodEvidence) GetPodIp()(IpEvidenceable) { val, err := m.GetBackingStore().Get("podIp") if err != nil { @@ -222,7 +222,7 @@ func (m *KubernetesPodEvidence) GetPodIp()(IpEvidenceable) { } return nil } -// GetServiceAccount gets the serviceAccount property value. The serviceAccount property +// GetServiceAccount gets the serviceAccount property value. The pod service account. func (m *KubernetesPodEvidence) GetServiceAccount()(KubernetesServiceAccountEvidenceable) { val, err := m.GetBackingStore().Get("serviceAccount") if err != nil { @@ -313,63 +313,63 @@ func (m *KubernetesPodEvidence) Serialize(writer i878a80d2330e89d26896388a3f487e } return nil } -// SetContainers sets the containers property value. The containers property +// SetContainers sets the containers property value. The list of pod containers which are not init or ephemeral containers. func (m *KubernetesPodEvidence) SetContainers(value []ContainerEvidenceable)() { err := m.GetBackingStore().Set("containers", value) if err != nil { panic(err) } } -// SetController sets the controller property value. The controller property +// SetController sets the controller property value. The pod controller. func (m *KubernetesPodEvidence) SetController(value KubernetesControllerEvidenceable)() { err := m.GetBackingStore().Set("controller", value) if err != nil { panic(err) } } -// SetEphemeralContainers sets the ephemeralContainers property value. The ephemeralContainers property +// SetEphemeralContainers sets the ephemeralContainers property value. The list of pod ephemeral containers. func (m *KubernetesPodEvidence) SetEphemeralContainers(value []ContainerEvidenceable)() { err := m.GetBackingStore().Set("ephemeralContainers", value) if err != nil { panic(err) } } -// SetInitContainers sets the initContainers property value. The initContainers property +// SetInitContainers sets the initContainers property value. The list of pod init containers. func (m *KubernetesPodEvidence) SetInitContainers(value []ContainerEvidenceable)() { err := m.GetBackingStore().Set("initContainers", value) if err != nil { panic(err) } } -// SetLabels sets the labels property value. The labels property +// SetLabels sets the labels property value. The pod labels. func (m *KubernetesPodEvidence) SetLabels(value Dictionaryable)() { err := m.GetBackingStore().Set("labels", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. The pod name. func (m *KubernetesPodEvidence) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetNamespace sets the namespace property value. The namespace property +// SetNamespace sets the namespace property value. The pod namespace. func (m *KubernetesPodEvidence) SetNamespace(value KubernetesNamespaceEvidenceable)() { err := m.GetBackingStore().Set("namespace", value) if err != nil { panic(err) } } -// SetPodIp sets the podIp property value. The podIp property +// SetPodIp sets the podIp property value. The pod IP. func (m *KubernetesPodEvidence) SetPodIp(value IpEvidenceable)() { err := m.GetBackingStore().Set("podIp", value) if err != nil { panic(err) } } -// SetServiceAccount sets the serviceAccount property value. The serviceAccount property +// SetServiceAccount sets the serviceAccount property value. The pod service account. func (m *KubernetesPodEvidence) SetServiceAccount(value KubernetesServiceAccountEvidenceable)() { err := m.GetBackingStore().Set("serviceAccount", value) if err != nil { diff --git a/models/security/kubernetes_secret_evidence.go b/models/security/kubernetes_secret_evidence.go index aa2847cb48a..8ead3cbb7a9 100644 --- a/models/security/kubernetes_secret_evidence.go +++ b/models/security/kubernetes_secret_evidence.go @@ -56,7 +56,7 @@ func (m *KubernetesSecretEvidence) GetFieldDeserializers()(map[string]func(i878a } return res } -// GetName gets the name property value. The name property +// GetName gets the name property value. The secret name. func (m *KubernetesSecretEvidence) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -67,7 +67,7 @@ func (m *KubernetesSecretEvidence) GetName()(*string) { } return nil } -// GetNamespace gets the namespace property value. The namespace property +// GetNamespace gets the namespace property value. The secret namespace. func (m *KubernetesSecretEvidence) GetNamespace()(KubernetesNamespaceEvidenceable) { val, err := m.GetBackingStore().Get("namespace") if err != nil { @@ -78,7 +78,7 @@ func (m *KubernetesSecretEvidence) GetNamespace()(KubernetesNamespaceEvidenceabl } return nil } -// GetSecretType gets the secretType property value. The secretType property +// GetSecretType gets the secretType property value. The secret type can include both built-in types and custom ones. Examples of built-in types are: Opaque, kubernetes.io/service-account-token, kubernetes.io/dockercfg, kubernetes.io/dockerconfigjson, kubernetes.io/basic-auth, kubernetes.io/ssh-auth, kubernetes.io/tls, bootstrap.kubernetes.io/token. func (m *KubernetesSecretEvidence) GetSecretType()(*string) { val, err := m.GetBackingStore().Get("secretType") if err != nil { @@ -115,21 +115,21 @@ func (m *KubernetesSecretEvidence) Serialize(writer i878a80d2330e89d26896388a3f4 } return nil } -// SetName sets the name property value. The name property +// SetName sets the name property value. The secret name. func (m *KubernetesSecretEvidence) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetNamespace sets the namespace property value. The namespace property +// SetNamespace sets the namespace property value. The secret namespace. func (m *KubernetesSecretEvidence) SetNamespace(value KubernetesNamespaceEvidenceable)() { err := m.GetBackingStore().Set("namespace", value) if err != nil { panic(err) } } -// SetSecretType sets the secretType property value. The secretType property +// SetSecretType sets the secretType property value. The secret type can include both built-in types and custom ones. Examples of built-in types are: Opaque, kubernetes.io/service-account-token, kubernetes.io/dockercfg, kubernetes.io/dockerconfigjson, kubernetes.io/basic-auth, kubernetes.io/ssh-auth, kubernetes.io/tls, bootstrap.kubernetes.io/token. func (m *KubernetesSecretEvidence) SetSecretType(value *string)() { err := m.GetBackingStore().Set("secretType", value) if err != nil { diff --git a/models/security/kubernetes_service_account_evidence.go b/models/security/kubernetes_service_account_evidence.go index 38292d115ab..f68ff68f56d 100644 --- a/models/security/kubernetes_service_account_evidence.go +++ b/models/security/kubernetes_service_account_evidence.go @@ -46,7 +46,7 @@ func (m *KubernetesServiceAccountEvidence) GetFieldDeserializers()(map[string]fu } return res } -// GetName gets the name property value. The name property +// GetName gets the name property value. The service account name. func (m *KubernetesServiceAccountEvidence) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -57,7 +57,7 @@ func (m *KubernetesServiceAccountEvidence) GetName()(*string) { } return nil } -// GetNamespace gets the namespace property value. The namespace property +// GetNamespace gets the namespace property value. The service account namespace. func (m *KubernetesServiceAccountEvidence) GetNamespace()(KubernetesNamespaceEvidenceable) { val, err := m.GetBackingStore().Get("namespace") if err != nil { @@ -88,14 +88,14 @@ func (m *KubernetesServiceAccountEvidence) Serialize(writer i878a80d2330e89d2689 } return nil } -// SetName sets the name property value. The name property +// SetName sets the name property value. The service account name. func (m *KubernetesServiceAccountEvidence) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetNamespace sets the namespace property value. The namespace property +// SetNamespace sets the namespace property value. The service account namespace. func (m *KubernetesServiceAccountEvidence) SetNamespace(value KubernetesNamespaceEvidenceable)() { err := m.GetBackingStore().Set("namespace", value) if err != nil { diff --git a/models/security/kubernetes_service_evidence.go b/models/security/kubernetes_service_evidence.go index c90322e4fbf..273cdbe034b 100644 --- a/models/security/kubernetes_service_evidence.go +++ b/models/security/kubernetes_service_evidence.go @@ -21,7 +21,7 @@ func NewKubernetesServiceEvidence()(*KubernetesServiceEvidence) { func CreateKubernetesServiceEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewKubernetesServiceEvidence(), nil } -// GetClusterIP gets the clusterIP property value. The clusterIP property +// GetClusterIP gets the clusterIP property value. The service cluster IP. func (m *KubernetesServiceEvidence) GetClusterIP()(IpEvidenceable) { val, err := m.GetBackingStore().Get("clusterIP") if err != nil { @@ -32,7 +32,7 @@ func (m *KubernetesServiceEvidence) GetClusterIP()(IpEvidenceable) { } return nil } -// GetExternalIPs gets the externalIPs property value. The externalIPs property +// GetExternalIPs gets the externalIPs property value. The service external IPs. func (m *KubernetesServiceEvidence) GetExternalIPs()([]IpEvidenceable) { val, err := m.GetBackingStore().Get("externalIPs") if err != nil { @@ -140,7 +140,7 @@ func (m *KubernetesServiceEvidence) GetFieldDeserializers()(map[string]func(i878 } return res } -// GetLabels gets the labels property value. The labels property +// GetLabels gets the labels property value. The service labels. func (m *KubernetesServiceEvidence) GetLabels()(Dictionaryable) { val, err := m.GetBackingStore().Get("labels") if err != nil { @@ -151,7 +151,7 @@ func (m *KubernetesServiceEvidence) GetLabels()(Dictionaryable) { } return nil } -// GetName gets the name property value. The name property +// GetName gets the name property value. The service name. func (m *KubernetesServiceEvidence) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -162,7 +162,7 @@ func (m *KubernetesServiceEvidence) GetName()(*string) { } return nil } -// GetNamespace gets the namespace property value. The namespace property +// GetNamespace gets the namespace property value. The service namespace. func (m *KubernetesServiceEvidence) GetNamespace()(KubernetesNamespaceEvidenceable) { val, err := m.GetBackingStore().Get("namespace") if err != nil { @@ -173,7 +173,7 @@ func (m *KubernetesServiceEvidence) GetNamespace()(KubernetesNamespaceEvidenceab } return nil } -// GetSelector gets the selector property value. The selector property +// GetSelector gets the selector property value. The service selector. func (m *KubernetesServiceEvidence) GetSelector()(Dictionaryable) { val, err := m.GetBackingStore().Get("selector") if err != nil { @@ -184,7 +184,7 @@ func (m *KubernetesServiceEvidence) GetSelector()(Dictionaryable) { } return nil } -// GetServicePorts gets the servicePorts property value. The servicePorts property +// GetServicePorts gets the servicePorts property value. The list of service ports. func (m *KubernetesServiceEvidence) GetServicePorts()([]KubernetesServicePortable) { val, err := m.GetBackingStore().Get("servicePorts") if err != nil { @@ -275,49 +275,49 @@ func (m *KubernetesServiceEvidence) Serialize(writer i878a80d2330e89d26896388a3f } return nil } -// SetClusterIP sets the clusterIP property value. The clusterIP property +// SetClusterIP sets the clusterIP property value. The service cluster IP. func (m *KubernetesServiceEvidence) SetClusterIP(value IpEvidenceable)() { err := m.GetBackingStore().Set("clusterIP", value) if err != nil { panic(err) } } -// SetExternalIPs sets the externalIPs property value. The externalIPs property +// SetExternalIPs sets the externalIPs property value. The service external IPs. func (m *KubernetesServiceEvidence) SetExternalIPs(value []IpEvidenceable)() { err := m.GetBackingStore().Set("externalIPs", value) if err != nil { panic(err) } } -// SetLabels sets the labels property value. The labels property +// SetLabels sets the labels property value. The service labels. func (m *KubernetesServiceEvidence) SetLabels(value Dictionaryable)() { err := m.GetBackingStore().Set("labels", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. The service name. func (m *KubernetesServiceEvidence) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetNamespace sets the namespace property value. The namespace property +// SetNamespace sets the namespace property value. The service namespace. func (m *KubernetesServiceEvidence) SetNamespace(value KubernetesNamespaceEvidenceable)() { err := m.GetBackingStore().Set("namespace", value) if err != nil { panic(err) } } -// SetSelector sets the selector property value. The selector property +// SetSelector sets the selector property value. The service selector. func (m *KubernetesServiceEvidence) SetSelector(value Dictionaryable)() { err := m.GetBackingStore().Set("selector", value) if err != nil { panic(err) } } -// SetServicePorts sets the servicePorts property value. The servicePorts property +// SetServicePorts sets the servicePorts property value. The list of service ports. func (m *KubernetesServiceEvidence) SetServicePorts(value []KubernetesServicePortable)() { err := m.GetBackingStore().Set("servicePorts", value) if err != nil { diff --git a/models/security/kubernetes_service_port.go b/models/security/kubernetes_service_port.go index 9a094844c99..a69330637c8 100644 --- a/models/security/kubernetes_service_port.go +++ b/models/security/kubernetes_service_port.go @@ -34,7 +34,7 @@ func (m *KubernetesServicePort) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAppProtocol gets the appProtocol property value. The appProtocol property +// GetAppProtocol gets the appProtocol property value. The application protocol for this port. func (m *KubernetesServicePort) GetAppProtocol()(*string) { val, err := m.GetBackingStore().Get("appProtocol") if err != nil { @@ -124,7 +124,7 @@ func (m *KubernetesServicePort) GetFieldDeserializers()(map[string]func(i878a80d } return res } -// GetName gets the name property value. The name property +// GetName gets the name property value. The name of this port within the service. func (m *KubernetesServicePort) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -135,7 +135,7 @@ func (m *KubernetesServicePort) GetName()(*string) { } return nil } -// GetNodePort gets the nodePort property value. The nodePort property +// GetNodePort gets the nodePort property value. The port on each node on which this service is exposed when the type is either NodePort or LoadBalancer. func (m *KubernetesServicePort) GetNodePort()(*int32) { val, err := m.GetBackingStore().Get("nodePort") if err != nil { @@ -157,7 +157,7 @@ func (m *KubernetesServicePort) GetOdataType()(*string) { } return nil } -// GetPort gets the port property value. The port property +// GetPort gets the port property value. The port that this service exposes. func (m *KubernetesServicePort) GetPort()(*int32) { val, err := m.GetBackingStore().Get("port") if err != nil { @@ -168,7 +168,7 @@ func (m *KubernetesServicePort) GetPort()(*int32) { } return nil } -// GetProtocol gets the protocol property value. The protocol property +// GetProtocol gets the protocol property value. The protocol name. Possible values are: udp, tcp, sctp, unknownFutureValue. func (m *KubernetesServicePort) GetProtocol()(*ContainerPortProtocol) { val, err := m.GetBackingStore().Get("protocol") if err != nil { @@ -179,7 +179,7 @@ func (m *KubernetesServicePort) GetProtocol()(*ContainerPortProtocol) { } return nil } -// GetTargetPort gets the targetPort property value. The targetPort property +// GetTargetPort gets the targetPort property value. The name or number of the port to access on the pods targeted by the service. The port number must be in the range 1 to 65535. The name must be an IANASVCNAME. func (m *KubernetesServicePort) GetTargetPort()(*string) { val, err := m.GetBackingStore().Get("targetPort") if err != nil { @@ -250,7 +250,7 @@ func (m *KubernetesServicePort) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetAppProtocol sets the appProtocol property value. The appProtocol property +// SetAppProtocol sets the appProtocol property value. The application protocol for this port. func (m *KubernetesServicePort) SetAppProtocol(value *string)() { err := m.GetBackingStore().Set("appProtocol", value) if err != nil { @@ -261,14 +261,14 @@ func (m *KubernetesServicePort) SetAppProtocol(value *string)() { func (m *KubernetesServicePort) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetName sets the name property value. The name property +// SetName sets the name property value. The name of this port within the service. func (m *KubernetesServicePort) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetNodePort sets the nodePort property value. The nodePort property +// SetNodePort sets the nodePort property value. The port on each node on which this service is exposed when the type is either NodePort or LoadBalancer. func (m *KubernetesServicePort) SetNodePort(value *int32)() { err := m.GetBackingStore().Set("nodePort", value) if err != nil { @@ -282,21 +282,21 @@ func (m *KubernetesServicePort) SetOdataType(value *string)() { panic(err) } } -// SetPort sets the port property value. The port property +// SetPort sets the port property value. The port that this service exposes. func (m *KubernetesServicePort) SetPort(value *int32)() { err := m.GetBackingStore().Set("port", value) if err != nil { panic(err) } } -// SetProtocol sets the protocol property value. The protocol property +// SetProtocol sets the protocol property value. The protocol name. Possible values are: udp, tcp, sctp, unknownFutureValue. func (m *KubernetesServicePort) SetProtocol(value *ContainerPortProtocol)() { err := m.GetBackingStore().Set("protocol", value) if err != nil { panic(err) } } -// SetTargetPort sets the targetPort property value. The targetPort property +// SetTargetPort sets the targetPort property value. The name or number of the port to access on the pods targeted by the service. The port number must be in the range 1 to 65535. The name must be an IANASVCNAME. func (m *KubernetesServicePort) SetTargetPort(value *string)() { err := m.GetBackingStore().Set("targetPort", value) if err != nil { diff --git a/models/security/registry_value_evidence.go b/models/security/registry_value_evidence.go index effec026e3a..5a9cc3dfbdc 100644 --- a/models/security/registry_value_evidence.go +++ b/models/security/registry_value_evidence.go @@ -86,7 +86,7 @@ func (m *RegistryValueEvidence) GetFieldDeserializers()(map[string]func(i878a80d } return res } -// GetMdeDeviceId gets the mdeDeviceId property value. The mdeDeviceId property +// GetMdeDeviceId gets the mdeDeviceId property value. A unique identifier assigned to a device by Microsoft Defender for Endpoint. func (m *RegistryValueEvidence) GetMdeDeviceId()(*string) { val, err := m.GetBackingStore().Get("mdeDeviceId") if err != nil { @@ -196,7 +196,7 @@ func (m *RegistryValueEvidence) Serialize(writer i878a80d2330e89d26896388a3f487e } return nil } -// SetMdeDeviceId sets the mdeDeviceId property value. The mdeDeviceId property +// SetMdeDeviceId sets the mdeDeviceId property value. A unique identifier assigned to a device by Microsoft Defender for Endpoint. func (m *RegistryValueEvidence) SetMdeDeviceId(value *string)() { err := m.GetBackingStore().Set("mdeDeviceId", value) if err != nil { diff --git a/models/security/threat_intelligence.go b/models/security/threat_intelligence.go index dcd63494a17..2f51e612438 100644 --- a/models/security/threat_intelligence.go +++ b/models/security/threat_intelligence.go @@ -269,6 +269,22 @@ func (m *ThreatIntelligence) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["whoisHistoryRecords"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateWhoisHistoryRecordFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]WhoisHistoryRecordable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(WhoisHistoryRecordable) + } + } + m.SetWhoisHistoryRecords(res) + } + return nil + } res["whoisRecords"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateWhoisRecordFromDiscriminatorValue) if err != nil { @@ -309,7 +325,7 @@ func (m *ThreatIntelligence) GetHostCookies()([]HostCookieable) { } return nil } -// GetHostPairs gets the hostPairs property value. The hostPairs property +// GetHostPairs gets the hostPairs property value. Retrieve details about microsoft.graph.security.hostTracker objects.Note: List retrieval is not yet supported. func (m *ThreatIntelligence) GetHostPairs()([]HostPairable) { val, err := m.GetBackingStore().Get("hostPairs") if err != nil { @@ -419,6 +435,17 @@ func (m *ThreatIntelligence) GetVulnerabilities()([]Vulnerabilityable) { } return nil } +// GetWhoisHistoryRecords gets the whoisHistoryRecords property value. The whoisHistoryRecords property +func (m *ThreatIntelligence) GetWhoisHistoryRecords()([]WhoisHistoryRecordable) { + val, err := m.GetBackingStore().Get("whoisHistoryRecords") + if err != nil { + panic(err) + } + if val != nil { + return val.([]WhoisHistoryRecordable) + } + return nil +} // GetWhoisRecords gets the whoisRecords property value. The whoisRecords property func (m *ThreatIntelligence) GetWhoisRecords()([]WhoisRecordable) { val, err := m.GetBackingStore().Get("whoisRecords") @@ -604,6 +631,18 @@ func (m *ThreatIntelligence) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + if m.GetWhoisHistoryRecords() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetWhoisHistoryRecords())) + for i, v := range m.GetWhoisHistoryRecords() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("whoisHistoryRecords", cast) + if err != nil { + return err + } + } if m.GetWhoisRecords() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetWhoisRecords())) for i, v := range m.GetWhoisRecords() { @@ -646,7 +685,7 @@ func (m *ThreatIntelligence) SetHostCookies(value []HostCookieable)() { panic(err) } } -// SetHostPairs sets the hostPairs property value. The hostPairs property +// SetHostPairs sets the hostPairs property value. Retrieve details about microsoft.graph.security.hostTracker objects.Note: List retrieval is not yet supported. func (m *ThreatIntelligence) SetHostPairs(value []HostPairable)() { err := m.GetBackingStore().Set("hostPairs", value) if err != nil { @@ -716,6 +755,13 @@ func (m *ThreatIntelligence) SetVulnerabilities(value []Vulnerabilityable)() { panic(err) } } +// SetWhoisHistoryRecords sets the whoisHistoryRecords property value. The whoisHistoryRecords property +func (m *ThreatIntelligence) SetWhoisHistoryRecords(value []WhoisHistoryRecordable)() { + err := m.GetBackingStore().Set("whoisHistoryRecords", value) + if err != nil { + panic(err) + } +} // SetWhoisRecords sets the whoisRecords property value. The whoisRecords property func (m *ThreatIntelligence) SetWhoisRecords(value []WhoisRecordable)() { err := m.GetBackingStore().Set("whoisRecords", value) @@ -741,6 +787,7 @@ type ThreatIntelligenceable interface { GetSslCertificates()([]SslCertificateable) GetSubdomains()([]Subdomainable) GetVulnerabilities()([]Vulnerabilityable) + GetWhoisHistoryRecords()([]WhoisHistoryRecordable) GetWhoisRecords()([]WhoisRecordable) SetArticleIndicators(value []ArticleIndicatorable)() SetArticles(value []Articleable)() @@ -756,5 +803,6 @@ type ThreatIntelligenceable interface { SetSslCertificates(value []SslCertificateable)() SetSubdomains(value []Subdomainable)() SetVulnerabilities(value []Vulnerabilityable)() + SetWhoisHistoryRecords(value []WhoisHistoryRecordable)() SetWhoisRecords(value []WhoisRecordable)() } diff --git a/models/security/whois_base_record.go b/models/security/whois_base_record.go new file mode 100644 index 00000000000..c500adbf81f --- /dev/null +++ b/models/security/whois_base_record.go @@ -0,0 +1,721 @@ +package security + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// WhoisBaseRecord +type WhoisBaseRecord struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity +} +// NewWhoisBaseRecord instantiates a new whoisBaseRecord and sets the default values. +func NewWhoisBaseRecord()(*WhoisBaseRecord) { + m := &WhoisBaseRecord{ + Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), + } + return m +} +// CreateWhoisBaseRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateWhoisBaseRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.security.whoisHistoryRecord": + return NewWhoisHistoryRecord(), nil + case "#microsoft.graph.security.whoisRecord": + return NewWhoisRecord(), nil + } + } + } + } + return NewWhoisBaseRecord(), nil +} +// GetAbuse gets the abuse property value. The abuse property +func (m *WhoisBaseRecord) GetAbuse()(WhoisContactable) { + val, err := m.GetBackingStore().Get("abuse") + if err != nil { + panic(err) + } + if val != nil { + return val.(WhoisContactable) + } + return nil +} +// GetAdmin gets the admin property value. The admin property +func (m *WhoisBaseRecord) GetAdmin()(WhoisContactable) { + val, err := m.GetBackingStore().Get("admin") + if err != nil { + panic(err) + } + if val != nil { + return val.(WhoisContactable) + } + return nil +} +// GetBilling gets the billing property value. The billing property +func (m *WhoisBaseRecord) GetBilling()(WhoisContactable) { + val, err := m.GetBackingStore().Get("billing") + if err != nil { + panic(err) + } + if val != nil { + return val.(WhoisContactable) + } + return nil +} +// GetDomainStatus gets the domainStatus property value. The domainStatus property +func (m *WhoisBaseRecord) GetDomainStatus()(*string) { + val, err := m.GetBackingStore().Get("domainStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExpirationDateTime gets the expirationDateTime property value. The expirationDateTime property +func (m *WhoisBaseRecord) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("expirationDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *WhoisBaseRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["abuse"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAbuse(val.(WhoisContactable)) + } + return nil + } + res["admin"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAdmin(val.(WhoisContactable)) + } + return nil + } + res["billing"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBilling(val.(WhoisContactable)) + } + return nil + } + res["domainStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDomainStatus(val) + } + return nil + } + res["expirationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetExpirationDateTime(val) + } + return nil + } + res["firstSeenDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetFirstSeenDateTime(val) + } + return nil + } + res["host"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateHostFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetHost(val.(Hostable)) + } + return nil + } + res["lastSeenDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastSeenDateTime(val) + } + return nil + } + res["lastUpdateDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdateDateTime(val) + } + return nil + } + res["nameservers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateWhoisNameserverFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]WhoisNameserverable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(WhoisNameserverable) + } + } + m.SetNameservers(res) + } + return nil + } + res["noc"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNoc(val.(WhoisContactable)) + } + return nil + } + res["rawWhoisText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRawWhoisText(val) + } + return nil + } + res["registrant"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetRegistrant(val.(WhoisContactable)) + } + return nil + } + res["registrar"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetRegistrar(val.(WhoisContactable)) + } + return nil + } + res["registrationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetRegistrationDateTime(val) + } + return nil + } + res["technical"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTechnical(val.(WhoisContactable)) + } + return nil + } + res["whoisServer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetWhoisServer(val) + } + return nil + } + res["zone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetZone(val.(WhoisContactable)) + } + return nil + } + return res +} +// GetFirstSeenDateTime gets the firstSeenDateTime property value. The firstSeenDateTime property +func (m *WhoisBaseRecord) GetFirstSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("firstSeenDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetHost gets the host property value. The host property +func (m *WhoisBaseRecord) GetHost()(Hostable) { + val, err := m.GetBackingStore().Get("host") + if err != nil { + panic(err) + } + if val != nil { + return val.(Hostable) + } + return nil +} +// GetLastSeenDateTime gets the lastSeenDateTime property value. The lastSeenDateTime property +func (m *WhoisBaseRecord) GetLastSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastSeenDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetLastUpdateDateTime gets the lastUpdateDateTime property value. The lastUpdateDateTime property +func (m *WhoisBaseRecord) GetLastUpdateDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastUpdateDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetNameservers gets the nameservers property value. The nameservers property +func (m *WhoisBaseRecord) GetNameservers()([]WhoisNameserverable) { + val, err := m.GetBackingStore().Get("nameservers") + if err != nil { + panic(err) + } + if val != nil { + return val.([]WhoisNameserverable) + } + return nil +} +// GetNoc gets the noc property value. The noc property +func (m *WhoisBaseRecord) GetNoc()(WhoisContactable) { + val, err := m.GetBackingStore().Get("noc") + if err != nil { + panic(err) + } + if val != nil { + return val.(WhoisContactable) + } + return nil +} +// GetRawWhoisText gets the rawWhoisText property value. The rawWhoisText property +func (m *WhoisBaseRecord) GetRawWhoisText()(*string) { + val, err := m.GetBackingStore().Get("rawWhoisText") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRegistrant gets the registrant property value. The registrant property +func (m *WhoisBaseRecord) GetRegistrant()(WhoisContactable) { + val, err := m.GetBackingStore().Get("registrant") + if err != nil { + panic(err) + } + if val != nil { + return val.(WhoisContactable) + } + return nil +} +// GetRegistrar gets the registrar property value. The registrar property +func (m *WhoisBaseRecord) GetRegistrar()(WhoisContactable) { + val, err := m.GetBackingStore().Get("registrar") + if err != nil { + panic(err) + } + if val != nil { + return val.(WhoisContactable) + } + return nil +} +// GetRegistrationDateTime gets the registrationDateTime property value. The registrationDateTime property +func (m *WhoisBaseRecord) GetRegistrationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("registrationDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetTechnical gets the technical property value. The technical property +func (m *WhoisBaseRecord) GetTechnical()(WhoisContactable) { + val, err := m.GetBackingStore().Get("technical") + if err != nil { + panic(err) + } + if val != nil { + return val.(WhoisContactable) + } + return nil +} +// GetWhoisServer gets the whoisServer property value. The whoisServer property +func (m *WhoisBaseRecord) GetWhoisServer()(*string) { + val, err := m.GetBackingStore().Get("whoisServer") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetZone gets the zone property value. The zone property +func (m *WhoisBaseRecord) GetZone()(WhoisContactable) { + val, err := m.GetBackingStore().Get("zone") + if err != nil { + panic(err) + } + if val != nil { + return val.(WhoisContactable) + } + return nil +} +// Serialize serializes information the current object +func (m *WhoisBaseRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("abuse", m.GetAbuse()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("admin", m.GetAdmin()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("billing", m.GetBilling()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("domainStatus", m.GetDomainStatus()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("expirationDateTime", m.GetExpirationDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("firstSeenDateTime", m.GetFirstSeenDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("host", m.GetHost()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("lastSeenDateTime", m.GetLastSeenDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("lastUpdateDateTime", m.GetLastUpdateDateTime()) + if err != nil { + return err + } + } + if m.GetNameservers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetNameservers())) + for i, v := range m.GetNameservers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("nameservers", cast) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("noc", m.GetNoc()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("rawWhoisText", m.GetRawWhoisText()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("registrant", m.GetRegistrant()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("registrar", m.GetRegistrar()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("registrationDateTime", m.GetRegistrationDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("technical", m.GetTechnical()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("whoisServer", m.GetWhoisServer()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("zone", m.GetZone()) + if err != nil { + return err + } + } + return nil +} +// SetAbuse sets the abuse property value. The abuse property +func (m *WhoisBaseRecord) SetAbuse(value WhoisContactable)() { + err := m.GetBackingStore().Set("abuse", value) + if err != nil { + panic(err) + } +} +// SetAdmin sets the admin property value. The admin property +func (m *WhoisBaseRecord) SetAdmin(value WhoisContactable)() { + err := m.GetBackingStore().Set("admin", value) + if err != nil { + panic(err) + } +} +// SetBilling sets the billing property value. The billing property +func (m *WhoisBaseRecord) SetBilling(value WhoisContactable)() { + err := m.GetBackingStore().Set("billing", value) + if err != nil { + panic(err) + } +} +// SetDomainStatus sets the domainStatus property value. The domainStatus property +func (m *WhoisBaseRecord) SetDomainStatus(value *string)() { + err := m.GetBackingStore().Set("domainStatus", value) + if err != nil { + panic(err) + } +} +// SetExpirationDateTime sets the expirationDateTime property value. The expirationDateTime property +func (m *WhoisBaseRecord) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("expirationDateTime", value) + if err != nil { + panic(err) + } +} +// SetFirstSeenDateTime sets the firstSeenDateTime property value. The firstSeenDateTime property +func (m *WhoisBaseRecord) SetFirstSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("firstSeenDateTime", value) + if err != nil { + panic(err) + } +} +// SetHost sets the host property value. The host property +func (m *WhoisBaseRecord) SetHost(value Hostable)() { + err := m.GetBackingStore().Set("host", value) + if err != nil { + panic(err) + } +} +// SetLastSeenDateTime sets the lastSeenDateTime property value. The lastSeenDateTime property +func (m *WhoisBaseRecord) SetLastSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastSeenDateTime", value) + if err != nil { + panic(err) + } +} +// SetLastUpdateDateTime sets the lastUpdateDateTime property value. The lastUpdateDateTime property +func (m *WhoisBaseRecord) SetLastUpdateDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastUpdateDateTime", value) + if err != nil { + panic(err) + } +} +// SetNameservers sets the nameservers property value. The nameservers property +func (m *WhoisBaseRecord) SetNameservers(value []WhoisNameserverable)() { + err := m.GetBackingStore().Set("nameservers", value) + if err != nil { + panic(err) + } +} +// SetNoc sets the noc property value. The noc property +func (m *WhoisBaseRecord) SetNoc(value WhoisContactable)() { + err := m.GetBackingStore().Set("noc", value) + if err != nil { + panic(err) + } +} +// SetRawWhoisText sets the rawWhoisText property value. The rawWhoisText property +func (m *WhoisBaseRecord) SetRawWhoisText(value *string)() { + err := m.GetBackingStore().Set("rawWhoisText", value) + if err != nil { + panic(err) + } +} +// SetRegistrant sets the registrant property value. The registrant property +func (m *WhoisBaseRecord) SetRegistrant(value WhoisContactable)() { + err := m.GetBackingStore().Set("registrant", value) + if err != nil { + panic(err) + } +} +// SetRegistrar sets the registrar property value. The registrar property +func (m *WhoisBaseRecord) SetRegistrar(value WhoisContactable)() { + err := m.GetBackingStore().Set("registrar", value) + if err != nil { + panic(err) + } +} +// SetRegistrationDateTime sets the registrationDateTime property value. The registrationDateTime property +func (m *WhoisBaseRecord) SetRegistrationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("registrationDateTime", value) + if err != nil { + panic(err) + } +} +// SetTechnical sets the technical property value. The technical property +func (m *WhoisBaseRecord) SetTechnical(value WhoisContactable)() { + err := m.GetBackingStore().Set("technical", value) + if err != nil { + panic(err) + } +} +// SetWhoisServer sets the whoisServer property value. The whoisServer property +func (m *WhoisBaseRecord) SetWhoisServer(value *string)() { + err := m.GetBackingStore().Set("whoisServer", value) + if err != nil { + panic(err) + } +} +// SetZone sets the zone property value. The zone property +func (m *WhoisBaseRecord) SetZone(value WhoisContactable)() { + err := m.GetBackingStore().Set("zone", value) + if err != nil { + panic(err) + } +} +// WhoisBaseRecordable +type WhoisBaseRecordable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAbuse()(WhoisContactable) + GetAdmin()(WhoisContactable) + GetBilling()(WhoisContactable) + GetDomainStatus()(*string) + GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetFirstSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetHost()(Hostable) + GetLastSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetLastUpdateDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetNameservers()([]WhoisNameserverable) + GetNoc()(WhoisContactable) + GetRawWhoisText()(*string) + GetRegistrant()(WhoisContactable) + GetRegistrar()(WhoisContactable) + GetRegistrationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetTechnical()(WhoisContactable) + GetWhoisServer()(*string) + GetZone()(WhoisContactable) + SetAbuse(value WhoisContactable)() + SetAdmin(value WhoisContactable)() + SetBilling(value WhoisContactable)() + SetDomainStatus(value *string)() + SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetFirstSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetHost(value Hostable)() + SetLastSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetLastUpdateDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetNameservers(value []WhoisNameserverable)() + SetNoc(value WhoisContactable)() + SetRawWhoisText(value *string)() + SetRegistrant(value WhoisContactable)() + SetRegistrar(value WhoisContactable)() + SetRegistrationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetTechnical(value WhoisContactable)() + SetWhoisServer(value *string)() + SetZone(value WhoisContactable)() +} diff --git a/models/security/whois_history_record.go b/models/security/whois_history_record.go new file mode 100644 index 00000000000..8a2ccd0c822 --- /dev/null +++ b/models/security/whois_history_record.go @@ -0,0 +1,41 @@ +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// WhoisHistoryRecord +type WhoisHistoryRecord struct { + WhoisBaseRecord +} +// NewWhoisHistoryRecord instantiates a new whoisHistoryRecord and sets the default values. +func NewWhoisHistoryRecord()(*WhoisHistoryRecord) { + m := &WhoisHistoryRecord{ + WhoisBaseRecord: *NewWhoisBaseRecord(), + } + odataTypeValue := "#microsoft.graph.security.whoisHistoryRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateWhoisHistoryRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateWhoisHistoryRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWhoisHistoryRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *WhoisHistoryRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.WhoisBaseRecord.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *WhoisHistoryRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.WhoisBaseRecord.Serialize(writer) + if err != nil { + return err + } + return nil +} +// WhoisHistoryRecordable +type WhoisHistoryRecordable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + WhoisBaseRecordable +} diff --git a/models/security/whois_history_record_collection_response.go b/models/security/whois_history_record_collection_response.go new file mode 100644 index 00000000000..ca63a4a8dcf --- /dev/null +++ b/models/security/whois_history_record_collection_response.go @@ -0,0 +1,88 @@ +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// WhoisHistoryRecordCollectionResponse +type WhoisHistoryRecordCollectionResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewWhoisHistoryRecordCollectionResponse instantiates a new whoisHistoryRecordCollectionResponse and sets the default values. +func NewWhoisHistoryRecordCollectionResponse()(*WhoisHistoryRecordCollectionResponse) { + m := &WhoisHistoryRecordCollectionResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateWhoisHistoryRecordCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateWhoisHistoryRecordCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWhoisHistoryRecordCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *WhoisHistoryRecordCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateWhoisHistoryRecordFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]WhoisHistoryRecordable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(WhoisHistoryRecordable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *WhoisHistoryRecordCollectionResponse) GetValue()([]WhoisHistoryRecordable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]WhoisHistoryRecordable) + } + return nil +} +// Serialize serializes information the current object +func (m *WhoisHistoryRecordCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *WhoisHistoryRecordCollectionResponse) SetValue(value []WhoisHistoryRecordable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// WhoisHistoryRecordCollectionResponseable +type WhoisHistoryRecordCollectionResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]WhoisHistoryRecordable) + SetValue(value []WhoisHistoryRecordable)() +} diff --git a/models/security/whois_record.go b/models/security/whois_record.go index 3673b2ef5c1..afa1e067539 100644 --- a/models/security/whois_record.go +++ b/models/security/whois_record.go @@ -1,701 +1,89 @@ package security import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ) // WhoisRecord type WhoisRecord struct { - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + WhoisBaseRecord } // NewWhoisRecord instantiates a new whoisRecord and sets the default values. func NewWhoisRecord()(*WhoisRecord) { m := &WhoisRecord{ - Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), + WhoisBaseRecord: *NewWhoisBaseRecord(), } + odataTypeValue := "#microsoft.graph.security.whoisRecord" + m.SetOdataType(&odataTypeValue) return m } // CreateWhoisRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value func CreateWhoisRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWhoisRecord(), nil } -// GetAbuse gets the abuse property value. The abuse property -func (m *WhoisRecord) GetAbuse()(WhoisContactable) { - val, err := m.GetBackingStore().Get("abuse") - if err != nil { - panic(err) - } - if val != nil { - return val.(WhoisContactable) - } - return nil -} -// GetAdmin gets the admin property value. The admin property -func (m *WhoisRecord) GetAdmin()(WhoisContactable) { - val, err := m.GetBackingStore().Get("admin") - if err != nil { - panic(err) - } - if val != nil { - return val.(WhoisContactable) - } - return nil -} -// GetBilling gets the billing property value. The billing property -func (m *WhoisRecord) GetBilling()(WhoisContactable) { - val, err := m.GetBackingStore().Get("billing") - if err != nil { - panic(err) - } - if val != nil { - return val.(WhoisContactable) - } - return nil -} -// GetDomainStatus gets the domainStatus property value. The domainStatus property -func (m *WhoisRecord) GetDomainStatus()(*string) { - val, err := m.GetBackingStore().Get("domainStatus") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetExpirationDateTime gets the expirationDateTime property value. The expirationDateTime property -func (m *WhoisRecord) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("expirationDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} // GetFieldDeserializers the deserialization information for the current model func (m *WhoisRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.Entity.GetFieldDeserializers() - res["abuse"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAbuse(val.(WhoisContactable)) - } - return nil - } - res["admin"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAdmin(val.(WhoisContactable)) - } - return nil - } - res["billing"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBilling(val.(WhoisContactable)) - } - return nil - } - res["domainStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDomainStatus(val) - } - return nil - } - res["expirationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetExpirationDateTime(val) - } - return nil - } - res["firstSeenDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() + res := m.WhoisBaseRecord.GetFieldDeserializers() + res["history"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateWhoisHistoryRecordFromDiscriminatorValue) if err != nil { return err } if val != nil { - m.SetFirstSeenDateTime(val) - } - return nil - } - res["host"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateHostFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetHost(val.(Hostable)) - } - return nil - } - res["lastSeenDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetLastSeenDateTime(val) - } - return nil - } - res["lastUpdateDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetLastUpdateDateTime(val) - } - return nil - } - res["nameservers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(CreateWhoisNameserverFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]WhoisNameserverable, len(val)) + res := make([]WhoisHistoryRecordable, len(val)) for i, v := range val { if v != nil { - res[i] = v.(WhoisNameserverable) + res[i] = v.(WhoisHistoryRecordable) } } - m.SetNameservers(res) - } - return nil - } - res["noc"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNoc(val.(WhoisContactable)) - } - return nil - } - res["rawWhoisText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetRawWhoisText(val) - } - return nil - } - res["registrant"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRegistrant(val.(WhoisContactable)) - } - return nil - } - res["registrar"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRegistrar(val.(WhoisContactable)) - } - return nil - } - res["registrationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetRegistrationDateTime(val) - } - return nil - } - res["technical"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTechnical(val.(WhoisContactable)) - } - return nil - } - res["whoisServer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetWhoisServer(val) - } - return nil - } - res["zone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateWhoisContactFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetZone(val.(WhoisContactable)) + m.SetHistory(res) } return nil } return res } -// GetFirstSeenDateTime gets the firstSeenDateTime property value. The firstSeenDateTime property -func (m *WhoisRecord) GetFirstSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("firstSeenDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} -// GetHost gets the host property value. The host property -func (m *WhoisRecord) GetHost()(Hostable) { - val, err := m.GetBackingStore().Get("host") - if err != nil { - panic(err) - } - if val != nil { - return val.(Hostable) - } - return nil -} -// GetLastSeenDateTime gets the lastSeenDateTime property value. The lastSeenDateTime property -func (m *WhoisRecord) GetLastSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("lastSeenDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} -// GetLastUpdateDateTime gets the lastUpdateDateTime property value. The lastUpdateDateTime property -func (m *WhoisRecord) GetLastUpdateDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("lastUpdateDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} -// GetNameservers gets the nameservers property value. The nameservers property -func (m *WhoisRecord) GetNameservers()([]WhoisNameserverable) { - val, err := m.GetBackingStore().Get("nameservers") - if err != nil { - panic(err) - } - if val != nil { - return val.([]WhoisNameserverable) - } - return nil -} -// GetNoc gets the noc property value. The noc property -func (m *WhoisRecord) GetNoc()(WhoisContactable) { - val, err := m.GetBackingStore().Get("noc") - if err != nil { - panic(err) - } - if val != nil { - return val.(WhoisContactable) - } - return nil -} -// GetRawWhoisText gets the rawWhoisText property value. The rawWhoisText property -func (m *WhoisRecord) GetRawWhoisText()(*string) { - val, err := m.GetBackingStore().Get("rawWhoisText") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetRegistrant gets the registrant property value. The registrant property -func (m *WhoisRecord) GetRegistrant()(WhoisContactable) { - val, err := m.GetBackingStore().Get("registrant") - if err != nil { - panic(err) - } - if val != nil { - return val.(WhoisContactable) - } - return nil -} -// GetRegistrar gets the registrar property value. The registrar property -func (m *WhoisRecord) GetRegistrar()(WhoisContactable) { - val, err := m.GetBackingStore().Get("registrar") - if err != nil { - panic(err) - } - if val != nil { - return val.(WhoisContactable) - } - return nil -} -// GetRegistrationDateTime gets the registrationDateTime property value. The registrationDateTime property -func (m *WhoisRecord) GetRegistrationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("registrationDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} -// GetTechnical gets the technical property value. The technical property -func (m *WhoisRecord) GetTechnical()(WhoisContactable) { - val, err := m.GetBackingStore().Get("technical") - if err != nil { - panic(err) - } - if val != nil { - return val.(WhoisContactable) - } - return nil -} -// GetWhoisServer gets the whoisServer property value. The whoisServer property -func (m *WhoisRecord) GetWhoisServer()(*string) { - val, err := m.GetBackingStore().Get("whoisServer") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetZone gets the zone property value. The zone property -func (m *WhoisRecord) GetZone()(WhoisContactable) { - val, err := m.GetBackingStore().Get("zone") +// GetHistory gets the history property value. The history property +func (m *WhoisRecord) GetHistory()([]WhoisHistoryRecordable) { + val, err := m.GetBackingStore().Get("history") if err != nil { panic(err) } if val != nil { - return val.(WhoisContactable) + return val.([]WhoisHistoryRecordable) } return nil } // Serialize serializes information the current object func (m *WhoisRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.Entity.Serialize(writer) + err := m.WhoisBaseRecord.Serialize(writer) if err != nil { return err } - { - err = writer.WriteObjectValue("abuse", m.GetAbuse()) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("admin", m.GetAdmin()) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("billing", m.GetBilling()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("domainStatus", m.GetDomainStatus()) - if err != nil { - return err - } - } - { - err = writer.WriteTimeValue("expirationDateTime", m.GetExpirationDateTime()) - if err != nil { - return err - } - } - { - err = writer.WriteTimeValue("firstSeenDateTime", m.GetFirstSeenDateTime()) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("host", m.GetHost()) - if err != nil { - return err - } - } - { - err = writer.WriteTimeValue("lastSeenDateTime", m.GetLastSeenDateTime()) - if err != nil { - return err - } - } - { - err = writer.WriteTimeValue("lastUpdateDateTime", m.GetLastUpdateDateTime()) - if err != nil { - return err - } - } - if m.GetNameservers() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetNameservers())) - for i, v := range m.GetNameservers() { + if m.GetHistory() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetHistory())) + for i, v := range m.GetHistory() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } - err = writer.WriteCollectionOfObjectValues("nameservers", cast) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("noc", m.GetNoc()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("rawWhoisText", m.GetRawWhoisText()) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("registrant", m.GetRegistrant()) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("registrar", m.GetRegistrar()) - if err != nil { - return err - } - } - { - err = writer.WriteTimeValue("registrationDateTime", m.GetRegistrationDateTime()) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("technical", m.GetTechnical()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("whoisServer", m.GetWhoisServer()) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("zone", m.GetZone()) + err = writer.WriteCollectionOfObjectValues("history", cast) if err != nil { return err } } return nil } -// SetAbuse sets the abuse property value. The abuse property -func (m *WhoisRecord) SetAbuse(value WhoisContactable)() { - err := m.GetBackingStore().Set("abuse", value) - if err != nil { - panic(err) - } -} -// SetAdmin sets the admin property value. The admin property -func (m *WhoisRecord) SetAdmin(value WhoisContactable)() { - err := m.GetBackingStore().Set("admin", value) - if err != nil { - panic(err) - } -} -// SetBilling sets the billing property value. The billing property -func (m *WhoisRecord) SetBilling(value WhoisContactable)() { - err := m.GetBackingStore().Set("billing", value) - if err != nil { - panic(err) - } -} -// SetDomainStatus sets the domainStatus property value. The domainStatus property -func (m *WhoisRecord) SetDomainStatus(value *string)() { - err := m.GetBackingStore().Set("domainStatus", value) - if err != nil { - panic(err) - } -} -// SetExpirationDateTime sets the expirationDateTime property value. The expirationDateTime property -func (m *WhoisRecord) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("expirationDateTime", value) - if err != nil { - panic(err) - } -} -// SetFirstSeenDateTime sets the firstSeenDateTime property value. The firstSeenDateTime property -func (m *WhoisRecord) SetFirstSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("firstSeenDateTime", value) - if err != nil { - panic(err) - } -} -// SetHost sets the host property value. The host property -func (m *WhoisRecord) SetHost(value Hostable)() { - err := m.GetBackingStore().Set("host", value) - if err != nil { - panic(err) - } -} -// SetLastSeenDateTime sets the lastSeenDateTime property value. The lastSeenDateTime property -func (m *WhoisRecord) SetLastSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("lastSeenDateTime", value) - if err != nil { - panic(err) - } -} -// SetLastUpdateDateTime sets the lastUpdateDateTime property value. The lastUpdateDateTime property -func (m *WhoisRecord) SetLastUpdateDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("lastUpdateDateTime", value) - if err != nil { - panic(err) - } -} -// SetNameservers sets the nameservers property value. The nameservers property -func (m *WhoisRecord) SetNameservers(value []WhoisNameserverable)() { - err := m.GetBackingStore().Set("nameservers", value) - if err != nil { - panic(err) - } -} -// SetNoc sets the noc property value. The noc property -func (m *WhoisRecord) SetNoc(value WhoisContactable)() { - err := m.GetBackingStore().Set("noc", value) - if err != nil { - panic(err) - } -} -// SetRawWhoisText sets the rawWhoisText property value. The rawWhoisText property -func (m *WhoisRecord) SetRawWhoisText(value *string)() { - err := m.GetBackingStore().Set("rawWhoisText", value) - if err != nil { - panic(err) - } -} -// SetRegistrant sets the registrant property value. The registrant property -func (m *WhoisRecord) SetRegistrant(value WhoisContactable)() { - err := m.GetBackingStore().Set("registrant", value) - if err != nil { - panic(err) - } -} -// SetRegistrar sets the registrar property value. The registrar property -func (m *WhoisRecord) SetRegistrar(value WhoisContactable)() { - err := m.GetBackingStore().Set("registrar", value) - if err != nil { - panic(err) - } -} -// SetRegistrationDateTime sets the registrationDateTime property value. The registrationDateTime property -func (m *WhoisRecord) SetRegistrationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("registrationDateTime", value) - if err != nil { - panic(err) - } -} -// SetTechnical sets the technical property value. The technical property -func (m *WhoisRecord) SetTechnical(value WhoisContactable)() { - err := m.GetBackingStore().Set("technical", value) - if err != nil { - panic(err) - } -} -// SetWhoisServer sets the whoisServer property value. The whoisServer property -func (m *WhoisRecord) SetWhoisServer(value *string)() { - err := m.GetBackingStore().Set("whoisServer", value) - if err != nil { - panic(err) - } -} -// SetZone sets the zone property value. The zone property -func (m *WhoisRecord) SetZone(value WhoisContactable)() { - err := m.GetBackingStore().Set("zone", value) +// SetHistory sets the history property value. The history property +func (m *WhoisRecord) SetHistory(value []WhoisHistoryRecordable)() { + err := m.GetBackingStore().Set("history", value) if err != nil { panic(err) } } // WhoisRecordable type WhoisRecordable interface { - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAbuse()(WhoisContactable) - GetAdmin()(WhoisContactable) - GetBilling()(WhoisContactable) - GetDomainStatus()(*string) - GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetFirstSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetHost()(Hostable) - GetLastSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetLastUpdateDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetNameservers()([]WhoisNameserverable) - GetNoc()(WhoisContactable) - GetRawWhoisText()(*string) - GetRegistrant()(WhoisContactable) - GetRegistrar()(WhoisContactable) - GetRegistrationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetTechnical()(WhoisContactable) - GetWhoisServer()(*string) - GetZone()(WhoisContactable) - SetAbuse(value WhoisContactable)() - SetAdmin(value WhoisContactable)() - SetBilling(value WhoisContactable)() - SetDomainStatus(value *string)() - SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetFirstSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetHost(value Hostable)() - SetLastSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetLastUpdateDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetNameservers(value []WhoisNameserverable)() - SetNoc(value WhoisContactable)() - SetRawWhoisText(value *string)() - SetRegistrant(value WhoisContactable)() - SetRegistrar(value WhoisContactable)() - SetRegistrationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetTechnical(value WhoisContactable)() - SetWhoisServer(value *string)() - SetZone(value WhoisContactable)() + WhoisBaseRecordable + GetHistory()([]WhoisHistoryRecordable) + SetHistory(value []WhoisHistoryRecordable)() } diff --git a/models/service_principal.go b/models/service_principal.go index cbffda8f426..0a67c9b240f 100644 --- a/models/service_principal.go +++ b/models/service_principal.go @@ -1124,7 +1124,7 @@ func (m *ServicePrincipal) GetOauth2PermissionGrants()([]OAuth2PermissionGrantab } return nil } -// GetOwnedObjects gets the ownedObjects property value. Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// GetOwnedObjects gets the ownedObjects property value. Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). func (m *ServicePrincipal) GetOwnedObjects()([]DirectoryObjectable) { val, err := m.GetBackingStore().Get("ownedObjects") if err != nil { @@ -1135,7 +1135,7 @@ func (m *ServicePrincipal) GetOwnedObjects()([]DirectoryObjectable) { } return nil } -// GetOwners gets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// GetOwners gets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. func (m *ServicePrincipal) GetOwners()([]DirectoryObjectable) { val, err := m.GetBackingStore().Get("owners") if err != nil { @@ -2080,14 +2080,14 @@ func (m *ServicePrincipal) SetOauth2PermissionGrants(value []OAuth2PermissionGra panic(err) } } -// SetOwnedObjects sets the ownedObjects property value. Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// SetOwnedObjects sets the ownedObjects property value. Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). func (m *ServicePrincipal) SetOwnedObjects(value []DirectoryObjectable)() { err := m.GetBackingStore().Set("ownedObjects", value) if err != nil { panic(err) } } -// SetOwners sets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// SetOwners sets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. func (m *ServicePrincipal) SetOwners(value []DirectoryObjectable)() { err := m.GetBackingStore().Set("owners", value) if err != nil { diff --git a/models/sign_in.go b/models/sign_in.go index 4237ff70c4c..a8ead257d6b 100644 --- a/models/sign_in.go +++ b/models/sign_in.go @@ -64,6 +64,17 @@ func (m *SignIn) GetAppliedEventListeners()([]AppliedAuthenticationEventListener } return nil } +// GetAppTokenProtectionStatus gets the appTokenProtectionStatus property value. The appTokenProtectionStatus property +func (m *SignIn) GetAppTokenProtectionStatus()(*TokenProtectionStatus) { + val, err := m.GetBackingStore().Get("appTokenProtectionStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(*TokenProtectionStatus) + } + return nil +} // GetAuthenticationAppDeviceDetails gets the authenticationAppDeviceDetails property value. Provides details about the app and device used during an Azure AD authentication step. func (m *SignIn) GetAuthenticationAppDeviceDetails()(AuthenticationAppDeviceDetailsable) { val, err := m.GetBackingStore().Get("authenticationAppDeviceDetails") @@ -328,6 +339,16 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 } return nil } + res["appTokenProtectionStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseTokenProtectionStatus) + if err != nil { + return err + } + if val != nil { + m.SetAppTokenProtectionStatus(val.(*TokenProtectionStatus)) + } + return nil + } res["authenticationAppDeviceDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateAuthenticationAppDeviceDetailsFromDiscriminatorValue) if err != nil { @@ -690,6 +711,16 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 } return nil } + res["originalTransferMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseOriginalTransferMethods) + if err != nil { + return err + } + if val != nil { + m.SetOriginalTransferMethod(val.(*OriginalTransferMethods)) + } + return nil + } res["privateLinkDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreatePrivateLinkDetailsFromDiscriminatorValue) if err != nil { @@ -898,6 +929,16 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 } return nil } + res["signInTokenProtectionStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseTokenProtectionStatus) + if err != nil { + return err + } + if val != nil { + m.SetSignInTokenProtectionStatus(val.(*TokenProtectionStatus)) + } + return nil + } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateSignInStatusFromDiscriminatorValue) if err != nil { @@ -1089,7 +1130,7 @@ func (m *SignIn) GetLocation()(SignInLocationable) { } return nil } -// GetManagedServiceIdentity gets the managedServiceIdentity property value. Contains information about the managed identity used for the sign in, including its type and associated Azure Resource Manager (ARM) resource ID. +// GetManagedServiceIdentity gets the managedServiceIdentity property value. Contains information about the managed identity used for the sign in, including its type, associated Azure Resource Manager (ARM) resource ID, and federated token information. func (m *SignIn) GetManagedServiceIdentity()(ManagedIdentityable) { val, err := m.GetBackingStore().Get("managedServiceIdentity") if err != nil { @@ -1133,6 +1174,17 @@ func (m *SignIn) GetOriginalRequestId()(*string) { } return nil } +// GetOriginalTransferMethod gets the originalTransferMethod property value. The originalTransferMethod property +func (m *SignIn) GetOriginalTransferMethod()(*OriginalTransferMethods) { + val, err := m.GetBackingStore().Get("originalTransferMethod") + if err != nil { + panic(err) + } + if val != nil { + return val.(*OriginalTransferMethods) + } + return nil +} // GetPrivateLinkDetails gets the privateLinkDetails property value. Contains information about the Azure AD Private Link policy that is associated with the sign in event. func (m *SignIn) GetPrivateLinkDetails()(PrivateLinkDetailsable) { val, err := m.GetBackingStore().Get("privateLinkDetails") @@ -1342,6 +1394,17 @@ func (m *SignIn) GetSignInIdentifierType()(*SignInIdentifierType) { } return nil } +// GetSignInTokenProtectionStatus gets the signInTokenProtectionStatus property value. The signInTokenProtectionStatus property +func (m *SignIn) GetSignInTokenProtectionStatus()(*TokenProtectionStatus) { + val, err := m.GetBackingStore().Get("signInTokenProtectionStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(*TokenProtectionStatus) + } + return nil +} // GetStatus gets the status property value. The sign-in status. Includes the error code and description of the error (in case of a sign-in failure). Supports $filter (eq) on errorCode property. func (m *SignIn) GetStatus()(SignInStatusable) { val, err := m.GetBackingStore().Get("status") @@ -1483,6 +1546,13 @@ func (m *SignIn) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c return err } } + if m.GetAppTokenProtectionStatus() != nil { + cast := (*m.GetAppTokenProtectionStatus()).String() + err = writer.WriteStringValue("appTokenProtectionStatus", &cast) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("authenticationAppDeviceDetails", m.GetAuthenticationAppDeviceDetails()) if err != nil { @@ -1716,6 +1786,13 @@ func (m *SignIn) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c return err } } + if m.GetOriginalTransferMethod() != nil { + cast := (*m.GetOriginalTransferMethod()).String() + err = writer.WriteStringValue("originalTransferMethod", &cast) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("privateLinkDetails", m.GetPrivateLinkDetails()) if err != nil { @@ -1841,6 +1918,13 @@ func (m *SignIn) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c return err } } + if m.GetSignInTokenProtectionStatus() != nil { + cast := (*m.GetSignInTokenProtectionStatus()).String() + err = writer.WriteStringValue("signInTokenProtectionStatus", &cast) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("status", m.GetStatus()) if err != nil { @@ -1927,6 +2011,13 @@ func (m *SignIn) SetAppliedEventListeners(value []AppliedAuthenticationEventList panic(err) } } +// SetAppTokenProtectionStatus sets the appTokenProtectionStatus property value. The appTokenProtectionStatus property +func (m *SignIn) SetAppTokenProtectionStatus(value *TokenProtectionStatus)() { + err := m.GetBackingStore().Set("appTokenProtectionStatus", value) + if err != nil { + panic(err) + } +} // SetAuthenticationAppDeviceDetails sets the authenticationAppDeviceDetails property value. Provides details about the app and device used during an Azure AD authentication step. func (m *SignIn) SetAuthenticationAppDeviceDetails(value AuthenticationAppDeviceDetailsable)() { err := m.GetBackingStore().Set("authenticationAppDeviceDetails", value) @@ -2123,7 +2214,7 @@ func (m *SignIn) SetLocation(value SignInLocationable)() { panic(err) } } -// SetManagedServiceIdentity sets the managedServiceIdentity property value. Contains information about the managed identity used for the sign in, including its type and associated Azure Resource Manager (ARM) resource ID. +// SetManagedServiceIdentity sets the managedServiceIdentity property value. Contains information about the managed identity used for the sign in, including its type, associated Azure Resource Manager (ARM) resource ID, and federated token information. func (m *SignIn) SetManagedServiceIdentity(value ManagedIdentityable)() { err := m.GetBackingStore().Set("managedServiceIdentity", value) if err != nil { @@ -2151,6 +2242,13 @@ func (m *SignIn) SetOriginalRequestId(value *string)() { panic(err) } } +// SetOriginalTransferMethod sets the originalTransferMethod property value. The originalTransferMethod property +func (m *SignIn) SetOriginalTransferMethod(value *OriginalTransferMethods)() { + err := m.GetBackingStore().Set("originalTransferMethod", value) + if err != nil { + panic(err) + } +} // SetPrivateLinkDetails sets the privateLinkDetails property value. Contains information about the Azure AD Private Link policy that is associated with the sign in event. func (m *SignIn) SetPrivateLinkDetails(value PrivateLinkDetailsable)() { err := m.GetBackingStore().Set("privateLinkDetails", value) @@ -2284,6 +2382,13 @@ func (m *SignIn) SetSignInIdentifierType(value *SignInIdentifierType)() { panic(err) } } +// SetSignInTokenProtectionStatus sets the signInTokenProtectionStatus property value. The signInTokenProtectionStatus property +func (m *SignIn) SetSignInTokenProtectionStatus(value *TokenProtectionStatus)() { + err := m.GetBackingStore().Set("signInTokenProtectionStatus", value) + if err != nil { + panic(err) + } +} // SetStatus sets the status property value. The sign-in status. Includes the error code and description of the error (in case of a sign-in failure). Supports $filter (eq) on errorCode property. func (m *SignIn) SetStatus(value SignInStatusable)() { err := m.GetBackingStore().Set("status", value) @@ -2355,6 +2460,7 @@ type SignInable interface { GetAppId()(*string) GetAppliedConditionalAccessPolicies()([]AppliedConditionalAccessPolicyable) GetAppliedEventListeners()([]AppliedAuthenticationEventListenerable) + GetAppTokenProtectionStatus()(*TokenProtectionStatus) GetAuthenticationAppDeviceDetails()(AuthenticationAppDeviceDetailsable) GetAuthenticationAppPolicyEvaluationDetails()([]AuthenticationAppPolicyDetailsable) GetAuthenticationContextClassReferences()([]AuthenticationContextable) @@ -2387,6 +2493,7 @@ type SignInable interface { GetMfaDetail()(MfaDetailable) GetNetworkLocationDetails()([]NetworkLocationDetailable) GetOriginalRequestId()(*string) + GetOriginalTransferMethod()(*OriginalTransferMethods) GetPrivateLinkDetails()(PrivateLinkDetailsable) GetProcessingTimeInMilliseconds()(*int32) GetResourceDisplayName()(*string) @@ -2406,6 +2513,7 @@ type SignInable interface { GetSignInEventTypes()([]string) GetSignInIdentifier()(*string) GetSignInIdentifierType()(*SignInIdentifierType) + GetSignInTokenProtectionStatus()(*TokenProtectionStatus) GetStatus()(SignInStatusable) GetTokenIssuerName()(*string) GetTokenIssuerType()(*TokenIssuerType) @@ -2419,6 +2527,7 @@ type SignInable interface { SetAppId(value *string)() SetAppliedConditionalAccessPolicies(value []AppliedConditionalAccessPolicyable)() SetAppliedEventListeners(value []AppliedAuthenticationEventListenerable)() + SetAppTokenProtectionStatus(value *TokenProtectionStatus)() SetAuthenticationAppDeviceDetails(value AuthenticationAppDeviceDetailsable)() SetAuthenticationAppPolicyEvaluationDetails(value []AuthenticationAppPolicyDetailsable)() SetAuthenticationContextClassReferences(value []AuthenticationContextable)() @@ -2451,6 +2560,7 @@ type SignInable interface { SetMfaDetail(value MfaDetailable)() SetNetworkLocationDetails(value []NetworkLocationDetailable)() SetOriginalRequestId(value *string)() + SetOriginalTransferMethod(value *OriginalTransferMethods)() SetPrivateLinkDetails(value PrivateLinkDetailsable)() SetProcessingTimeInMilliseconds(value *int32)() SetResourceDisplayName(value *string)() @@ -2470,6 +2580,7 @@ type SignInable interface { SetSignInEventTypes(value []string)() SetSignInIdentifier(value *string)() SetSignInIdentifierType(value *SignInIdentifierType)() + SetSignInTokenProtectionStatus(value *TokenProtectionStatus)() SetStatus(value SignInStatusable)() SetTokenIssuerName(value *string)() SetTokenIssuerType(value *TokenIssuerType)() diff --git a/models/teams_app_settings.go b/models/teams_app_settings.go index 8d3a516fd20..3f368c6dc31 100644 --- a/models/teams_app_settings.go +++ b/models/teams_app_settings.go @@ -65,7 +65,7 @@ func (m *TeamsAppSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e } 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. +// GetIsChatResourceSpecificConsentEnabled gets the isChatResourceSpecificConsentEnabled property value. Indicates whether resource-specific consent for chats/meetings has been enabled for the tenant. True indicates that Teams apps that are allowed in the tenant and require resource-specific permissions can be installed inside chats and meetings. False blocks the installation of any Teams app that requires resource-specific permissions in a chat or a meeting. func (m *TeamsAppSettings) GetIsChatResourceSpecificConsentEnabled()(*bool) { val, err := m.GetBackingStore().Get("isChatResourceSpecificConsentEnabled") if err != nil { @@ -76,7 +76,7 @@ func (m *TeamsAppSettings) GetIsChatResourceSpecificConsentEnabled()(*bool) { } return nil } -// GetIsUserPersonalScopeResourceSpecificConsentEnabled gets the isUserPersonalScopeResourceSpecificConsentEnabled property value. The isUserPersonalScopeResourceSpecificConsentEnabled property +// GetIsUserPersonalScopeResourceSpecificConsentEnabled gets the isUserPersonalScopeResourceSpecificConsentEnabled property value. Indicates whether resource-specific consent for personal scope in Teams apps has been enabled for the tenant. True indicates that Teams apps that are allowed in the tenant and require resource-specific permissions can be installed in the personal scope. False blocks the installation of any Teams app that requires resource-specific permissions in the personal scope. func (m *TeamsAppSettings) GetIsUserPersonalScopeResourceSpecificConsentEnabled()(*bool) { val, err := m.GetBackingStore().Get("isUserPersonalScopeResourceSpecificConsentEnabled") if err != nil { @@ -120,14 +120,14 @@ func (m *TeamsAppSettings) SetAllowUserRequestsForAppAccess(value *bool)() { panic(err) } } -// SetIsChatResourceSpecificConsentEnabled sets 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. +// SetIsChatResourceSpecificConsentEnabled sets the isChatResourceSpecificConsentEnabled property value. Indicates whether resource-specific consent for chats/meetings has been enabled for the tenant. True indicates that Teams apps that are allowed in the tenant and require resource-specific permissions can be installed inside chats and meetings. False blocks the installation of any Teams app that requires resource-specific permissions in a chat or a meeting. func (m *TeamsAppSettings) SetIsChatResourceSpecificConsentEnabled(value *bool)() { err := m.GetBackingStore().Set("isChatResourceSpecificConsentEnabled", value) if err != nil { panic(err) } } -// SetIsUserPersonalScopeResourceSpecificConsentEnabled sets the isUserPersonalScopeResourceSpecificConsentEnabled property value. The isUserPersonalScopeResourceSpecificConsentEnabled property +// SetIsUserPersonalScopeResourceSpecificConsentEnabled sets the isUserPersonalScopeResourceSpecificConsentEnabled property value. Indicates whether resource-specific consent for personal scope in Teams apps has been enabled for the tenant. True indicates that Teams apps that are allowed in the tenant and require resource-specific permissions can be installed in the personal scope. False blocks the installation of any Teams app that requires resource-specific permissions in the personal scope. func (m *TeamsAppSettings) SetIsUserPersonalScopeResourceSpecificConsentEnabled(value *bool)() { err := m.GetBackingStore().Set("isUserPersonalScopeResourceSpecificConsentEnabled", value) if err != nil { diff --git a/models/template_application_level.go b/models/template_application_level.go new file mode 100644 index 00000000000..41c7eada407 --- /dev/null +++ b/models/template_application_level.go @@ -0,0 +1,40 @@ +package models +import ( + "errors" +) +// +type TemplateApplicationLevel int + +const ( + NONE_TEMPLATEAPPLICATIONLEVEL TemplateApplicationLevel = iota + NEWPARTNERS_TEMPLATEAPPLICATIONLEVEL + EXISTINGPARTNERS_TEMPLATEAPPLICATIONLEVEL + UNKNOWNFUTUREVALUE_TEMPLATEAPPLICATIONLEVEL +) + +func (i TemplateApplicationLevel) String() string { + return []string{"none", "newPartners", "existingPartners", "unknownFutureValue"}[i] +} +func ParseTemplateApplicationLevel(v string) (any, error) { + result := NONE_TEMPLATEAPPLICATIONLEVEL + switch v { + case "none": + result = NONE_TEMPLATEAPPLICATIONLEVEL + case "newPartners": + result = NEWPARTNERS_TEMPLATEAPPLICATIONLEVEL + case "existingPartners": + result = EXISTINGPARTNERS_TEMPLATEAPPLICATIONLEVEL + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_TEMPLATEAPPLICATIONLEVEL + default: + return 0, errors.New("Unknown TemplateApplicationLevel value: " + v) + } + return &result, nil +} +func SerializeTemplateApplicationLevel(values []TemplateApplicationLevel) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/tenant_relationship.go b/models/tenant_relationship.go index f2025546fee..1d304254ba9 100644 --- a/models/tenant_relationship.go +++ b/models/tenant_relationship.go @@ -95,6 +95,16 @@ func (m *TenantRelationship) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["multiTenantOrganization"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateMultiTenantOrganizationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetMultiTenantOrganization(val.(MultiTenantOrganizationable)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -107,6 +117,17 @@ func (m *TenantRelationship) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } +// GetMultiTenantOrganization gets the multiTenantOrganization property value. The multiTenantOrganization property +func (m *TenantRelationship) GetMultiTenantOrganization()(MultiTenantOrganizationable) { + val, err := m.GetBackingStore().Get("multiTenantOrganization") + if err != nil { + panic(err) + } + if val != nil { + return val.(MultiTenantOrganizationable) + } + return nil +} // GetOdataType gets the @odata.type property value. The OdataType property func (m *TenantRelationship) GetOdataType()(*string) { val, err := m.GetBackingStore().Get("odataType") @@ -144,6 +165,12 @@ func (m *TenantRelationship) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err := writer.WriteObjectValue("multiTenantOrganization", m.GetMultiTenantOrganization()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -183,6 +210,13 @@ func (m *TenantRelationship) SetDelegatedAdminRelationships(value []DelegatedAdm panic(err) } } +// SetMultiTenantOrganization sets the multiTenantOrganization property value. The multiTenantOrganization property +func (m *TenantRelationship) SetMultiTenantOrganization(value MultiTenantOrganizationable)() { + err := m.GetBackingStore().Set("multiTenantOrganization", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *TenantRelationship) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -198,9 +232,11 @@ type TenantRelationshipable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDelegatedAdminCustomers()([]DelegatedAdminCustomerable) GetDelegatedAdminRelationships()([]DelegatedAdminRelationshipable) + GetMultiTenantOrganization()(MultiTenantOrganizationable) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDelegatedAdminCustomers(value []DelegatedAdminCustomerable)() SetDelegatedAdminRelationships(value []DelegatedAdminRelationshipable)() + SetMultiTenantOrganization(value MultiTenantOrganizationable)() SetOdataType(value *string)() } diff --git a/models/token_protection_status.go b/models/token_protection_status.go new file mode 100644 index 00000000000..84a7a836747 --- /dev/null +++ b/models/token_protection_status.go @@ -0,0 +1,40 @@ +package models +import ( + "errors" +) +// +type TokenProtectionStatus int + +const ( + NONE_TOKENPROTECTIONSTATUS TokenProtectionStatus = iota + BOUND_TOKENPROTECTIONSTATUS + UNBOUND_TOKENPROTECTIONSTATUS + UNKNOWNFUTUREVALUE_TOKENPROTECTIONSTATUS +) + +func (i TokenProtectionStatus) String() string { + return []string{"none", "bound", "unbound", "unknownFutureValue"}[i] +} +func ParseTokenProtectionStatus(v string) (any, error) { + result := NONE_TOKENPROTECTIONSTATUS + switch v { + case "none": + result = NONE_TOKENPROTECTIONSTATUS + case "bound": + result = BOUND_TOKENPROTECTIONSTATUS + case "unbound": + result = UNBOUND_TOKENPROTECTIONSTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_TOKENPROTECTIONSTATUS + default: + return 0, errors.New("Unknown TokenProtectionStatus value: " + v) + } + return &result, nil +} +func SerializeTokenProtectionStatus(values []TokenProtectionStatus) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/unified_role_management_alert.go b/models/unified_role_management_alert.go index c2e69c0c1dd..7525444ae6f 100644 --- a/models/unified_role_management_alert.go +++ b/models/unified_role_management_alert.go @@ -20,7 +20,7 @@ func NewUnifiedRoleManagementAlert()(*UnifiedRoleManagementAlert) { func CreateUnifiedRoleManagementAlertFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewUnifiedRoleManagementAlert(), nil } -// GetAlertConfiguration gets the alertConfiguration property value. The configuration of the alert in PIM for Azure AD roles. Alert configurations are pre-defined and cannot be created or deleted, but some configurations can be modified. Supports $expand. +// GetAlertConfiguration gets the alertConfiguration property value. The configuration of the alert in PIM for Azure AD roles. Alert configurations are pre-defined and cannot be created or deleted, but some configurations can be modified. Supports $filter for the isEnabled property and $expand. func (m *UnifiedRoleManagementAlert) GetAlertConfiguration()(UnifiedRoleManagementAlertConfigurationable) { val, err := m.GetBackingStore().Get("alertConfiguration") if err != nil { @@ -315,7 +315,7 @@ func (m *UnifiedRoleManagementAlert) Serialize(writer i878a80d2330e89d26896388a3 } return nil } -// SetAlertConfiguration sets the alertConfiguration property value. The configuration of the alert in PIM for Azure AD roles. Alert configurations are pre-defined and cannot be created or deleted, but some configurations can be modified. Supports $expand. +// SetAlertConfiguration sets the alertConfiguration property value. The configuration of the alert in PIM for Azure AD roles. Alert configurations are pre-defined and cannot be created or deleted, but some configurations can be modified. Supports $filter for the isEnabled property and $expand. func (m *UnifiedRoleManagementAlert) SetAlertConfiguration(value UnifiedRoleManagementAlertConfigurationable)() { err := m.GetBackingStore().Set("alertConfiguration", value) if err != nil { diff --git a/models/user.go b/models/user.go index 03618826aa0..d924d1bbc62 100644 --- a/models/user.go +++ b/models/user.go @@ -275,6 +275,17 @@ func (m *User) GetCloudPCs()([]CloudPCable) { } return nil } +// GetCloudRealtimeCommunicationInfo gets the cloudRealtimeCommunicationInfo property value. Microsoft realtime communication information related to the user. Supports $filter (eq, ne,not). +func (m *User) GetCloudRealtimeCommunicationInfo()(CloudRealtimeCommunicationInfoable) { + val, err := m.GetBackingStore().Get("cloudRealtimeCommunicationInfo") + if err != nil { + panic(err) + } + if val != nil { + return val.(CloudRealtimeCommunicationInfoable) + } + return nil +} // GetCompanyName gets the companyName property value. The company name which the user is associated. This property can be useful for describing the company that an external user comes from. The maximum length is 64 characters.Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values). func (m *User) GetCompanyName()(*string) { val, err := m.GetBackingStore().Get("companyName") @@ -922,6 +933,16 @@ func (m *User) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a } return nil } + res["cloudRealtimeCommunicationInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCloudRealtimeCommunicationInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCloudRealtimeCommunicationInfo(val.(CloudRealtimeCommunicationInfoable)) + } + return nil + } res["companyName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -1868,6 +1889,16 @@ func (m *User) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a } return nil } + res["onPremisesSipInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnPremisesSipInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOnPremisesSipInfo(val.(OnPremisesSipInfoable)) + } + return nil + } res["onPremisesSyncEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -2992,6 +3023,17 @@ func (m *User) GetOnPremisesSecurityIdentifier()(*string) { } return nil } +// GetOnPremisesSipInfo gets the onPremisesSipInfo property value. Contains all on-premises Session Initiation Protocol (SIP) information related to the user. Read-only. +func (m *User) GetOnPremisesSipInfo()(OnPremisesSipInfoable) { + val, err := m.GetBackingStore().Get("onPremisesSipInfo") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnPremisesSipInfoable) + } + return nil +} // GetOnPremisesSyncEnabled gets the onPremisesSyncEnabled property value. true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Azure Active Directory (Azure AD). Read-only. Supports $filter (eq, ne, not, in, and eq on null values). func (m *User) GetOnPremisesSyncEnabled()(*bool) { val, err := m.GetBackingStore().Get("onPremisesSyncEnabled") @@ -3047,7 +3089,7 @@ func (m *User) GetOwnedDevices()([]DirectoryObjectable) { } return nil } -// GetOwnedObjects gets the ownedObjects property value. Directory objects that are owned by the user. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// GetOwnedObjects gets the ownedObjects property value. Directory objects that are owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). func (m *User) GetOwnedObjects()([]DirectoryObjectable) { val, err := m.GetBackingStore().Get("ownedObjects") if err != nil { @@ -3113,7 +3155,7 @@ func (m *User) GetPeople()([]Personable) { } return nil } -// GetPermissionGrants gets the permissionGrants property value. The permissionGrants property +// GetPermissionGrants gets the permissionGrants property value. List all resource-specific permission grants of a user. func (m *User) GetPermissionGrants()([]ResourceSpecificPermissionGrantable) { val, err := m.GetBackingStore().Get("permissionGrants") if err != nil { @@ -3753,6 +3795,12 @@ func (m *User) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 return err } } + { + err = writer.WriteObjectValue("cloudRealtimeCommunicationInfo", m.GetCloudRealtimeCommunicationInfo()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("companyName", m.GetCompanyName()) if err != nil { @@ -4377,6 +4425,12 @@ func (m *User) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 return err } } + { + err = writer.WriteObjectValue("onPremisesSipInfo", m.GetOnPremisesSipInfo()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("onPremisesSyncEnabled", m.GetOnPremisesSyncEnabled()) if err != nil { @@ -4924,6 +4978,13 @@ func (m *User) SetCloudPCs(value []CloudPCable)() { panic(err) } } +// SetCloudRealtimeCommunicationInfo sets the cloudRealtimeCommunicationInfo property value. Microsoft realtime communication information related to the user. Supports $filter (eq, ne,not). +func (m *User) SetCloudRealtimeCommunicationInfo(value CloudRealtimeCommunicationInfoable)() { + err := m.GetBackingStore().Set("cloudRealtimeCommunicationInfo", value) + if err != nil { + panic(err) + } +} // SetCompanyName sets the companyName property value. The company name which the user is associated. This property can be useful for describing the company that an external user comes from. The maximum length is 64 characters.Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values). func (m *User) SetCompanyName(value *string)() { err := m.GetBackingStore().Set("companyName", value) @@ -5456,6 +5517,13 @@ func (m *User) SetOnPremisesSecurityIdentifier(value *string)() { panic(err) } } +// SetOnPremisesSipInfo sets the onPremisesSipInfo property value. Contains all on-premises Session Initiation Protocol (SIP) information related to the user. Read-only. +func (m *User) SetOnPremisesSipInfo(value OnPremisesSipInfoable)() { + err := m.GetBackingStore().Set("onPremisesSipInfo", value) + if err != nil { + panic(err) + } +} // SetOnPremisesSyncEnabled sets the onPremisesSyncEnabled property value. true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Azure Active Directory (Azure AD). Read-only. Supports $filter (eq, ne, not, in, and eq on null values). func (m *User) SetOnPremisesSyncEnabled(value *bool)() { err := m.GetBackingStore().Set("onPremisesSyncEnabled", value) @@ -5491,7 +5559,7 @@ func (m *User) SetOwnedDevices(value []DirectoryObjectable)() { panic(err) } } -// SetOwnedObjects sets the ownedObjects property value. Directory objects that are owned by the user. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// SetOwnedObjects sets the ownedObjects property value. Directory objects that are owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). func (m *User) SetOwnedObjects(value []DirectoryObjectable)() { err := m.GetBackingStore().Set("ownedObjects", value) if err != nil { @@ -5533,7 +5601,7 @@ func (m *User) SetPeople(value []Personable)() { panic(err) } } -// SetPermissionGrants sets the permissionGrants property value. The permissionGrants property +// SetPermissionGrants sets the permissionGrants property value. List all resource-specific permission grants of a user. func (m *User) SetPermissionGrants(value []ResourceSpecificPermissionGrantable)() { err := m.GetBackingStore().Set("permissionGrants", value) if err != nil { @@ -5826,6 +5894,7 @@ type Userable interface { GetChats()([]Chatable) GetCity()(*string) GetCloudPCs()([]CloudPCable) + GetCloudRealtimeCommunicationInfo()(CloudRealtimeCommunicationInfoable) GetCompanyName()(*string) GetConsentProvidedForMinor()(*string) GetContactFolders()([]ContactFolderable) @@ -5902,6 +5971,7 @@ type Userable interface { GetOnPremisesProvisioningErrors()([]OnPremisesProvisioningErrorable) GetOnPremisesSamAccountName()(*string) GetOnPremisesSecurityIdentifier()(*string) + GetOnPremisesSipInfo()(OnPremisesSipInfoable) GetOnPremisesSyncEnabled()(*bool) GetOnPremisesUserPrincipalName()(*string) GetOtherMails()([]string) @@ -5974,6 +6044,7 @@ type Userable interface { SetChats(value []Chatable)() SetCity(value *string)() SetCloudPCs(value []CloudPCable)() + SetCloudRealtimeCommunicationInfo(value CloudRealtimeCommunicationInfoable)() SetCompanyName(value *string)() SetConsentProvidedForMinor(value *string)() SetContactFolders(value []ContactFolderable)() @@ -6050,6 +6121,7 @@ type Userable interface { SetOnPremisesProvisioningErrors(value []OnPremisesProvisioningErrorable)() SetOnPremisesSamAccountName(value *string)() SetOnPremisesSecurityIdentifier(value *string)() + SetOnPremisesSipInfo(value OnPremisesSipInfoable)() SetOnPremisesSyncEnabled(value *bool)() SetOnPremisesUserPrincipalName(value *string)() SetOtherMails(value []string)() diff --git a/models/user_experience_analytics_battery_health_app_impact.go b/models/user_experience_analytics_battery_health_app_impact.go index 9f4b8fe31fc..528ab510212 100644 --- a/models/user_experience_analytics_battery_health_app_impact.go +++ b/models/user_experience_analytics_battery_health_app_impact.go @@ -19,7 +19,7 @@ func NewUserExperienceAnalyticsBatteryHealthAppImpact()(*UserExperienceAnalytics func CreateUserExperienceAnalyticsBatteryHealthAppImpactFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewUserExperienceAnalyticsBatteryHealthAppImpact(), nil } -// GetActiveDevices gets the activeDevices property value. Number of active devices for using that app over a 14-day period. Valid values -2147483648 to 2147483647 +// GetActiveDevices gets the activeDevices property value. Number of active devices for using that app over a 14-day period. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthAppImpact) GetActiveDevices()(*int32) { val, err := m.GetBackingStore().Get("activeDevices") if err != nil { @@ -63,7 +63,7 @@ func (m *UserExperienceAnalyticsBatteryHealthAppImpact) GetAppPublisher()(*strin } return nil } -// GetBatteryUsagePercentage gets the batteryUsagePercentage property value. The percent of total battery power used by this application when the device was not plugged into AC power, over 14 days computed across all devices in the tenant. Unit in percentage. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 +// GetBatteryUsagePercentage gets the batteryUsagePercentage property value. The percent of total battery power used by this application when the device was not plugged into AC power, over 14 days computed across all devices in the tenant. Unit in percentage. Valid values 0 to 1.79769313486232E+308 func (m *UserExperienceAnalyticsBatteryHealthAppImpact) GetBatteryUsagePercentage()(*float64) { val, err := m.GetBackingStore().Get("batteryUsagePercentage") if err != nil { @@ -194,7 +194,7 @@ func (m *UserExperienceAnalyticsBatteryHealthAppImpact) Serialize(writer i878a80 } return nil } -// SetActiveDevices sets the activeDevices property value. Number of active devices for using that app over a 14-day period. Valid values -2147483648 to 2147483647 +// SetActiveDevices sets the activeDevices property value. Number of active devices for using that app over a 14-day period. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthAppImpact) SetActiveDevices(value *int32)() { err := m.GetBackingStore().Set("activeDevices", value) if err != nil { @@ -222,7 +222,7 @@ func (m *UserExperienceAnalyticsBatteryHealthAppImpact) SetAppPublisher(value *s panic(err) } } -// SetBatteryUsagePercentage sets the batteryUsagePercentage property value. The percent of total battery power used by this application when the device was not plugged into AC power, over 14 days computed across all devices in the tenant. Unit in percentage. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 +// SetBatteryUsagePercentage sets the batteryUsagePercentage property value. The percent of total battery power used by this application when the device was not plugged into AC power, over 14 days computed across all devices in the tenant. Unit in percentage. Valid values 0 to 1.79769313486232E+308 func (m *UserExperienceAnalyticsBatteryHealthAppImpact) SetBatteryUsagePercentage(value *float64)() { err := m.GetBackingStore().Set("batteryUsagePercentage", value) if err != nil { diff --git a/models/user_experience_analytics_battery_health_capacity_details.go b/models/user_experience_analytics_battery_health_capacity_details.go index 96c67f26165..f3d904f3ebc 100644 --- a/models/user_experience_analytics_battery_health_capacity_details.go +++ b/models/user_experience_analytics_battery_health_capacity_details.go @@ -20,7 +20,7 @@ func NewUserExperienceAnalyticsBatteryHealthCapacityDetails()(*UserExperienceAna func CreateUserExperienceAnalyticsBatteryHealthCapacityDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewUserExperienceAnalyticsBatteryHealthCapacityDetails(), nil } -// GetActiveDevices gets the activeDevices property value. Number of active devices within the tenant. Valid values -2147483648 to 2147483647 +// GetActiveDevices gets the activeDevices property value. Number of active devices within the tenant. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) GetActiveDevices()(*int32) { val, err := m.GetBackingStore().Get("activeDevices") if err != nil { @@ -31,7 +31,7 @@ func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) GetActiveDevices() } return nil } -// GetBatteryCapacityFair gets the batteryCapacityFair property value. Number of devices whose battery maximum capacity is greater than 50% but lesser than 80%. Valid values -2147483648 to 2147483647 +// GetBatteryCapacityFair gets the batteryCapacityFair property value. Number of devices whose battery maximum capacity is greater than 50% but lesser than 80%. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) GetBatteryCapacityFair()(*int32) { val, err := m.GetBackingStore().Get("batteryCapacityFair") if err != nil { @@ -42,7 +42,7 @@ func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) GetBatteryCapacity } return nil } -// GetBatteryCapacityGood gets the batteryCapacityGood property value. Number of devices whose battery maximum capacity is greater than 80%. Valid values -2147483648 to 2147483647 +// GetBatteryCapacityGood gets the batteryCapacityGood property value. Number of devices whose battery maximum capacity is greater than 80%. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) GetBatteryCapacityGood()(*int32) { val, err := m.GetBackingStore().Get("batteryCapacityGood") if err != nil { @@ -53,7 +53,7 @@ func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) GetBatteryCapacity } return nil } -// GetBatteryCapacityPoor gets the batteryCapacityPoor property value. Number of devices whose battery maximum capacity is lesser than 50%. Valid values -2147483648 to 2147483647 +// GetBatteryCapacityPoor gets the batteryCapacityPoor property value. Number of devices whose battery maximum capacity is lesser than 50%. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) GetBatteryCapacityPoor()(*int32) { val, err := m.GetBackingStore().Get("batteryCapacityPoor") if err != nil { @@ -168,28 +168,28 @@ func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) Serialize(writer i } return nil } -// SetActiveDevices sets the activeDevices property value. Number of active devices within the tenant. Valid values -2147483648 to 2147483647 +// SetActiveDevices sets the activeDevices property value. Number of active devices within the tenant. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) SetActiveDevices(value *int32)() { err := m.GetBackingStore().Set("activeDevices", value) if err != nil { panic(err) } } -// SetBatteryCapacityFair sets the batteryCapacityFair property value. Number of devices whose battery maximum capacity is greater than 50% but lesser than 80%. Valid values -2147483648 to 2147483647 +// SetBatteryCapacityFair sets the batteryCapacityFair property value. Number of devices whose battery maximum capacity is greater than 50% but lesser than 80%. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) SetBatteryCapacityFair(value *int32)() { err := m.GetBackingStore().Set("batteryCapacityFair", value) if err != nil { panic(err) } } -// SetBatteryCapacityGood sets the batteryCapacityGood property value. Number of devices whose battery maximum capacity is greater than 80%. Valid values -2147483648 to 2147483647 +// SetBatteryCapacityGood sets the batteryCapacityGood property value. Number of devices whose battery maximum capacity is greater than 80%. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) SetBatteryCapacityGood(value *int32)() { err := m.GetBackingStore().Set("batteryCapacityGood", value) if err != nil { panic(err) } } -// SetBatteryCapacityPoor sets the batteryCapacityPoor property value. Number of devices whose battery maximum capacity is lesser than 50%. Valid values -2147483648 to 2147483647 +// SetBatteryCapacityPoor sets the batteryCapacityPoor property value. Number of devices whose battery maximum capacity is lesser than 50%. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) SetBatteryCapacityPoor(value *int32)() { err := m.GetBackingStore().Set("batteryCapacityPoor", value) if err != nil { 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..ebc5d8e6435 100644 --- a/models/user_experience_analytics_battery_health_device_app_impact.go +++ b/models/user_experience_analytics_battery_health_device_app_impact.go @@ -52,7 +52,7 @@ func (m *UserExperienceAnalyticsBatteryHealthDeviceAppImpact) GetAppPublisher()( } return nil } -// GetBatteryUsagePercentage gets the batteryUsagePercentage property value. The percent of total battery power used by this application when the device was not plugged into AC power, over 14 days. Unit in percentage. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 +// GetBatteryUsagePercentage gets the batteryUsagePercentage property value. The percent of total battery power used by this application when the device was not plugged into AC power, over 14 days. Unit in percentage. Valid values 0 to 1.79769313486232E+308 func (m *UserExperienceAnalyticsBatteryHealthDeviceAppImpact) GetBatteryUsagePercentage()(*float64) { val, err := m.GetBackingStore().Get("batteryUsagePercentage") if err != nil { @@ -215,7 +215,7 @@ func (m *UserExperienceAnalyticsBatteryHealthDeviceAppImpact) SetAppPublisher(va panic(err) } } -// SetBatteryUsagePercentage sets the batteryUsagePercentage property value. The percent of total battery power used by this application when the device was not plugged into AC power, over 14 days. Unit in percentage. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 +// SetBatteryUsagePercentage sets the batteryUsagePercentage property value. The percent of total battery power used by this application when the device was not plugged into AC power, over 14 days. Unit in percentage. Valid values 0 to 1.79769313486232E+308 func (m *UserExperienceAnalyticsBatteryHealthDeviceAppImpact) SetBatteryUsagePercentage(value *float64)() { err := m.GetBackingStore().Set("batteryUsagePercentage", value) if err != nil { diff --git a/models/user_experience_analytics_battery_health_device_performance.go b/models/user_experience_analytics_battery_health_device_performance.go index e1a1aaaf10b..965f4839594 100644 --- a/models/user_experience_analytics_battery_health_device_performance.go +++ b/models/user_experience_analytics_battery_health_device_performance.go @@ -19,7 +19,7 @@ func NewUserExperienceAnalyticsBatteryHealthDevicePerformance()(*UserExperienceA func CreateUserExperienceAnalyticsBatteryHealthDevicePerformanceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewUserExperienceAnalyticsBatteryHealthDevicePerformance(), nil } -// GetBatteryAgeInDays gets the batteryAgeInDays property value. Estimated battery age. Unit in days. Valid values -2147483648 to 2147483647 +// GetBatteryAgeInDays gets the batteryAgeInDays property value. Estimated battery age. Unit in days. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetBatteryAgeInDays()(*int32) { val, err := m.GetBackingStore().Get("batteryAgeInDays") if err != nil { @@ -30,7 +30,18 @@ func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetBatteryAgeInD } return nil } -// GetDeviceBatteryHealthScore gets the deviceBatteryHealthScore property value. A weighted average of a device’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values -2147483648 to 2147483647 +// GetDeviceBatteryCount gets the deviceBatteryCount property value. Number of batteries in a user device. Valid values 1 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetDeviceBatteryCount()(*int32) { + val, err := m.GetBackingStore().Get("deviceBatteryCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetDeviceBatteryHealthScore gets the deviceBatteryHealthScore property value. A weighted average of a device’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetDeviceBatteryHealthScore()(*int32) { val, err := m.GetBackingStore().Get("deviceBatteryHealthScore") if err != nil { @@ -63,7 +74,7 @@ func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetDeviceName()( } return nil } -// GetEstimatedRuntimeInMinutes gets the estimatedRuntimeInMinutes property value. The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values -2147483648 to 2147483647 +// GetEstimatedRuntimeInMinutes gets the estimatedRuntimeInMinutes property value. The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetEstimatedRuntimeInMinutes()(*int32) { val, err := m.GetBackingStore().Get("estimatedRuntimeInMinutes") if err != nil { @@ -87,6 +98,16 @@ func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetFieldDeserial } return nil } + res["deviceBatteryCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetDeviceBatteryCount(val) + } + return nil + } res["deviceBatteryHealthScore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -127,6 +148,16 @@ func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetFieldDeserial } return nil } + res["fullBatteryDrainCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetFullBatteryDrainCount(val) + } + return nil + } res["healthStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseUserExperienceAnalyticsHealthState) if err != nil { @@ -169,6 +200,17 @@ func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetFieldDeserial } return res } +// GetFullBatteryDrainCount gets the fullBatteryDrainCount property value. Number of times the battery has been discharged an amount that equals 100% of its capacity, but not necessarily by discharging it from 100% to 0%. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetFullBatteryDrainCount()(*int32) { + val, err := m.GetBackingStore().Get("fullBatteryDrainCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} // GetHealthStatus gets the healthStatus property value. The healthStatus property func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetHealthStatus()(*UserExperienceAnalyticsHealthState) { val, err := m.GetBackingStore().Get("healthStatus") @@ -191,7 +233,7 @@ func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetManufacturer( } return nil } -// GetMaxCapacityPercentage gets the maxCapacityPercentage property value. Ratio of current capacity and design capacity of the battery with the lowest capacity. Unit in percentage and values range from 0-100. Valid values -2147483648 to 2147483647 +// GetMaxCapacityPercentage gets the maxCapacityPercentage property value. Ratio of current capacity and design capacity of the battery with the lowest capacity. Unit in percentage and values range from 0-100. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) GetMaxCapacityPercentage()(*int32) { val, err := m.GetBackingStore().Get("maxCapacityPercentage") if err != nil { @@ -225,6 +267,12 @@ func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) Serialize(writer return err } } + { + err = writer.WriteInt32Value("deviceBatteryCount", m.GetDeviceBatteryCount()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("deviceBatteryHealthScore", m.GetDeviceBatteryHealthScore()) if err != nil { @@ -249,6 +297,12 @@ func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) Serialize(writer return err } } + { + err = writer.WriteInt32Value("fullBatteryDrainCount", m.GetFullBatteryDrainCount()) + if err != nil { + return err + } + } if m.GetHealthStatus() != nil { cast := (*m.GetHealthStatus()).String() err = writer.WriteStringValue("healthStatus", &cast) @@ -276,14 +330,21 @@ func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) Serialize(writer } return nil } -// SetBatteryAgeInDays sets the batteryAgeInDays property value. Estimated battery age. Unit in days. Valid values -2147483648 to 2147483647 +// SetBatteryAgeInDays sets the batteryAgeInDays property value. Estimated battery age. Unit in days. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) SetBatteryAgeInDays(value *int32)() { err := m.GetBackingStore().Set("batteryAgeInDays", value) if err != nil { panic(err) } } -// SetDeviceBatteryHealthScore sets the deviceBatteryHealthScore property value. A weighted average of a device’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values -2147483648 to 2147483647 +// SetDeviceBatteryCount sets the deviceBatteryCount property value. Number of batteries in a user device. Valid values 1 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) SetDeviceBatteryCount(value *int32)() { + err := m.GetBackingStore().Set("deviceBatteryCount", value) + if err != nil { + panic(err) + } +} +// SetDeviceBatteryHealthScore sets the deviceBatteryHealthScore property value. A weighted average of a device’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) SetDeviceBatteryHealthScore(value *int32)() { err := m.GetBackingStore().Set("deviceBatteryHealthScore", value) if err != nil { @@ -304,13 +365,20 @@ func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) SetDeviceName(va panic(err) } } -// SetEstimatedRuntimeInMinutes sets the estimatedRuntimeInMinutes property value. The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values -2147483648 to 2147483647 +// SetEstimatedRuntimeInMinutes sets the estimatedRuntimeInMinutes property value. The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) SetEstimatedRuntimeInMinutes(value *int32)() { err := m.GetBackingStore().Set("estimatedRuntimeInMinutes", value) if err != nil { panic(err) } } +// SetFullBatteryDrainCount sets the fullBatteryDrainCount property value. Number of times the battery has been discharged an amount that equals 100% of its capacity, but not necessarily by discharging it from 100% to 0%. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) SetFullBatteryDrainCount(value *int32)() { + err := m.GetBackingStore().Set("fullBatteryDrainCount", value) + if err != nil { + panic(err) + } +} // SetHealthStatus sets the healthStatus property value. The healthStatus property func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) SetHealthStatus(value *UserExperienceAnalyticsHealthState)() { err := m.GetBackingStore().Set("healthStatus", value) @@ -325,7 +393,7 @@ func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) SetManufacturer( panic(err) } } -// SetMaxCapacityPercentage sets the maxCapacityPercentage property value. Ratio of current capacity and design capacity of the battery with the lowest capacity. Unit in percentage and values range from 0-100. Valid values -2147483648 to 2147483647 +// SetMaxCapacityPercentage sets the maxCapacityPercentage property value. Ratio of current capacity and design capacity of the battery with the lowest capacity. Unit in percentage and values range from 0-100. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthDevicePerformance) SetMaxCapacityPercentage(value *int32)() { err := m.GetBackingStore().Set("maxCapacityPercentage", value) if err != nil { @@ -344,19 +412,23 @@ type UserExperienceAnalyticsBatteryHealthDevicePerformanceable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBatteryAgeInDays()(*int32) + GetDeviceBatteryCount()(*int32) GetDeviceBatteryHealthScore()(*int32) GetDeviceId()(*string) GetDeviceName()(*string) GetEstimatedRuntimeInMinutes()(*int32) + GetFullBatteryDrainCount()(*int32) GetHealthStatus()(*UserExperienceAnalyticsHealthState) GetManufacturer()(*string) GetMaxCapacityPercentage()(*int32) GetModel()(*string) SetBatteryAgeInDays(value *int32)() + SetDeviceBatteryCount(value *int32)() SetDeviceBatteryHealthScore(value *int32)() SetDeviceId(value *string)() SetDeviceName(value *string)() SetEstimatedRuntimeInMinutes(value *int32)() + SetFullBatteryDrainCount(value *int32)() SetHealthStatus(value *UserExperienceAnalyticsHealthState)() SetManufacturer(value *string)() SetMaxCapacityPercentage(value *int32)() 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..b85202d88ca 100644 --- a/models/user_experience_analytics_battery_health_device_runtime_history.go +++ b/models/user_experience_analytics_battery_health_device_runtime_history.go @@ -30,7 +30,7 @@ func (m *UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory) GetDeviceId() } return nil } -// GetEstimatedRuntimeInMinutes gets the estimatedRuntimeInMinutes property value. The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values -2147483648 to 2147483647 +// GetEstimatedRuntimeInMinutes gets the estimatedRuntimeInMinutes property value. The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory) GetEstimatedRuntimeInMinutes()(*int32) { val, err := m.GetBackingStore().Get("estimatedRuntimeInMinutes") if err != nil { @@ -120,7 +120,7 @@ func (m *UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory) SetDeviceId(v panic(err) } } -// SetEstimatedRuntimeInMinutes sets the estimatedRuntimeInMinutes property value. The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values -2147483648 to 2147483647 +// SetEstimatedRuntimeInMinutes sets the estimatedRuntimeInMinutes property value. The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory) SetEstimatedRuntimeInMinutes(value *int32)() { err := m.GetBackingStore().Set("estimatedRuntimeInMinutes", value) if err != nil { diff --git a/models/user_experience_analytics_battery_health_model_performance.go b/models/user_experience_analytics_battery_health_model_performance.go index c993eff3f10..89d5850e05b 100644 --- a/models/user_experience_analytics_battery_health_model_performance.go +++ b/models/user_experience_analytics_battery_health_model_performance.go @@ -19,7 +19,7 @@ func NewUserExperienceAnalyticsBatteryHealthModelPerformance()(*UserExperienceAn func CreateUserExperienceAnalyticsBatteryHealthModelPerformanceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewUserExperienceAnalyticsBatteryHealthModelPerformance(), nil } -// GetActiveDevices gets the activeDevices property value. Number of active devices for that model. Valid values -2147483648 to 2147483647 +// GetActiveDevices gets the activeDevices property value. Number of active devices for that model. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetActiveDevices()(*int32) { val, err := m.GetBackingStore().Get("activeDevices") if err != nil { @@ -30,7 +30,7 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetActiveDevices( } return nil } -// GetAverageBatteryAgeInDays gets the averageBatteryAgeInDays property value. The mean of the battery age for all devices of a given model in a tenant. Unit in days. Valid values -2147483648 to 2147483647 +// GetAverageBatteryAgeInDays gets the averageBatteryAgeInDays property value. The mean of the battery age for all devices of a given model in a tenant. Unit in days. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetAverageBatteryAgeInDays()(*int32) { val, err := m.GetBackingStore().Get("averageBatteryAgeInDays") if err != nil { @@ -41,7 +41,7 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetAverageBattery } return nil } -// GetAverageEstimatedRuntimeInMinutes gets the averageEstimatedRuntimeInMinutes property value. The mean of the estimated runtimes on full charge for all devices of a given model. Unit in minutes. Valid values -2147483648 to 2147483647 +// GetAverageEstimatedRuntimeInMinutes gets the averageEstimatedRuntimeInMinutes property value. The mean of the estimated runtimes on full charge for all devices of a given model. Unit in minutes. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetAverageEstimatedRuntimeInMinutes()(*int32) { val, err := m.GetBackingStore().Get("averageEstimatedRuntimeInMinutes") if err != nil { @@ -52,7 +52,7 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetAverageEstimat } return nil } -// GetAverageMaxCapacityPercentage gets the averageMaxCapacityPercentage property value. The mean of the maximum capacity for all devices of a given model. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values -2147483648 to 2147483647 +// GetAverageMaxCapacityPercentage gets the averageMaxCapacityPercentage property value. The mean of the maximum capacity for all devices of a given model. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetAverageMaxCapacityPercentage()(*int32) { val, err := m.GetBackingStore().Get("averageMaxCapacityPercentage") if err != nil { @@ -116,6 +116,46 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetFieldDeseriali } return nil } + res["meanFullBatteryDrainCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetMeanFullBatteryDrainCount(val) + } + return nil + } + res["medianEstimatedRuntimeInMinutes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetMedianEstimatedRuntimeInMinutes(val) + } + return nil + } + res["medianFullBatteryDrainCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetMedianFullBatteryDrainCount(val) + } + return nil + } + res["medianMaxCapacityPercentage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetMedianMaxCapacityPercentage(val) + } + return nil + } res["model"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -136,6 +176,16 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetFieldDeseriali } return nil } + res["modelHealthStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseUserExperienceAnalyticsHealthState) + if err != nil { + return err + } + if val != nil { + m.SetModelHealthStatus(val.(*UserExperienceAnalyticsHealthState)) + } + return nil + } return res } // GetManufacturer gets the manufacturer property value. Name of the device manufacturer. @@ -149,6 +199,50 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetManufacturer() } return nil } +// GetMeanFullBatteryDrainCount gets the meanFullBatteryDrainCount property value. The mean of number of times the battery has been discharged an amount that equals 100% of its capacity for all devices of a given model in a tenant. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetMeanFullBatteryDrainCount()(*int32) { + val, err := m.GetBackingStore().Get("meanFullBatteryDrainCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetMedianEstimatedRuntimeInMinutes gets the medianEstimatedRuntimeInMinutes property value. The median of the estimated runtimes on full charge for all devices of a given model. Unit in minutes. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetMedianEstimatedRuntimeInMinutes()(*int32) { + val, err := m.GetBackingStore().Get("medianEstimatedRuntimeInMinutes") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetMedianFullBatteryDrainCount gets the medianFullBatteryDrainCount property value. The median of number of times the battery has been discharged an amount that equals 100% of its capacity for all devices of a given model in a tenant. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetMedianFullBatteryDrainCount()(*int32) { + val, err := m.GetBackingStore().Get("medianFullBatteryDrainCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetMedianMaxCapacityPercentage gets the medianMaxCapacityPercentage property value. The median of the maximum capacity for all devices of a given model. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetMedianMaxCapacityPercentage()(*int32) { + val, err := m.GetBackingStore().Get("medianMaxCapacityPercentage") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} // GetModel gets the model property value. The model name of the device. func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetModel()(*string) { val, err := m.GetBackingStore().Get("model") @@ -160,7 +254,7 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetModel()(*strin } return nil } -// GetModelBatteryHealthScore gets the modelBatteryHealthScore property value. A weighted average of a model’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values -2147483648 to 2147483647 +// GetModelBatteryHealthScore gets the modelBatteryHealthScore property value. A weighted average of a model’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetModelBatteryHealthScore()(*int32) { val, err := m.GetBackingStore().Get("modelBatteryHealthScore") if err != nil { @@ -171,6 +265,17 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetModelBatteryHe } return nil } +// GetModelHealthStatus gets the modelHealthStatus property value. The modelHealthStatus property +func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetModelHealthStatus()(*UserExperienceAnalyticsHealthState) { + val, err := m.GetBackingStore().Get("modelHealthStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(*UserExperienceAnalyticsHealthState) + } + return nil +} // Serialize serializes information the current object func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -207,6 +312,30 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) Serialize(writer return err } } + { + err = writer.WriteInt32Value("meanFullBatteryDrainCount", m.GetMeanFullBatteryDrainCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("medianEstimatedRuntimeInMinutes", m.GetMedianEstimatedRuntimeInMinutes()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("medianFullBatteryDrainCount", m.GetMedianFullBatteryDrainCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("medianMaxCapacityPercentage", m.GetMedianMaxCapacityPercentage()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("model", m.GetModel()) if err != nil { @@ -219,30 +348,37 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) Serialize(writer return err } } + if m.GetModelHealthStatus() != nil { + cast := (*m.GetModelHealthStatus()).String() + err = writer.WriteStringValue("modelHealthStatus", &cast) + 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 +// SetActiveDevices sets the activeDevices property value. Number of active devices for that model. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetActiveDevices(value *int32)() { err := m.GetBackingStore().Set("activeDevices", value) if err != nil { panic(err) } } -// SetAverageBatteryAgeInDays sets the averageBatteryAgeInDays property value. The mean of the battery age for all devices of a given model in a tenant. Unit in days. Valid values -2147483648 to 2147483647 +// SetAverageBatteryAgeInDays sets the averageBatteryAgeInDays property value. The mean of the battery age for all devices of a given model in a tenant. Unit in days. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetAverageBatteryAgeInDays(value *int32)() { err := m.GetBackingStore().Set("averageBatteryAgeInDays", value) if err != nil { panic(err) } } -// SetAverageEstimatedRuntimeInMinutes sets the averageEstimatedRuntimeInMinutes property value. The mean of the estimated runtimes on full charge for all devices of a given model. Unit in minutes. Valid values -2147483648 to 2147483647 +// SetAverageEstimatedRuntimeInMinutes sets the averageEstimatedRuntimeInMinutes property value. The mean of the estimated runtimes on full charge for all devices of a given model. Unit in minutes. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetAverageEstimatedRuntimeInMinutes(value *int32)() { err := m.GetBackingStore().Set("averageEstimatedRuntimeInMinutes", value) if err != nil { panic(err) } } -// SetAverageMaxCapacityPercentage sets the averageMaxCapacityPercentage property value. The mean of the maximum capacity for all devices of a given model. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values -2147483648 to 2147483647 +// SetAverageMaxCapacityPercentage sets the averageMaxCapacityPercentage property value. The mean of the maximum capacity for all devices of a given model. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetAverageMaxCapacityPercentage(value *int32)() { err := m.GetBackingStore().Set("averageMaxCapacityPercentage", value) if err != nil { @@ -256,6 +392,34 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetManufacturer(v panic(err) } } +// SetMeanFullBatteryDrainCount sets the meanFullBatteryDrainCount property value. The mean of number of times the battery has been discharged an amount that equals 100% of its capacity for all devices of a given model in a tenant. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetMeanFullBatteryDrainCount(value *int32)() { + err := m.GetBackingStore().Set("meanFullBatteryDrainCount", value) + if err != nil { + panic(err) + } +} +// SetMedianEstimatedRuntimeInMinutes sets the medianEstimatedRuntimeInMinutes property value. The median of the estimated runtimes on full charge for all devices of a given model. Unit in minutes. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetMedianEstimatedRuntimeInMinutes(value *int32)() { + err := m.GetBackingStore().Set("medianEstimatedRuntimeInMinutes", value) + if err != nil { + panic(err) + } +} +// SetMedianFullBatteryDrainCount sets the medianFullBatteryDrainCount property value. The median of number of times the battery has been discharged an amount that equals 100% of its capacity for all devices of a given model in a tenant. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetMedianFullBatteryDrainCount(value *int32)() { + err := m.GetBackingStore().Set("medianFullBatteryDrainCount", value) + if err != nil { + panic(err) + } +} +// SetMedianMaxCapacityPercentage sets the medianMaxCapacityPercentage property value. The median of the maximum capacity for all devices of a given model. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetMedianMaxCapacityPercentage(value *int32)() { + err := m.GetBackingStore().Set("medianMaxCapacityPercentage", value) + if err != nil { + panic(err) + } +} // SetModel sets the model property value. The model name of the device. func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetModel(value *string)() { err := m.GetBackingStore().Set("model", value) @@ -263,13 +427,20 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetModel(value *s panic(err) } } -// SetModelBatteryHealthScore sets the modelBatteryHealthScore property value. A weighted average of a model’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values -2147483648 to 2147483647 +// SetModelBatteryHealthScore sets the modelBatteryHealthScore property value. A weighted average of a model’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetModelBatteryHealthScore(value *int32)() { err := m.GetBackingStore().Set("modelBatteryHealthScore", value) if err != nil { panic(err) } } +// SetModelHealthStatus sets the modelHealthStatus property value. The modelHealthStatus property +func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetModelHealthStatus(value *UserExperienceAnalyticsHealthState)() { + err := m.GetBackingStore().Set("modelHealthStatus", value) + if err != nil { + panic(err) + } +} // UserExperienceAnalyticsBatteryHealthModelPerformanceable type UserExperienceAnalyticsBatteryHealthModelPerformanceable interface { Entityable @@ -279,13 +450,23 @@ type UserExperienceAnalyticsBatteryHealthModelPerformanceable interface { GetAverageEstimatedRuntimeInMinutes()(*int32) GetAverageMaxCapacityPercentage()(*int32) GetManufacturer()(*string) + GetMeanFullBatteryDrainCount()(*int32) + GetMedianEstimatedRuntimeInMinutes()(*int32) + GetMedianFullBatteryDrainCount()(*int32) + GetMedianMaxCapacityPercentage()(*int32) GetModel()(*string) GetModelBatteryHealthScore()(*int32) + GetModelHealthStatus()(*UserExperienceAnalyticsHealthState) SetActiveDevices(value *int32)() SetAverageBatteryAgeInDays(value *int32)() SetAverageEstimatedRuntimeInMinutes(value *int32)() SetAverageMaxCapacityPercentage(value *int32)() SetManufacturer(value *string)() + SetMeanFullBatteryDrainCount(value *int32)() + SetMedianEstimatedRuntimeInMinutes(value *int32)() + SetMedianFullBatteryDrainCount(value *int32)() + SetMedianMaxCapacityPercentage(value *int32)() SetModel(value *string)() SetModelBatteryHealthScore(value *int32)() + SetModelHealthStatus(value *UserExperienceAnalyticsHealthState)() } diff --git a/models/user_experience_analytics_battery_health_os_performance.go b/models/user_experience_analytics_battery_health_os_performance.go index 6da412737d3..1d0d61fd6f4 100644 --- a/models/user_experience_analytics_battery_health_os_performance.go +++ b/models/user_experience_analytics_battery_health_os_performance.go @@ -19,7 +19,7 @@ func NewUserExperienceAnalyticsBatteryHealthOsPerformance()(*UserExperienceAnaly func CreateUserExperienceAnalyticsBatteryHealthOsPerformanceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewUserExperienceAnalyticsBatteryHealthOsPerformance(), nil } -// GetActiveDevices gets the activeDevices property value. Number of active devices for that os version. Valid values -2147483648 to 2147483647 +// GetActiveDevices gets the activeDevices property value. Number of active devices for that os version. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetActiveDevices()(*int32) { val, err := m.GetBackingStore().Get("activeDevices") if err != nil { @@ -30,7 +30,7 @@ func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetActiveDevices()(* } return nil } -// GetAverageBatteryAgeInDays gets the averageBatteryAgeInDays property value. The mean of the battery age for all devices running a particular operating system version in a tenant. Unit in days. Valid values -2147483648 to 2147483647 +// GetAverageBatteryAgeInDays gets the averageBatteryAgeInDays property value. The mean of the battery age for all devices running a particular operating system version in a tenant. Unit in days. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetAverageBatteryAgeInDays()(*int32) { val, err := m.GetBackingStore().Get("averageBatteryAgeInDays") if err != nil { @@ -41,7 +41,7 @@ func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetAverageBatteryAge } return nil } -// GetAverageEstimatedRuntimeInMinutes gets the averageEstimatedRuntimeInMinutes property value. The mean of the estimated runtimes on full charge for all devices running a particular operating system version. Unit in minutes. Valid values -2147483648 to 2147483647 +// GetAverageEstimatedRuntimeInMinutes gets the averageEstimatedRuntimeInMinutes property value. The mean of the estimated runtimes on full charge for all devices running a particular operating system version. Unit in minutes. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetAverageEstimatedRuntimeInMinutes()(*int32) { val, err := m.GetBackingStore().Get("averageEstimatedRuntimeInMinutes") if err != nil { @@ -52,7 +52,7 @@ func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetAverageEstimatedR } return nil } -// GetAverageMaxCapacityPercentage gets the averageMaxCapacityPercentage property value. The mean of the maximum capacity for all devices running a particular operating system version. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values -2147483648 to 2147483647 +// GetAverageMaxCapacityPercentage gets the averageMaxCapacityPercentage property value. The mean of the maximum capacity for all devices running a particular operating system version. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetAverageMaxCapacityPercentage()(*int32) { val, err := m.GetBackingStore().Get("averageMaxCapacityPercentage") if err != nil { @@ -106,6 +106,56 @@ func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetFieldDeserializer } return nil } + res["meanFullBatteryDrainCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetMeanFullBatteryDrainCount(val) + } + return nil + } + res["medianEstimatedRuntimeInMinutes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetMedianEstimatedRuntimeInMinutes(val) + } + return nil + } + res["medianFullBatteryDrainCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetMedianFullBatteryDrainCount(val) + } + return nil + } + res["medianMaxCapacityPercentage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetMedianMaxCapacityPercentage(val) + } + return nil + } + res["osBatteryHealthScore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOsBatteryHealthScore(val) + } + return nil + } res["osBuildNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -116,6 +166,16 @@ func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetFieldDeserializer } return nil } + res["osHealthStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseUserExperienceAnalyticsHealthState) + if err != nil { + return err + } + if val != nil { + m.SetOsHealthStatus(val.(*UserExperienceAnalyticsHealthState)) + } + return nil + } res["osVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -128,6 +188,61 @@ func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetFieldDeserializer } return res } +// GetMeanFullBatteryDrainCount gets the meanFullBatteryDrainCount property value. The mean of number of times the battery has been discharged an amount that equals 100% of its capacity for all devices running a particular operating system version in a tenant. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetMeanFullBatteryDrainCount()(*int32) { + val, err := m.GetBackingStore().Get("meanFullBatteryDrainCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetMedianEstimatedRuntimeInMinutes gets the medianEstimatedRuntimeInMinutes property value. The median of the estimated runtimes on full charge for all devices running a particular operating system version. Unit in minutes. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetMedianEstimatedRuntimeInMinutes()(*int32) { + val, err := m.GetBackingStore().Get("medianEstimatedRuntimeInMinutes") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetMedianFullBatteryDrainCount gets the medianFullBatteryDrainCount property value. The median of number of times the battery has been discharged an amount that equals 100% of its capacity for all devices running a particular operating system version in a tenant. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetMedianFullBatteryDrainCount()(*int32) { + val, err := m.GetBackingStore().Get("medianFullBatteryDrainCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetMedianMaxCapacityPercentage gets the medianMaxCapacityPercentage property value. The median of the maximum capacity for all devices running a particular operating system version. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetMedianMaxCapacityPercentage()(*int32) { + val, err := m.GetBackingStore().Get("medianMaxCapacityPercentage") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetOsBatteryHealthScore gets the osBatteryHealthScore property value. A weighted average of battery health score across all devices running a particular operating system version. Values range from 0-100. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetOsBatteryHealthScore()(*int32) { + val, err := m.GetBackingStore().Get("osBatteryHealthScore") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} // GetOsBuildNumber gets the osBuildNumber property value. Build number of the operating system. func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetOsBuildNumber()(*string) { val, err := m.GetBackingStore().Get("osBuildNumber") @@ -139,6 +254,17 @@ func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetOsBuildNumber()(* } return nil } +// GetOsHealthStatus gets the osHealthStatus property value. The osHealthStatus property +func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetOsHealthStatus()(*UserExperienceAnalyticsHealthState) { + val, err := m.GetBackingStore().Get("osHealthStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(*UserExperienceAnalyticsHealthState) + } + return nil +} // GetOsVersion gets the osVersion property value. Version of the operating system. func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) GetOsVersion()(*string) { val, err := m.GetBackingStore().Get("osVersion") @@ -180,12 +306,49 @@ func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) Serialize(writer i87 return err } } + { + err = writer.WriteInt32Value("meanFullBatteryDrainCount", m.GetMeanFullBatteryDrainCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("medianEstimatedRuntimeInMinutes", m.GetMedianEstimatedRuntimeInMinutes()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("medianFullBatteryDrainCount", m.GetMedianFullBatteryDrainCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("medianMaxCapacityPercentage", m.GetMedianMaxCapacityPercentage()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("osBatteryHealthScore", m.GetOsBatteryHealthScore()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("osBuildNumber", m.GetOsBuildNumber()) if err != nil { return err } } + if m.GetOsHealthStatus() != nil { + cast := (*m.GetOsHealthStatus()).String() + err = writer.WriteStringValue("osHealthStatus", &cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("osVersion", m.GetOsVersion()) if err != nil { @@ -194,34 +357,69 @@ func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) Serialize(writer i87 } return nil } -// SetActiveDevices sets the activeDevices property value. Number of active devices for that os version. Valid values -2147483648 to 2147483647 +// SetActiveDevices sets the activeDevices property value. Number of active devices for that os version. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetActiveDevices(value *int32)() { err := m.GetBackingStore().Set("activeDevices", value) if err != nil { panic(err) } } -// SetAverageBatteryAgeInDays sets the averageBatteryAgeInDays property value. The mean of the battery age for all devices running a particular operating system version in a tenant. Unit in days. Valid values -2147483648 to 2147483647 +// SetAverageBatteryAgeInDays sets the averageBatteryAgeInDays property value. The mean of the battery age for all devices running a particular operating system version in a tenant. Unit in days. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetAverageBatteryAgeInDays(value *int32)() { err := m.GetBackingStore().Set("averageBatteryAgeInDays", value) if err != nil { panic(err) } } -// SetAverageEstimatedRuntimeInMinutes sets the averageEstimatedRuntimeInMinutes property value. The mean of the estimated runtimes on full charge for all devices running a particular operating system version. Unit in minutes. Valid values -2147483648 to 2147483647 +// SetAverageEstimatedRuntimeInMinutes sets the averageEstimatedRuntimeInMinutes property value. The mean of the estimated runtimes on full charge for all devices running a particular operating system version. Unit in minutes. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetAverageEstimatedRuntimeInMinutes(value *int32)() { err := m.GetBackingStore().Set("averageEstimatedRuntimeInMinutes", value) if err != nil { panic(err) } } -// SetAverageMaxCapacityPercentage sets the averageMaxCapacityPercentage property value. The mean of the maximum capacity for all devices running a particular operating system version. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values -2147483648 to 2147483647 +// SetAverageMaxCapacityPercentage sets the averageMaxCapacityPercentage property value. The mean of the maximum capacity for all devices running a particular operating system version. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetAverageMaxCapacityPercentage(value *int32)() { err := m.GetBackingStore().Set("averageMaxCapacityPercentage", value) if err != nil { panic(err) } } +// SetMeanFullBatteryDrainCount sets the meanFullBatteryDrainCount property value. The mean of number of times the battery has been discharged an amount that equals 100% of its capacity for all devices running a particular operating system version in a tenant. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetMeanFullBatteryDrainCount(value *int32)() { + err := m.GetBackingStore().Set("meanFullBatteryDrainCount", value) + if err != nil { + panic(err) + } +} +// SetMedianEstimatedRuntimeInMinutes sets the medianEstimatedRuntimeInMinutes property value. The median of the estimated runtimes on full charge for all devices running a particular operating system version. Unit in minutes. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetMedianEstimatedRuntimeInMinutes(value *int32)() { + err := m.GetBackingStore().Set("medianEstimatedRuntimeInMinutes", value) + if err != nil { + panic(err) + } +} +// SetMedianFullBatteryDrainCount sets the medianFullBatteryDrainCount property value. The median of number of times the battery has been discharged an amount that equals 100% of its capacity for all devices running a particular operating system version in a tenant. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetMedianFullBatteryDrainCount(value *int32)() { + err := m.GetBackingStore().Set("medianFullBatteryDrainCount", value) + if err != nil { + panic(err) + } +} +// SetMedianMaxCapacityPercentage sets the medianMaxCapacityPercentage property value. The median of the maximum capacity for all devices running a particular operating system version. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetMedianMaxCapacityPercentage(value *int32)() { + err := m.GetBackingStore().Set("medianMaxCapacityPercentage", value) + if err != nil { + panic(err) + } +} +// SetOsBatteryHealthScore sets the osBatteryHealthScore property value. A weighted average of battery health score across all devices running a particular operating system version. Values range from 0-100. Valid values 0 to 2147483647 +func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetOsBatteryHealthScore(value *int32)() { + err := m.GetBackingStore().Set("osBatteryHealthScore", value) + if err != nil { + panic(err) + } +} // SetOsBuildNumber sets the osBuildNumber property value. Build number of the operating system. func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetOsBuildNumber(value *string)() { err := m.GetBackingStore().Set("osBuildNumber", value) @@ -229,6 +427,13 @@ func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetOsBuildNumber(val panic(err) } } +// SetOsHealthStatus sets the osHealthStatus property value. The osHealthStatus property +func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetOsHealthStatus(value *UserExperienceAnalyticsHealthState)() { + err := m.GetBackingStore().Set("osHealthStatus", value) + if err != nil { + panic(err) + } +} // SetOsVersion sets the osVersion property value. Version of the operating system. func (m *UserExperienceAnalyticsBatteryHealthOsPerformance) SetOsVersion(value *string)() { err := m.GetBackingStore().Set("osVersion", value) @@ -244,12 +449,24 @@ type UserExperienceAnalyticsBatteryHealthOsPerformanceable interface { GetAverageBatteryAgeInDays()(*int32) GetAverageEstimatedRuntimeInMinutes()(*int32) GetAverageMaxCapacityPercentage()(*int32) + GetMeanFullBatteryDrainCount()(*int32) + GetMedianEstimatedRuntimeInMinutes()(*int32) + GetMedianFullBatteryDrainCount()(*int32) + GetMedianMaxCapacityPercentage()(*int32) + GetOsBatteryHealthScore()(*int32) GetOsBuildNumber()(*string) + GetOsHealthStatus()(*UserExperienceAnalyticsHealthState) GetOsVersion()(*string) SetActiveDevices(value *int32)() SetAverageBatteryAgeInDays(value *int32)() SetAverageEstimatedRuntimeInMinutes(value *int32)() SetAverageMaxCapacityPercentage(value *int32)() + SetMeanFullBatteryDrainCount(value *int32)() + SetMedianEstimatedRuntimeInMinutes(value *int32)() + SetMedianFullBatteryDrainCount(value *int32)() + SetMedianMaxCapacityPercentage(value *int32)() + SetOsBatteryHealthScore(value *int32)() SetOsBuildNumber(value *string)() + SetOsHealthStatus(value *UserExperienceAnalyticsHealthState)() SetOsVersion(value *string)() } diff --git a/models/user_experience_analytics_battery_health_runtime_details.go b/models/user_experience_analytics_battery_health_runtime_details.go index 95852170c4f..b17b1077759 100644 --- a/models/user_experience_analytics_battery_health_runtime_details.go +++ b/models/user_experience_analytics_battery_health_runtime_details.go @@ -20,7 +20,7 @@ func NewUserExperienceAnalyticsBatteryHealthRuntimeDetails()(*UserExperienceAnal func CreateUserExperienceAnalyticsBatteryHealthRuntimeDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewUserExperienceAnalyticsBatteryHealthRuntimeDetails(), nil } -// GetActiveDevices gets the activeDevices property value. Number of active devices within the tenant. Valid values -2147483648 to 2147483647 +// GetActiveDevices gets the activeDevices property value. Number of active devices within the tenant. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthRuntimeDetails) GetActiveDevices()(*int32) { val, err := m.GetBackingStore().Get("activeDevices") if err != nil { @@ -31,7 +31,7 @@ func (m *UserExperienceAnalyticsBatteryHealthRuntimeDetails) GetActiveDevices()( } return nil } -// GetBatteryRuntimeFair gets the batteryRuntimeFair property value. Number of devices whose active runtime is greater than 3 hours but lesser than 5 hours. Valid values -2147483648 to 2147483647 +// GetBatteryRuntimeFair gets the batteryRuntimeFair property value. Number of devices whose active runtime is greater than 3 hours but lesser than 5 hours. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthRuntimeDetails) GetBatteryRuntimeFair()(*int32) { val, err := m.GetBackingStore().Get("batteryRuntimeFair") if err != nil { @@ -42,7 +42,7 @@ func (m *UserExperienceAnalyticsBatteryHealthRuntimeDetails) GetBatteryRuntimeFa } return nil } -// GetBatteryRuntimeGood gets the batteryRuntimeGood property value. Number of devices whose active runtime is greater than 5 hours. Valid values -2147483648 to 2147483647 +// GetBatteryRuntimeGood gets the batteryRuntimeGood property value. Number of devices whose active runtime is greater than 5 hours. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthRuntimeDetails) GetBatteryRuntimeGood()(*int32) { val, err := m.GetBackingStore().Get("batteryRuntimeGood") if err != nil { @@ -53,7 +53,7 @@ func (m *UserExperienceAnalyticsBatteryHealthRuntimeDetails) GetBatteryRuntimeGo } return nil } -// GetBatteryRuntimePoor gets the batteryRuntimePoor property value. Number of devices whose active runtime is lesser than 3 hours. Valid values -2147483648 to 2147483647 +// GetBatteryRuntimePoor gets the batteryRuntimePoor property value. Number of devices whose active runtime is lesser than 3 hours. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthRuntimeDetails) GetBatteryRuntimePoor()(*int32) { val, err := m.GetBackingStore().Get("batteryRuntimePoor") if err != nil { @@ -168,28 +168,28 @@ func (m *UserExperienceAnalyticsBatteryHealthRuntimeDetails) Serialize(writer i8 } return nil } -// SetActiveDevices sets the activeDevices property value. Number of active devices within the tenant. Valid values -2147483648 to 2147483647 +// SetActiveDevices sets the activeDevices property value. Number of active devices within the tenant. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthRuntimeDetails) SetActiveDevices(value *int32)() { err := m.GetBackingStore().Set("activeDevices", value) if err != nil { panic(err) } } -// SetBatteryRuntimeFair sets the batteryRuntimeFair property value. Number of devices whose active runtime is greater than 3 hours but lesser than 5 hours. Valid values -2147483648 to 2147483647 +// SetBatteryRuntimeFair sets the batteryRuntimeFair property value. Number of devices whose active runtime is greater than 3 hours but lesser than 5 hours. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthRuntimeDetails) SetBatteryRuntimeFair(value *int32)() { err := m.GetBackingStore().Set("batteryRuntimeFair", value) if err != nil { panic(err) } } -// SetBatteryRuntimeGood sets the batteryRuntimeGood property value. Number of devices whose active runtime is greater than 5 hours. Valid values -2147483648 to 2147483647 +// SetBatteryRuntimeGood sets the batteryRuntimeGood property value. Number of devices whose active runtime is greater than 5 hours. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthRuntimeDetails) SetBatteryRuntimeGood(value *int32)() { err := m.GetBackingStore().Set("batteryRuntimeGood", value) if err != nil { panic(err) } } -// SetBatteryRuntimePoor sets the batteryRuntimePoor property value. Number of devices whose active runtime is lesser than 3 hours. Valid values -2147483648 to 2147483647 +// SetBatteryRuntimePoor sets the batteryRuntimePoor property value. Number of devices whose active runtime is lesser than 3 hours. Valid values 0 to 2147483647 func (m *UserExperienceAnalyticsBatteryHealthRuntimeDetails) SetBatteryRuntimePoor(value *int32)() { err := m.GetBackingStore().Set("batteryRuntimePoor", value) if err != nil { diff --git a/models/user_experience_analytics_device_startup_process_performance.go b/models/user_experience_analytics_device_startup_process_performance.go index 46ef98e9948..3d3d7e7baf3 100644 --- a/models/user_experience_analytics_device_startup_process_performance.go +++ b/models/user_experience_analytics_device_startup_process_performance.go @@ -53,16 +53,6 @@ func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) GetFieldDeseria } return nil } - res["medianImpactInMs2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt64Value() - if err != nil { - return err - } - if val != nil { - m.SetMedianImpactInMs2(val) - } - return nil - } res["processName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -103,16 +93,6 @@ func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) GetFieldDeseria } return nil } - res["totalImpactInMs2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt64Value() - if err != nil { - return err - } - if val != nil { - m.SetTotalImpactInMs2(val) - } - return nil - } return res } // GetMedianImpactInMs gets the medianImpactInMs property value. The median impact of startup process on device boot time in milliseconds. Supports: $filter, $select, $OrderBy. Read-only. @@ -126,17 +106,6 @@ func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) GetMedianImpact } return nil } -// GetMedianImpactInMs2 gets the medianImpactInMs2 property value. The median impact of startup process on device boot time in milliseconds. Supports: $filter, $select, $OrderBy. Read-only. -func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) GetMedianImpactInMs2()(*int64) { - val, err := m.GetBackingStore().Get("medianImpactInMs2") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int64) - } - return nil -} // GetProcessName gets the processName property value. The name of the startup process. Examples: outlook, excel. Supports: $select, $OrderBy. Read-only. func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) GetProcessName()(*string) { val, err := m.GetBackingStore().Get("processName") @@ -181,17 +150,6 @@ func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) GetTotalImpactI } return nil } -// GetTotalImpactInMs2 gets the totalImpactInMs2 property value. The total impact of startup process on device boot time in milliseconds. Supports: $filter, $select, $OrderBy. Read-only. -func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) GetTotalImpactInMs2()(*int64) { - val, err := m.GetBackingStore().Get("totalImpactInMs2") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int64) - } - return nil -} // Serialize serializes information the current object func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -210,12 +168,6 @@ func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) Serialize(write return err } } - { - err = writer.WriteInt64Value("medianImpactInMs2", m.GetMedianImpactInMs2()) - if err != nil { - return err - } - } { err = writer.WriteStringValue("processName", m.GetProcessName()) if err != nil { @@ -240,12 +192,6 @@ func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) Serialize(write return err } } - { - err = writer.WriteInt64Value("totalImpactInMs2", m.GetTotalImpactInMs2()) - if err != nil { - return err - } - } return nil } // SetDeviceCount sets the deviceCount property value. The count of devices which initiated this process on startup. Supports: $filter, $select, $OrderBy. Read-only. @@ -262,13 +208,6 @@ func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) SetMedianImpact panic(err) } } -// SetMedianImpactInMs2 sets the medianImpactInMs2 property value. The median impact of startup process on device boot time in milliseconds. Supports: $filter, $select, $OrderBy. Read-only. -func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) SetMedianImpactInMs2(value *int64)() { - err := m.GetBackingStore().Set("medianImpactInMs2", value) - if err != nil { - panic(err) - } -} // SetProcessName sets the processName property value. The name of the startup process. Examples: outlook, excel. Supports: $select, $OrderBy. Read-only. func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) SetProcessName(value *string)() { err := m.GetBackingStore().Set("processName", value) @@ -297,31 +236,20 @@ func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) SetTotalImpactI panic(err) } } -// SetTotalImpactInMs2 sets the totalImpactInMs2 property value. The total impact of startup process on device boot time in milliseconds. Supports: $filter, $select, $OrderBy. Read-only. -func (m *UserExperienceAnalyticsDeviceStartupProcessPerformance) SetTotalImpactInMs2(value *int64)() { - err := m.GetBackingStore().Set("totalImpactInMs2", value) - if err != nil { - panic(err) - } -} // UserExperienceAnalyticsDeviceStartupProcessPerformanceable type UserExperienceAnalyticsDeviceStartupProcessPerformanceable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDeviceCount()(*int64) GetMedianImpactInMs()(*int64) - GetMedianImpactInMs2()(*int64) GetProcessName()(*string) GetProductName()(*string) GetPublisher()(*string) GetTotalImpactInMs()(*int64) - GetTotalImpactInMs2()(*int64) SetDeviceCount(value *int64)() SetMedianImpactInMs(value *int64)() - SetMedianImpactInMs2(value *int64)() SetProcessName(value *string)() SetProductName(value *string)() SetPublisher(value *string)() SetTotalImpactInMs(value *int64)() - SetTotalImpactInMs2(value *int64)() } diff --git a/models/vendor_escaped.go b/models/vendor_escaped.go index a28805fc91b..039587f8c5e 100644 --- a/models/vendor_escaped.go +++ b/models/vendor_escaped.go @@ -792,53 +792,3 @@ 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 new file mode 100644 index 00000000000..54b10410140 --- /dev/null +++ b/models/vendor_escapedable.go @@ -0,0 +1,59 @@ +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/virtual_appointment.go b/models/virtual_appointment.go deleted file mode 100644 index 7040ce136e6..00000000000 --- a/models/virtual_appointment.go +++ /dev/null @@ -1,231 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// VirtualAppointment -type VirtualAppointment struct { - Entity -} -// NewVirtualAppointment instantiates a new virtualAppointment and sets the default values. -func NewVirtualAppointment()(*VirtualAppointment) { - m := &VirtualAppointment{ - Entity: *NewEntity(), - } - return m -} -// CreateVirtualAppointmentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateVirtualAppointmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewVirtualAppointment(), nil -} -// GetAppointmentClientJoinWebUrl gets the appointmentClientJoinWebUrl property value. The join web URL of the virtual appointment for clients with waiting room and browser join. Optional. -func (m *VirtualAppointment) GetAppointmentClientJoinWebUrl()(*string) { - val, err := m.GetBackingStore().Get("appointmentClientJoinWebUrl") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetAppointmentClients gets the appointmentClients property value. The client information for the virtual appointment, including name, email, and SMS phone number. Optional. -func (m *VirtualAppointment) GetAppointmentClients()([]VirtualAppointmentUserable) { - val, err := m.GetBackingStore().Get("appointmentClients") - if err != nil { - panic(err) - } - if val != nil { - return val.([]VirtualAppointmentUserable) - } - return nil -} -// GetExternalAppointmentId gets the externalAppointmentId property value. The identifier of the appointment from the scheduling system, associated with the current virtual appointment. Optional. -func (m *VirtualAppointment) GetExternalAppointmentId()(*string) { - val, err := m.GetBackingStore().Get("externalAppointmentId") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetExternalAppointmentUrl gets the externalAppointmentUrl property value. The URL of the appointment resource from the scheduling system, associated with the current virtual appointment. Optional. -func (m *VirtualAppointment) GetExternalAppointmentUrl()(*string) { - val, err := m.GetBackingStore().Get("externalAppointmentUrl") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -func (m *VirtualAppointment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.Entity.GetFieldDeserializers() - res["appointmentClientJoinWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetAppointmentClientJoinWebUrl(val) - } - return nil - } - res["appointmentClients"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(CreateVirtualAppointmentUserFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]VirtualAppointmentUserable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(VirtualAppointmentUserable) - } - } - m.SetAppointmentClients(res) - } - return nil - } - res["externalAppointmentId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetExternalAppointmentId(val) - } - return nil - } - res["externalAppointmentUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetExternalAppointmentUrl(val) - } - return nil - } - res["settings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateVirtualAppointmentSettingsFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettings(val.(VirtualAppointmentSettingsable)) - } - return nil - } - return res -} -// GetSettings gets the settings property value. The settings associated with the virtual appointment resource. Optional. -func (m *VirtualAppointment) GetSettings()(VirtualAppointmentSettingsable) { - val, err := m.GetBackingStore().Get("settings") - if err != nil { - panic(err) - } - if val != nil { - return val.(VirtualAppointmentSettingsable) - } - return nil -} -// Serialize serializes information the current object -func (m *VirtualAppointment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.Entity.Serialize(writer) - if err != nil { - return err - } - { - err = writer.WriteStringValue("appointmentClientJoinWebUrl", m.GetAppointmentClientJoinWebUrl()) - if err != nil { - return err - } - } - if m.GetAppointmentClients() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAppointmentClients())) - for i, v := range m.GetAppointmentClients() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("appointmentClients", cast) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("externalAppointmentId", m.GetExternalAppointmentId()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("externalAppointmentUrl", m.GetExternalAppointmentUrl()) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("settings", m.GetSettings()) - if err != nil { - return err - } - } - return nil -} -// SetAppointmentClientJoinWebUrl sets the appointmentClientJoinWebUrl property value. The join web URL of the virtual appointment for clients with waiting room and browser join. Optional. -func (m *VirtualAppointment) SetAppointmentClientJoinWebUrl(value *string)() { - err := m.GetBackingStore().Set("appointmentClientJoinWebUrl", value) - if err != nil { - panic(err) - } -} -// SetAppointmentClients sets the appointmentClients property value. The client information for the virtual appointment, including name, email, and SMS phone number. Optional. -func (m *VirtualAppointment) SetAppointmentClients(value []VirtualAppointmentUserable)() { - err := m.GetBackingStore().Set("appointmentClients", value) - if err != nil { - panic(err) - } -} -// SetExternalAppointmentId sets the externalAppointmentId property value. The identifier of the appointment from the scheduling system, associated with the current virtual appointment. Optional. -func (m *VirtualAppointment) SetExternalAppointmentId(value *string)() { - err := m.GetBackingStore().Set("externalAppointmentId", value) - if err != nil { - panic(err) - } -} -// SetExternalAppointmentUrl sets the externalAppointmentUrl property value. The URL of the appointment resource from the scheduling system, associated with the current virtual appointment. Optional. -func (m *VirtualAppointment) SetExternalAppointmentUrl(value *string)() { - err := m.GetBackingStore().Set("externalAppointmentUrl", value) - if err != nil { - panic(err) - } -} -// SetSettings sets the settings property value. The settings associated with the virtual appointment resource. Optional. -func (m *VirtualAppointment) SetSettings(value VirtualAppointmentSettingsable)() { - err := m.GetBackingStore().Set("settings", value) - if err != nil { - panic(err) - } -} -// VirtualAppointmentable -type VirtualAppointmentable interface { - Entityable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAppointmentClientJoinWebUrl()(*string) - GetAppointmentClients()([]VirtualAppointmentUserable) - GetExternalAppointmentId()(*string) - GetExternalAppointmentUrl()(*string) - GetSettings()(VirtualAppointmentSettingsable) - SetAppointmentClientJoinWebUrl(value *string)() - SetAppointmentClients(value []VirtualAppointmentUserable)() - SetExternalAppointmentId(value *string)() - SetExternalAppointmentUrl(value *string)() - SetSettings(value VirtualAppointmentSettingsable)() -} diff --git a/models/virtual_event_registrant.go b/models/virtual_event_registrant.go deleted file mode 100644 index 9ff1749abf7..00000000000 --- a/models/virtual_event_registrant.go +++ /dev/null @@ -1,341 +0,0 @@ -package models - -import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// VirtualEventRegistrant -type VirtualEventRegistrant struct { - Entity -} -// NewVirtualEventRegistrant instantiates a new virtualEventRegistrant and sets the default values. -func NewVirtualEventRegistrant()(*VirtualEventRegistrant) { - m := &VirtualEventRegistrant{ - Entity: *NewEntity(), - } - return m -} -// CreateVirtualEventRegistrantFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateVirtualEventRegistrantFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewVirtualEventRegistrant(), nil -} -// GetCancelationDateTime gets the cancelationDateTime property value. Time in UTC when the registrant cancels their registration for the virtual event. Only appears when applicable. -func (m *VirtualEventRegistrant) GetCancelationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("cancelationDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} -// GetEmail gets the email property value. Email address of the registrant. -func (m *VirtualEventRegistrant) GetEmail()(*string) { - val, err := m.GetBackingStore().Get("email") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -func (m *VirtualEventRegistrant) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.Entity.GetFieldDeserializers() - res["cancelationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetCancelationDateTime(val) - } - return nil - } - res["email"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetEmail(val) - } - return nil - } - res["firstName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetFirstName(val) - } - return nil - } - res["lastName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetLastName(val) - } - return nil - } - res["registrationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetRegistrationDateTime(val) - } - return nil - } - res["registrationQuestionAnswers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrationQuestionAnswerFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]VirtualEventRegistrationQuestionAnswerable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(VirtualEventRegistrationQuestionAnswerable) - } - } - m.SetRegistrationQuestionAnswers(res) - } - return nil - } - res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVirtualEventAttendeeRegistrationStatus) - if err != nil { - return err - } - if val != nil { - m.SetStatus(val.(*VirtualEventAttendeeRegistrationStatus)) - } - return nil - } - res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUserId(val) - } - return nil - } - return res -} -// GetFirstName gets the firstName property value. First name of the registrant. -func (m *VirtualEventRegistrant) GetFirstName()(*string) { - val, err := m.GetBackingStore().Get("firstName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetLastName gets the lastName property value. Last name of the registrant. -func (m *VirtualEventRegistrant) GetLastName()(*string) { - val, err := m.GetBackingStore().Get("lastName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetRegistrationDateTime gets the registrationDateTime property value. Time in UTC when the registrant registers for the virtual event. -func (m *VirtualEventRegistrant) GetRegistrationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("registrationDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} -// GetRegistrationQuestionAnswers gets the registrationQuestionAnswers property value. The registrant's answer to the registration questions. -func (m *VirtualEventRegistrant) GetRegistrationQuestionAnswers()([]VirtualEventRegistrationQuestionAnswerable) { - val, err := m.GetBackingStore().Get("registrationQuestionAnswers") - if err != nil { - panic(err) - } - if val != nil { - return val.([]VirtualEventRegistrationQuestionAnswerable) - } - return nil -} -// GetStatus gets the status property value. Registration status of the registrant. Read-only. -func (m *VirtualEventRegistrant) GetStatus()(*VirtualEventAttendeeRegistrationStatus) { - val, err := m.GetBackingStore().Get("status") - if err != nil { - panic(err) - } - if val != nil { - return val.(*VirtualEventAttendeeRegistrationStatus) - } - return nil -} -// GetUserId gets the userId property value. The registrant's AAD user ID. Only appears when the registrant is registered in AAD. -func (m *VirtualEventRegistrant) GetUserId()(*string) { - val, err := m.GetBackingStore().Get("userId") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *VirtualEventRegistrant) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.Entity.Serialize(writer) - if err != nil { - return err - } - { - err = writer.WriteTimeValue("cancelationDateTime", m.GetCancelationDateTime()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("email", m.GetEmail()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("firstName", m.GetFirstName()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("lastName", m.GetLastName()) - if err != nil { - return err - } - } - { - err = writer.WriteTimeValue("registrationDateTime", m.GetRegistrationDateTime()) - if err != nil { - return err - } - } - if m.GetRegistrationQuestionAnswers() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRegistrationQuestionAnswers())) - for i, v := range m.GetRegistrationQuestionAnswers() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("registrationQuestionAnswers", cast) - if err != nil { - return err - } - } - if m.GetStatus() != nil { - cast := (*m.GetStatus()).String() - err = writer.WriteStringValue("status", &cast) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("userId", m.GetUserId()) - if err != nil { - return err - } - } - return nil -} -// SetCancelationDateTime sets the cancelationDateTime property value. Time in UTC when the registrant cancels their registration for the virtual event. Only appears when applicable. -func (m *VirtualEventRegistrant) SetCancelationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("cancelationDateTime", value) - if err != nil { - panic(err) - } -} -// SetEmail sets the email property value. Email address of the registrant. -func (m *VirtualEventRegistrant) SetEmail(value *string)() { - err := m.GetBackingStore().Set("email", value) - if err != nil { - panic(err) - } -} -// SetFirstName sets the firstName property value. First name of the registrant. -func (m *VirtualEventRegistrant) SetFirstName(value *string)() { - err := m.GetBackingStore().Set("firstName", value) - if err != nil { - panic(err) - } -} -// SetLastName sets the lastName property value. Last name of the registrant. -func (m *VirtualEventRegistrant) SetLastName(value *string)() { - err := m.GetBackingStore().Set("lastName", value) - if err != nil { - panic(err) - } -} -// SetRegistrationDateTime sets the registrationDateTime property value. Time in UTC when the registrant registers for the virtual event. -func (m *VirtualEventRegistrant) SetRegistrationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("registrationDateTime", value) - if err != nil { - panic(err) - } -} -// SetRegistrationQuestionAnswers sets the registrationQuestionAnswers property value. The registrant's answer to the registration questions. -func (m *VirtualEventRegistrant) SetRegistrationQuestionAnswers(value []VirtualEventRegistrationQuestionAnswerable)() { - err := m.GetBackingStore().Set("registrationQuestionAnswers", value) - if err != nil { - panic(err) - } -} -// SetStatus sets the status property value. Registration status of the registrant. Read-only. -func (m *VirtualEventRegistrant) SetStatus(value *VirtualEventAttendeeRegistrationStatus)() { - err := m.GetBackingStore().Set("status", value) - if err != nil { - panic(err) - } -} -// SetUserId sets the userId property value. The registrant's AAD user ID. Only appears when the registrant is registered in AAD. -func (m *VirtualEventRegistrant) SetUserId(value *string)() { - err := m.GetBackingStore().Set("userId", value) - if err != nil { - panic(err) - } -} -// VirtualEventRegistrantable -type VirtualEventRegistrantable interface { - Entityable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCancelationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetEmail()(*string) - GetFirstName()(*string) - GetLastName()(*string) - GetRegistrationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetRegistrationQuestionAnswers()([]VirtualEventRegistrationQuestionAnswerable) - GetStatus()(*VirtualEventAttendeeRegistrationStatus) - GetUserId()(*string) - SetCancelationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetEmail(value *string)() - SetFirstName(value *string)() - SetLastName(value *string)() - SetRegistrationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetRegistrationQuestionAnswers(value []VirtualEventRegistrationQuestionAnswerable)() - SetStatus(value *VirtualEventAttendeeRegistrationStatus)() - SetUserId(value *string)() -} diff --git a/models/virtual_event_registration.go b/models/virtual_event_registration.go index 78728c1a222..cf66ea14511 100644 --- a/models/virtual_event_registration.go +++ b/models/virtual_event_registration.go @@ -1,6 +1,7 @@ package models import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -19,99 +20,204 @@ func NewVirtualEventRegistration()(*VirtualEventRegistration) { func CreateVirtualEventRegistrationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewVirtualEventRegistration(), nil } -// GetCapacity gets the capacity property value. Total capacity of the virtual event. -func (m *VirtualEventRegistration) GetCapacity()(*int32) { - val, err := m.GetBackingStore().Get("capacity") +// GetCancelationDateTime gets the cancelationDateTime property value. The cancelationDateTime property +func (m *VirtualEventRegistration) GetCancelationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("cancelationDateTime") if err != nil { panic(err) } if val != nil { - return val.(*int32) + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetEmail gets the email property value. The email property +func (m *VirtualEventRegistration) GetEmail()(*string) { + val, err := m.GetBackingStore().Get("email") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) } return nil } // GetFieldDeserializers the deserialization information for the current model func (m *VirtualEventRegistration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() - res["capacity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + res["cancelationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCancelationDateTime(val) + } + return nil + } + res["email"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEmail(val) + } + return nil + } + res["firstName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFirstName(val) + } + return nil + } + res["lastName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() if err != nil { return err } if val != nil { - m.SetCapacity(val) + m.SetLastName(val) } return nil } - res["questions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrationQuestionFromDiscriminatorValue) + res["registrationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() if err != nil { return err } if val != nil { - res := make([]VirtualEventRegistrationQuestionable, len(val)) + m.SetRegistrationDateTime(val) + } + return nil + } + res["registrationQuestionAnswers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrationQuestionAnswerFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventRegistrationQuestionAnswerable, len(val)) for i, v := range val { if v != nil { - res[i] = v.(VirtualEventRegistrationQuestionable) + res[i] = v.(VirtualEventRegistrationQuestionAnswerable) } } - m.SetQuestions(res) + m.SetRegistrationQuestionAnswers(res) } return nil } - res["registrants"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrantFromDiscriminatorValue) + res["sessions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventSessionFromDiscriminatorValue) if err != nil { return err } if val != nil { - res := make([]VirtualEventRegistrantable, len(val)) + res := make([]VirtualEventSessionable, len(val)) for i, v := range val { if v != nil { - res[i] = v.(VirtualEventRegistrantable) + res[i] = v.(VirtualEventSessionable) } } - m.SetRegistrants(res) + m.SetSessions(res) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseVirtualEventAttendeeRegistrationStatus) + if err != nil { + return err + } + if val != nil { + m.SetStatus(val.(*VirtualEventAttendeeRegistrationStatus)) } return nil } - res["registrationWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { - m.SetRegistrationWebUrl(val) + m.SetUserId(val) } return nil } return res } -// GetQuestions gets the questions property value. Registration questions. -func (m *VirtualEventRegistration) GetQuestions()([]VirtualEventRegistrationQuestionable) { - val, err := m.GetBackingStore().Get("questions") +// GetFirstName gets the firstName property value. The firstName property +func (m *VirtualEventRegistration) GetFirstName()(*string) { + val, err := m.GetBackingStore().Get("firstName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetLastName gets the lastName property value. The lastName property +func (m *VirtualEventRegistration) GetLastName()(*string) { + val, err := m.GetBackingStore().Get("lastName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRegistrationDateTime gets the registrationDateTime property value. The registrationDateTime property +func (m *VirtualEventRegistration) GetRegistrationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("registrationDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetRegistrationQuestionAnswers gets the registrationQuestionAnswers property value. The registrationQuestionAnswers property +func (m *VirtualEventRegistration) GetRegistrationQuestionAnswers()([]VirtualEventRegistrationQuestionAnswerable) { + val, err := m.GetBackingStore().Get("registrationQuestionAnswers") + if err != nil { + panic(err) + } + if val != nil { + return val.([]VirtualEventRegistrationQuestionAnswerable) + } + return nil +} +// GetSessions gets the sessions property value. The sessions property +func (m *VirtualEventRegistration) GetSessions()([]VirtualEventSessionable) { + val, err := m.GetBackingStore().Get("sessions") if err != nil { panic(err) } if val != nil { - return val.([]VirtualEventRegistrationQuestionable) + return val.([]VirtualEventSessionable) } return nil } -// GetRegistrants gets the registrants property value. Information of attendees who have registered for the virtual event. -func (m *VirtualEventRegistration) GetRegistrants()([]VirtualEventRegistrantable) { - val, err := m.GetBackingStore().Get("registrants") +// GetStatus gets the status property value. The status property +func (m *VirtualEventRegistration) GetStatus()(*VirtualEventAttendeeRegistrationStatus) { + val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.([]VirtualEventRegistrantable) + return val.(*VirtualEventAttendeeRegistrationStatus) } return nil } -// GetRegistrationWebUrl gets the registrationWebUrl property value. Registration URL of the virtual event. -func (m *VirtualEventRegistration) GetRegistrationWebUrl()(*string) { - val, err := m.GetBackingStore().Get("registrationWebUrl") +// GetUserId gets the userId property value. The userId property +func (m *VirtualEventRegistration) GetUserId()(*string) { + val, err := m.GetBackingStore().Get("userId") if err != nil { panic(err) } @@ -127,67 +233,133 @@ func (m *VirtualEventRegistration) Serialize(writer i878a80d2330e89d26896388a3f4 return err } { - err = writer.WriteInt32Value("capacity", m.GetCapacity()) + err = writer.WriteTimeValue("cancelationDateTime", m.GetCancelationDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("email", m.GetEmail()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("firstName", m.GetFirstName()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("lastName", m.GetLastName()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("registrationDateTime", m.GetRegistrationDateTime()) if err != nil { return err } } - if m.GetQuestions() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetQuestions())) - for i, v := range m.GetQuestions() { + if m.GetRegistrationQuestionAnswers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRegistrationQuestionAnswers())) + for i, v := range m.GetRegistrationQuestionAnswers() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } - err = writer.WriteCollectionOfObjectValues("questions", cast) + err = writer.WriteCollectionOfObjectValues("registrationQuestionAnswers", cast) if err != nil { return err } } - if m.GetRegistrants() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRegistrants())) - for i, v := range m.GetRegistrants() { + if m.GetSessions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSessions())) + for i, v := range m.GetSessions() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } - err = writer.WriteCollectionOfObjectValues("registrants", cast) + err = writer.WriteCollectionOfObjectValues("sessions", cast) + if err != nil { + return err + } + } + if m.GetStatus() != nil { + cast := (*m.GetStatus()).String() + err = writer.WriteStringValue("status", &cast) if err != nil { return err } } { - err = writer.WriteStringValue("registrationWebUrl", m.GetRegistrationWebUrl()) + err = writer.WriteStringValue("userId", m.GetUserId()) if err != nil { return err } } return nil } -// SetCapacity sets the capacity property value. Total capacity of the virtual event. -func (m *VirtualEventRegistration) SetCapacity(value *int32)() { - err := m.GetBackingStore().Set("capacity", value) +// SetCancelationDateTime sets the cancelationDateTime property value. The cancelationDateTime property +func (m *VirtualEventRegistration) SetCancelationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("cancelationDateTime", value) + if err != nil { + panic(err) + } +} +// SetEmail sets the email property value. The email property +func (m *VirtualEventRegistration) SetEmail(value *string)() { + err := m.GetBackingStore().Set("email", value) + if err != nil { + panic(err) + } +} +// SetFirstName sets the firstName property value. The firstName property +func (m *VirtualEventRegistration) SetFirstName(value *string)() { + err := m.GetBackingStore().Set("firstName", value) + if err != nil { + panic(err) + } +} +// SetLastName sets the lastName property value. The lastName property +func (m *VirtualEventRegistration) SetLastName(value *string)() { + err := m.GetBackingStore().Set("lastName", value) + if err != nil { + panic(err) + } +} +// SetRegistrationDateTime sets the registrationDateTime property value. The registrationDateTime property +func (m *VirtualEventRegistration) SetRegistrationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("registrationDateTime", value) + if err != nil { + panic(err) + } +} +// SetRegistrationQuestionAnswers sets the registrationQuestionAnswers property value. The registrationQuestionAnswers property +func (m *VirtualEventRegistration) SetRegistrationQuestionAnswers(value []VirtualEventRegistrationQuestionAnswerable)() { + err := m.GetBackingStore().Set("registrationQuestionAnswers", value) if err != nil { panic(err) } } -// SetQuestions sets the questions property value. Registration questions. -func (m *VirtualEventRegistration) SetQuestions(value []VirtualEventRegistrationQuestionable)() { - err := m.GetBackingStore().Set("questions", value) +// SetSessions sets the sessions property value. The sessions property +func (m *VirtualEventRegistration) SetSessions(value []VirtualEventSessionable)() { + err := m.GetBackingStore().Set("sessions", value) if err != nil { panic(err) } } -// SetRegistrants sets the registrants property value. Information of attendees who have registered for the virtual event. -func (m *VirtualEventRegistration) SetRegistrants(value []VirtualEventRegistrantable)() { - err := m.GetBackingStore().Set("registrants", value) +// SetStatus sets the status property value. The status property +func (m *VirtualEventRegistration) SetStatus(value *VirtualEventAttendeeRegistrationStatus)() { + err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) } } -// SetRegistrationWebUrl sets the registrationWebUrl property value. Registration URL of the virtual event. -func (m *VirtualEventRegistration) SetRegistrationWebUrl(value *string)() { - err := m.GetBackingStore().Set("registrationWebUrl", value) +// SetUserId sets the userId property value. The userId property +func (m *VirtualEventRegistration) SetUserId(value *string)() { + err := m.GetBackingStore().Set("userId", value) if err != nil { panic(err) } @@ -196,12 +368,22 @@ func (m *VirtualEventRegistration) SetRegistrationWebUrl(value *string)() { type VirtualEventRegistrationable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCapacity()(*int32) - GetQuestions()([]VirtualEventRegistrationQuestionable) - GetRegistrants()([]VirtualEventRegistrantable) - GetRegistrationWebUrl()(*string) - SetCapacity(value *int32)() - SetQuestions(value []VirtualEventRegistrationQuestionable)() - SetRegistrants(value []VirtualEventRegistrantable)() - SetRegistrationWebUrl(value *string)() + GetCancelationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetEmail()(*string) + GetFirstName()(*string) + GetLastName()(*string) + GetRegistrationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetRegistrationQuestionAnswers()([]VirtualEventRegistrationQuestionAnswerable) + GetSessions()([]VirtualEventSessionable) + GetStatus()(*VirtualEventAttendeeRegistrationStatus) + GetUserId()(*string) + SetCancelationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetEmail(value *string)() + SetFirstName(value *string)() + SetLastName(value *string)() + SetRegistrationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetRegistrationQuestionAnswers(value []VirtualEventRegistrationQuestionAnswerable)() + SetSessions(value []VirtualEventSessionable)() + SetStatus(value *VirtualEventAttendeeRegistrationStatus)() + SetUserId(value *string)() } diff --git a/models/virtual_event_registration_collection_response.go b/models/virtual_event_registration_collection_response.go new file mode 100644 index 00000000000..e37c9325a37 --- /dev/null +++ b/models/virtual_event_registration_collection_response.go @@ -0,0 +1,87 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// VirtualEventRegistrationCollectionResponse +type VirtualEventRegistrationCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewVirtualEventRegistrationCollectionResponse instantiates a new virtualEventRegistrationCollectionResponse and sets the default values. +func NewVirtualEventRegistrationCollectionResponse()(*VirtualEventRegistrationCollectionResponse) { + m := &VirtualEventRegistrationCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateVirtualEventRegistrationCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateVirtualEventRegistrationCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventRegistrationCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *VirtualEventRegistrationCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventRegistrationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(VirtualEventRegistrationable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *VirtualEventRegistrationCollectionResponse) GetValue()([]VirtualEventRegistrationable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]VirtualEventRegistrationable) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventRegistrationCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *VirtualEventRegistrationCollectionResponse) SetValue(value []VirtualEventRegistrationable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// VirtualEventRegistrationCollectionResponseable +type VirtualEventRegistrationCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]VirtualEventRegistrationable) + SetValue(value []VirtualEventRegistrationable)() +} diff --git a/models/virtual_event_registration_configuration.go b/models/virtual_event_registration_configuration.go new file mode 100644 index 00000000000..d513cd73bff --- /dev/null +++ b/models/virtual_event_registration_configuration.go @@ -0,0 +1,177 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// VirtualEventRegistrationConfiguration +type VirtualEventRegistrationConfiguration struct { + Entity +} +// NewVirtualEventRegistrationConfiguration instantiates a new virtualEventRegistrationConfiguration and sets the default values. +func NewVirtualEventRegistrationConfiguration()(*VirtualEventRegistrationConfiguration) { + m := &VirtualEventRegistrationConfiguration{ + Entity: *NewEntity(), + } + return m +} +// CreateVirtualEventRegistrationConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateVirtualEventRegistrationConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.virtualEventWebinarRegistrationConfiguration": + return NewVirtualEventWebinarRegistrationConfiguration(), nil + } + } + } + } + return NewVirtualEventRegistrationConfiguration(), nil +} +// GetCapacity gets the capacity property value. The capacity property +func (m *VirtualEventRegistrationConfiguration) GetCapacity()(*int32) { + val, err := m.GetBackingStore().Get("capacity") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *VirtualEventRegistrationConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["capacity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCapacity(val) + } + return nil + } + res["questions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrationQuestionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventRegistrationQuestionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(VirtualEventRegistrationQuestionable) + } + } + m.SetQuestions(res) + } + return nil + } + res["registrationWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRegistrationWebUrl(val) + } + return nil + } + return res +} +// GetQuestions gets the questions property value. The questions property +func (m *VirtualEventRegistrationConfiguration) GetQuestions()([]VirtualEventRegistrationQuestionable) { + val, err := m.GetBackingStore().Get("questions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]VirtualEventRegistrationQuestionable) + } + return nil +} +// GetRegistrationWebUrl gets the registrationWebUrl property value. The registrationWebUrl property +func (m *VirtualEventRegistrationConfiguration) GetRegistrationWebUrl()(*string) { + val, err := m.GetBackingStore().Get("registrationWebUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventRegistrationConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteInt32Value("capacity", m.GetCapacity()) + if err != nil { + return err + } + } + if m.GetQuestions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetQuestions())) + for i, v := range m.GetQuestions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("questions", cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("registrationWebUrl", m.GetRegistrationWebUrl()) + if err != nil { + return err + } + } + return nil +} +// SetCapacity sets the capacity property value. The capacity property +func (m *VirtualEventRegistrationConfiguration) SetCapacity(value *int32)() { + err := m.GetBackingStore().Set("capacity", value) + if err != nil { + panic(err) + } +} +// SetQuestions sets the questions property value. The questions property +func (m *VirtualEventRegistrationConfiguration) SetQuestions(value []VirtualEventRegistrationQuestionable)() { + err := m.GetBackingStore().Set("questions", value) + if err != nil { + panic(err) + } +} +// SetRegistrationWebUrl sets the registrationWebUrl property value. The registrationWebUrl property +func (m *VirtualEventRegistrationConfiguration) SetRegistrationWebUrl(value *string)() { + err := m.GetBackingStore().Set("registrationWebUrl", value) + if err != nil { + panic(err) + } +} +// VirtualEventRegistrationConfigurationable +type VirtualEventRegistrationConfigurationable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCapacity()(*int32) + GetQuestions()([]VirtualEventRegistrationQuestionable) + GetRegistrationWebUrl()(*string) + SetCapacity(value *int32)() + SetQuestions(value []VirtualEventRegistrationQuestionable)() + SetRegistrationWebUrl(value *string)() +} diff --git a/models/virtual_event_session.go b/models/virtual_event_session.go index 8c4a17f33a6..e4d4d2dc1b5 100644 --- a/models/virtual_event_session.go +++ b/models/virtual_event_session.go @@ -22,18 +22,66 @@ func CreateVirtualEventSessionFromDiscriminatorValue(parseNode i878a80d2330e89d2 // GetFieldDeserializers the deserialization information for the current model func (m *VirtualEventSession) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.OnlineMeeting.GetFieldDeserializers() + res["registrations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventRegistrationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(VirtualEventRegistrationable) + } + } + m.SetRegistrations(res) + } + return nil + } return res } +// GetRegistrations gets the registrations property value. The registrations property +func (m *VirtualEventSession) GetRegistrations()([]VirtualEventRegistrationable) { + val, err := m.GetBackingStore().Get("registrations") + if err != nil { + panic(err) + } + if val != nil { + return val.([]VirtualEventRegistrationable) + } + return nil +} // Serialize serializes information the current object func (m *VirtualEventSession) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.OnlineMeeting.Serialize(writer) if err != nil { return err } + if m.GetRegistrations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRegistrations())) + for i, v := range m.GetRegistrations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("registrations", cast) + if err != nil { + return err + } + } return nil } +// SetRegistrations sets the registrations property value. The registrations property +func (m *VirtualEventSession) SetRegistrations(value []VirtualEventRegistrationable)() { + err := m.GetBackingStore().Set("registrations", value) + if err != nil { + panic(err) + } +} // VirtualEventSessionable type VirtualEventSessionable interface { OnlineMeetingable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetRegistrations()([]VirtualEventRegistrationable) + SetRegistrations(value []VirtualEventRegistrationable)() } diff --git a/models/virtual_event_webinar.go b/models/virtual_event_webinar.go index fc76bc1bd34..b9c7282a27f 100644 --- a/models/virtual_event_webinar.go +++ b/models/virtual_event_webinar.go @@ -70,26 +70,53 @@ func (m *VirtualEventWebinar) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } - res["registration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateVirtualEventRegistrationFromDiscriminatorValue) + res["registrationConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateVirtualEventRegistrationConfigurationFromDiscriminatorValue) if err != nil { return err } if val != nil { - m.SetRegistration(val.(VirtualEventRegistrationable)) + m.SetRegistrationConfiguration(val.(VirtualEventRegistrationConfigurationable)) + } + return nil + } + res["registrations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventRegistrationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(VirtualEventRegistrationable) + } + } + m.SetRegistrations(res) } return nil } return res } -// GetRegistration gets the registration property value. Registration configuration of the webinar. -func (m *VirtualEventWebinar) GetRegistration()(VirtualEventRegistrationable) { - val, err := m.GetBackingStore().Get("registration") +// GetRegistrationConfiguration gets the registrationConfiguration property value. The registrationConfiguration property +func (m *VirtualEventWebinar) GetRegistrationConfiguration()(VirtualEventRegistrationConfigurationable) { + val, err := m.GetBackingStore().Get("registrationConfiguration") + if err != nil { + panic(err) + } + if val != nil { + return val.(VirtualEventRegistrationConfigurationable) + } + return nil +} +// GetRegistrations gets the registrations property value. The registrations property +func (m *VirtualEventWebinar) GetRegistrations()([]VirtualEventRegistrationable) { + val, err := m.GetBackingStore().Get("registrations") if err != nil { panic(err) } if val != nil { - return val.(VirtualEventRegistrationable) + return val.([]VirtualEventRegistrationable) } return nil } @@ -119,7 +146,19 @@ func (m *VirtualEventWebinar) Serialize(writer i878a80d2330e89d26896388a3f487eef } } { - err = writer.WriteObjectValue("registration", m.GetRegistration()) + err = writer.WriteObjectValue("registrationConfiguration", m.GetRegistrationConfiguration()) + if err != nil { + return err + } + } + if m.GetRegistrations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRegistrations())) + for i, v := range m.GetRegistrations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("registrations", cast) if err != nil { return err } @@ -140,9 +179,16 @@ func (m *VirtualEventWebinar) SetCoOrganizers(value []CommunicationsUserIdentity panic(err) } } -// SetRegistration sets the registration property value. Registration configuration of the webinar. -func (m *VirtualEventWebinar) SetRegistration(value VirtualEventRegistrationable)() { - err := m.GetBackingStore().Set("registration", value) +// SetRegistrationConfiguration sets the registrationConfiguration property value. The registrationConfiguration property +func (m *VirtualEventWebinar) SetRegistrationConfiguration(value VirtualEventRegistrationConfigurationable)() { + err := m.GetBackingStore().Set("registrationConfiguration", value) + if err != nil { + panic(err) + } +} +// SetRegistrations sets the registrations property value. The registrations property +func (m *VirtualEventWebinar) SetRegistrations(value []VirtualEventRegistrationable)() { + err := m.GetBackingStore().Set("registrations", value) if err != nil { panic(err) } @@ -153,8 +199,10 @@ type VirtualEventWebinarable interface { VirtualEventable GetAudience()(*MeetingAudience) GetCoOrganizers()([]CommunicationsUserIdentityable) - GetRegistration()(VirtualEventRegistrationable) + GetRegistrationConfiguration()(VirtualEventRegistrationConfigurationable) + GetRegistrations()([]VirtualEventRegistrationable) SetAudience(value *MeetingAudience)() SetCoOrganizers(value []CommunicationsUserIdentityable)() - SetRegistration(value VirtualEventRegistrationable)() + SetRegistrationConfiguration(value VirtualEventRegistrationConfigurationable)() + SetRegistrations(value []VirtualEventRegistrationable)() } diff --git a/models/virtual_event_webinar_registration_configuration.go b/models/virtual_event_webinar_registration_configuration.go new file mode 100644 index 00000000000..065e5c8c05d --- /dev/null +++ b/models/virtual_event_webinar_registration_configuration.go @@ -0,0 +1,113 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// VirtualEventWebinarRegistrationConfiguration +type VirtualEventWebinarRegistrationConfiguration struct { + VirtualEventRegistrationConfiguration +} +// NewVirtualEventWebinarRegistrationConfiguration instantiates a new virtualEventWebinarRegistrationConfiguration and sets the default values. +func NewVirtualEventWebinarRegistrationConfiguration()(*VirtualEventWebinarRegistrationConfiguration) { + m := &VirtualEventWebinarRegistrationConfiguration{ + VirtualEventRegistrationConfiguration: *NewVirtualEventRegistrationConfiguration(), + } + odataTypeValue := "#microsoft.graph.virtualEventWebinarRegistrationConfiguration" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventWebinarRegistrationConfiguration(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *VirtualEventWebinarRegistrationConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.VirtualEventRegistrationConfiguration.GetFieldDeserializers() + res["isManualApprovalEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsManualApprovalEnabled(val) + } + return nil + } + res["isWaitlistEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsWaitlistEnabled(val) + } + return nil + } + return res +} +// GetIsManualApprovalEnabled gets the isManualApprovalEnabled property value. The isManualApprovalEnabled property +func (m *VirtualEventWebinarRegistrationConfiguration) GetIsManualApprovalEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isManualApprovalEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsWaitlistEnabled gets the isWaitlistEnabled property value. The isWaitlistEnabled property +func (m *VirtualEventWebinarRegistrationConfiguration) GetIsWaitlistEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isWaitlistEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventWebinarRegistrationConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.VirtualEventRegistrationConfiguration.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteBoolValue("isManualApprovalEnabled", m.GetIsManualApprovalEnabled()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isWaitlistEnabled", m.GetIsWaitlistEnabled()) + if err != nil { + return err + } + } + return nil +} +// SetIsManualApprovalEnabled sets the isManualApprovalEnabled property value. The isManualApprovalEnabled property +func (m *VirtualEventWebinarRegistrationConfiguration) SetIsManualApprovalEnabled(value *bool)() { + err := m.GetBackingStore().Set("isManualApprovalEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsWaitlistEnabled sets the isWaitlistEnabled property value. The isWaitlistEnabled property +func (m *VirtualEventWebinarRegistrationConfiguration) SetIsWaitlistEnabled(value *bool)() { + err := m.GetBackingStore().Set("isWaitlistEnabled", value) + if err != nil { + panic(err) + } +} +// VirtualEventWebinarRegistrationConfigurationable +type VirtualEventWebinarRegistrationConfigurationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + VirtualEventRegistrationConfigurationable + GetIsManualApprovalEnabled()(*bool) + GetIsWaitlistEnabled()(*bool) + SetIsManualApprovalEnabled(value *bool)() + SetIsWaitlistEnabled(value *bool)() +} diff --git a/models/win32_lob_app_install_experience.go b/models/win32_lob_app_install_experience.go index d659c5c7944..5e794357f7a 100644 --- a/models/win32_lob_app_install_experience.go +++ b/models/win32_lob_app_install_experience.go @@ -62,6 +62,16 @@ func (m *Win32LobAppInstallExperience) GetFieldDeserializers()(map[string]func(i } return nil } + res["maxRunTimeInMinutes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetMaxRunTimeInMinutes(val) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -84,6 +94,17 @@ func (m *Win32LobAppInstallExperience) GetFieldDeserializers()(map[string]func(i } return res } +// GetMaxRunTimeInMinutes gets the maxRunTimeInMinutes property value. The number of minutes the system will wait for install program to finish. Default value is 60 minutes. +func (m *Win32LobAppInstallExperience) GetMaxRunTimeInMinutes()(*int32) { + val, err := m.GetBackingStore().Get("maxRunTimeInMinutes") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} // GetOdataType gets the @odata.type property value. The OdataType property func (m *Win32LobAppInstallExperience) GetOdataType()(*string) { val, err := m.GetBackingStore().Get("odataType") @@ -115,6 +136,12 @@ func (m *Win32LobAppInstallExperience) Serialize(writer i878a80d2330e89d26896388 return err } } + { + err := writer.WriteInt32Value("maxRunTimeInMinutes", m.GetMaxRunTimeInMinutes()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -154,6 +181,13 @@ func (m *Win32LobAppInstallExperience) SetDeviceRestartBehavior(value *Win32LobA panic(err) } } +// SetMaxRunTimeInMinutes sets the maxRunTimeInMinutes property value. The number of minutes the system will wait for install program to finish. Default value is 60 minutes. +func (m *Win32LobAppInstallExperience) SetMaxRunTimeInMinutes(value *int32)() { + err := m.GetBackingStore().Set("maxRunTimeInMinutes", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *Win32LobAppInstallExperience) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -175,10 +209,12 @@ type Win32LobAppInstallExperienceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDeviceRestartBehavior()(*Win32LobAppRestartBehavior) + GetMaxRunTimeInMinutes()(*int32) GetOdataType()(*string) GetRunAsAccount()(*RunAsAccountType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDeviceRestartBehavior(value *Win32LobAppRestartBehavior)() + SetMaxRunTimeInMinutes(value *int32)() SetOdataType(value *string)() SetRunAsAccount(value *RunAsAccountType)() } diff --git a/models/windows_device_type.go b/models/windows_device_type.go index 6831e56ce25..be550feaeae 100644 --- a/models/windows_device_type.go +++ b/models/windows_device_type.go @@ -2,24 +2,26 @@ package models import ( "errors" ) -// Contains properties for Windows device type. +// Contains properties for Windows device type. Multiple values can be selected. Default value is `none`. type WindowsDeviceType int const ( - // No flags set. + // No device types supported. Default value. NONE_WINDOWSDEVICETYPE WindowsDeviceType = iota - // Whether or not the Desktop Windows device type is supported. + // Indicates support for Desktop Windows device type. DESKTOP_WINDOWSDEVICETYPE - // Whether or not the Mobile Windows device type is supported. + // Indicates support for Mobile Windows device type. MOBILE_WINDOWSDEVICETYPE - // Whether or not the Holographic Windows device type is supported. + // Indicates support for Holographic Windows device type. HOLOGRAPHIC_WINDOWSDEVICETYPE - // Whether or not the Team Windows device type is supported. + // Indicates support for Team Windows device type. TEAM_WINDOWSDEVICETYPE + // Evolvable enumeration sentinel value. Do not use. + UNKNOWNFUTUREVALUE_WINDOWSDEVICETYPE ) func (i WindowsDeviceType) String() string { - return []string{"none", "desktop", "mobile", "holographic", "team"}[i] + return []string{"none", "desktop", "mobile", "holographic", "team", "unknownFutureValue"}[i] } func ParseWindowsDeviceType(v string) (any, error) { result := NONE_WINDOWSDEVICETYPE @@ -34,6 +36,8 @@ func ParseWindowsDeviceType(v string) (any, error) { result = HOLOGRAPHIC_WINDOWSDEVICETYPE case "team": result = TEAM_WINDOWSDEVICETYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_WINDOWSDEVICETYPE default: return 0, errors.New("Unknown WindowsDeviceType value: " + v) } diff --git a/models/windows_universal_app_x.go b/models/windows_universal_app_x.go index fab95e77586..590f9bf69cb 100644 --- a/models/windows_universal_app_x.go +++ b/models/windows_universal_app_x.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsUniversalAppX contains properties and inherited properties for Windows Universal AppX Line Of Business apps. +// WindowsUniversalAppX contains properties and inherited properties for Windows Universal AppX Line Of Business apps. Inherits from `mobileLobApp`. type WindowsUniversalAppX struct { MobileLobApp } @@ -32,7 +32,7 @@ func (m *WindowsUniversalAppX) GetApplicableArchitectures()(*WindowsArchitecture } return nil } -// GetApplicableDeviceTypes gets the applicableDeviceTypes property value. Contains properties for Windows device type. +// GetApplicableDeviceTypes gets the applicableDeviceTypes property value. Contains properties for Windows device type. Multiple values can be selected. Default value is `none`. func (m *WindowsUniversalAppX) GetApplicableDeviceTypes()(*WindowsDeviceType) { val, err := m.GetBackingStore().Get("applicableDeviceTypes") if err != nil { @@ -155,7 +155,7 @@ func (m *WindowsUniversalAppX) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } -// GetIdentityName gets the identityName property value. The Identity Name. +// GetIdentityName gets the identityName property value. The Identity Name of the app, parsed from the appx file when it is uploaded through the Intune MEM console. For example: 'Contoso.DemoApp'. func (m *WindowsUniversalAppX) GetIdentityName()(*string) { val, err := m.GetBackingStore().Get("identityName") if err != nil { @@ -166,7 +166,7 @@ func (m *WindowsUniversalAppX) GetIdentityName()(*string) { } return nil } -// GetIdentityPublisherHash gets the identityPublisherHash property value. The Identity Publisher Hash. +// GetIdentityPublisherHash gets the identityPublisherHash property value. The Identity Publisher Hash of the app, parsed from the appx file when it is uploaded through the Intune MEM console. For example: 'AB82CD0XYZ'. func (m *WindowsUniversalAppX) GetIdentityPublisherHash()(*string) { val, err := m.GetBackingStore().Get("identityPublisherHash") if err != nil { @@ -177,7 +177,7 @@ func (m *WindowsUniversalAppX) GetIdentityPublisherHash()(*string) { } return nil } -// GetIdentityResourceIdentifier gets the identityResourceIdentifier property value. The Identity Resource Identifier. +// GetIdentityResourceIdentifier gets the identityResourceIdentifier property value. The Identity Resource Identifier of the app, parsed from the appx file when it is uploaded through the Intune MEM console. For example: 'TestResourceId'. func (m *WindowsUniversalAppX) GetIdentityResourceIdentifier()(*string) { val, err := m.GetBackingStore().Get("identityResourceIdentifier") if err != nil { @@ -188,7 +188,7 @@ func (m *WindowsUniversalAppX) GetIdentityResourceIdentifier()(*string) { } return nil } -// GetIdentityVersion gets the identityVersion property value. The identity version. +// GetIdentityVersion gets the identityVersion property value. The Identity Version of the app, parsed from the appx file when it is uploaded through the Intune MEM console. For example: '1.0.0.0'. func (m *WindowsUniversalAppX) GetIdentityVersion()(*string) { val, err := m.GetBackingStore().Get("identityVersion") if err != nil { @@ -199,7 +199,7 @@ func (m *WindowsUniversalAppX) GetIdentityVersion()(*string) { } return nil } -// GetIsBundle gets the isBundle property value. Whether or not the app is a bundle. +// GetIsBundle gets the isBundle property value. Whether or not the app is a bundle. If TRUE, app is a bundle; if FALSE, app is not a bundle. func (m *WindowsUniversalAppX) GetIsBundle()(*bool) { val, err := m.GetBackingStore().Get("isBundle") if err != nil { @@ -298,7 +298,7 @@ func (m *WindowsUniversalAppX) SetApplicableArchitectures(value *WindowsArchitec panic(err) } } -// SetApplicableDeviceTypes sets the applicableDeviceTypes property value. Contains properties for Windows device type. +// SetApplicableDeviceTypes sets the applicableDeviceTypes property value. Contains properties for Windows device type. Multiple values can be selected. Default value is `none`. func (m *WindowsUniversalAppX) SetApplicableDeviceTypes(value *WindowsDeviceType)() { err := m.GetBackingStore().Set("applicableDeviceTypes", value) if err != nil { @@ -312,35 +312,35 @@ func (m *WindowsUniversalAppX) SetCommittedContainedApps(value []MobileContained panic(err) } } -// SetIdentityName sets the identityName property value. The Identity Name. +// SetIdentityName sets the identityName property value. The Identity Name of the app, parsed from the appx file when it is uploaded through the Intune MEM console. For example: 'Contoso.DemoApp'. func (m *WindowsUniversalAppX) SetIdentityName(value *string)() { err := m.GetBackingStore().Set("identityName", value) if err != nil { panic(err) } } -// SetIdentityPublisherHash sets the identityPublisherHash property value. The Identity Publisher Hash. +// SetIdentityPublisherHash sets the identityPublisherHash property value. The Identity Publisher Hash of the app, parsed from the appx file when it is uploaded through the Intune MEM console. For example: 'AB82CD0XYZ'. func (m *WindowsUniversalAppX) SetIdentityPublisherHash(value *string)() { err := m.GetBackingStore().Set("identityPublisherHash", value) if err != nil { panic(err) } } -// SetIdentityResourceIdentifier sets the identityResourceIdentifier property value. The Identity Resource Identifier. +// SetIdentityResourceIdentifier sets the identityResourceIdentifier property value. The Identity Resource Identifier of the app, parsed from the appx file when it is uploaded through the Intune MEM console. For example: 'TestResourceId'. func (m *WindowsUniversalAppX) SetIdentityResourceIdentifier(value *string)() { err := m.GetBackingStore().Set("identityResourceIdentifier", value) if err != nil { panic(err) } } -// SetIdentityVersion sets the identityVersion property value. The identity version. +// SetIdentityVersion sets the identityVersion property value. The Identity Version of the app, parsed from the appx file when it is uploaded through the Intune MEM console. For example: '1.0.0.0'. func (m *WindowsUniversalAppX) SetIdentityVersion(value *string)() { err := m.GetBackingStore().Set("identityVersion", value) if err != nil { panic(err) } } -// SetIsBundle sets the isBundle property value. Whether or not the app is a bundle. +// SetIsBundle sets the isBundle property value. Whether or not the app is a bundle. If TRUE, app is a bundle; if FALSE, app is not a bundle. func (m *WindowsUniversalAppX) SetIsBundle(value *bool)() { err := m.GetBackingStore().Set("isBundle", value) if err != nil { diff --git a/models/windowsupdates/build_version_details.go b/models/windowsupdates/build_version_details.go new file mode 100644 index 00000000000..b796d9ce310 --- /dev/null +++ b/models/windowsupdates/build_version_details.go @@ -0,0 +1,254 @@ +package windowsupdates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// BuildVersionDetails +type BuildVersionDetails struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewBuildVersionDetails instantiates a new buildVersionDetails and sets the default values. +func NewBuildVersionDetails()(*BuildVersionDetails) { + m := &BuildVersionDetails{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateBuildVersionDetailsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateBuildVersionDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewBuildVersionDetails(), 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 *BuildVersionDetails) 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 *BuildVersionDetails) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBuildNumber gets the buildNumber property value. The buildNumber property +func (m *BuildVersionDetails) GetBuildNumber()(*int32) { + val, err := m.GetBackingStore().Get("buildNumber") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *BuildVersionDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["buildNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetBuildNumber(val) + } + return nil + } + res["majorVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetMajorVersion(val) + } + return nil + } + res["minorVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetMinorVersion(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["updateBuildRevision"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetUpdateBuildRevision(val) + } + return nil + } + return res +} +// GetMajorVersion gets the majorVersion property value. The majorVersion property +func (m *BuildVersionDetails) GetMajorVersion()(*int32) { + val, err := m.GetBackingStore().Get("majorVersion") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetMinorVersion gets the minorVersion property value. The minorVersion property +func (m *BuildVersionDetails) GetMinorVersion()(*int32) { + val, err := m.GetBackingStore().Get("minorVersion") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *BuildVersionDetails) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUpdateBuildRevision gets the updateBuildRevision property value. The updateBuildRevision property +func (m *BuildVersionDetails) GetUpdateBuildRevision()(*int32) { + val, err := m.GetBackingStore().Get("updateBuildRevision") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *BuildVersionDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("buildNumber", m.GetBuildNumber()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("majorVersion", m.GetMajorVersion()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("minorVersion", m.GetMinorVersion()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("updateBuildRevision", m.GetUpdateBuildRevision()) + 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 *BuildVersionDetails) 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 *BuildVersionDetails) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBuildNumber sets the buildNumber property value. The buildNumber property +func (m *BuildVersionDetails) SetBuildNumber(value *int32)() { + err := m.GetBackingStore().Set("buildNumber", value) + if err != nil { + panic(err) + } +} +// SetMajorVersion sets the majorVersion property value. The majorVersion property +func (m *BuildVersionDetails) SetMajorVersion(value *int32)() { + err := m.GetBackingStore().Set("majorVersion", value) + if err != nil { + panic(err) + } +} +// SetMinorVersion sets the minorVersion property value. The minorVersion property +func (m *BuildVersionDetails) SetMinorVersion(value *int32)() { + err := m.GetBackingStore().Set("minorVersion", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *BuildVersionDetails) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetUpdateBuildRevision sets the updateBuildRevision property value. The updateBuildRevision property +func (m *BuildVersionDetails) SetUpdateBuildRevision(value *int32)() { + err := m.GetBackingStore().Set("updateBuildRevision", value) + if err != nil { + panic(err) + } +} +// BuildVersionDetailsable +type BuildVersionDetailsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBuildNumber()(*int32) + GetMajorVersion()(*int32) + GetMinorVersion()(*int32) + GetOdataType()(*string) + GetUpdateBuildRevision()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBuildNumber(value *int32)() + SetMajorVersion(value *int32)() + SetMinorVersion(value *int32)() + SetOdataType(value *string)() + SetUpdateBuildRevision(value *int32)() +} diff --git a/models/windowsupdates/cve_information.go b/models/windowsupdates/cve_information.go new file mode 100644 index 00000000000..c1dee28b5ff --- /dev/null +++ b/models/windowsupdates/cve_information.go @@ -0,0 +1,182 @@ +package windowsupdates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// CveInformation +type CveInformation struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCveInformation instantiates a new cveInformation and sets the default values. +func NewCveInformation()(*CveInformation) { + m := &CveInformation{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCveInformationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCveInformationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCveInformation(), 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 *CveInformation) 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 *CveInformation) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CveInformation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNumber(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["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUrl(val) + } + return nil + } + return res +} +// GetNumber gets the number property value. The number property +func (m *CveInformation) GetNumber()(*string) { + val, err := m.GetBackingStore().Get("number") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CveInformation) 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 *CveInformation) GetUrl()(*string) { + val, err := m.GetBackingStore().Get("url") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *CveInformation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("number", m.GetNumber()) + 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 { + 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 *CveInformation) 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 *CveInformation) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetNumber sets the number property value. The number property +func (m *CveInformation) SetNumber(value *string)() { + err := m.GetBackingStore().Set("number", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CveInformation) 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 *CveInformation) SetUrl(value *string)() { + err := m.GetBackingStore().Set("url", value) + if err != nil { + panic(err) + } +} +// CveInformationable +type CveInformationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetNumber()(*string) + GetOdataType()(*string) + GetUrl()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetNumber(value *string)() + SetOdataType(value *string)() + SetUrl(value *string)() +} diff --git a/models/windowsupdates/cve_severity_level.go b/models/windowsupdates/cve_severity_level.go new file mode 100644 index 00000000000..edcd8a284a3 --- /dev/null +++ b/models/windowsupdates/cve_severity_level.go @@ -0,0 +1,40 @@ +package windowsupdates +import ( + "errors" +) +// +type CveSeverityLevel int + +const ( + CRITICAL_CVESEVERITYLEVEL CveSeverityLevel = iota + IMPORTANT_CVESEVERITYLEVEL + MODERATE_CVESEVERITYLEVEL + UNKNOWNFUTUREVALUE_CVESEVERITYLEVEL +) + +func (i CveSeverityLevel) String() string { + return []string{"critical", "important", "moderate", "unknownFutureValue"}[i] +} +func ParseCveSeverityLevel(v string) (any, error) { + result := CRITICAL_CVESEVERITYLEVEL + switch v { + case "critical": + result = CRITICAL_CVESEVERITYLEVEL + case "important": + result = IMPORTANT_CVESEVERITYLEVEL + case "moderate": + result = MODERATE_CVESEVERITYLEVEL + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CVESEVERITYLEVEL + default: + return 0, errors.New("Unknown CveSeverityLevel value: " + v) + } + return &result, nil +} +func SerializeCveSeverityLevel(values []CveSeverityLevel) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/windowsupdates/feature_update_catalog_entry.go b/models/windowsupdates/feature_update_catalog_entry.go index 1a87fb9556f..9fb73646f4e 100644 --- a/models/windowsupdates/feature_update_catalog_entry.go +++ b/models/windowsupdates/feature_update_catalog_entry.go @@ -21,9 +21,30 @@ func NewFeatureUpdateCatalogEntry()(*FeatureUpdateCatalogEntry) { func CreateFeatureUpdateCatalogEntryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewFeatureUpdateCatalogEntry(), nil } +// GetBuildNumber gets the buildNumber property value. The buildNumber property +func (m *FeatureUpdateCatalogEntry) GetBuildNumber()(*string) { + val, err := m.GetBackingStore().Get("buildNumber") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model func (m *FeatureUpdateCatalogEntry) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.SoftwareUpdateCatalogEntry.GetFieldDeserializers() + res["buildNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBuildNumber(val) + } + return nil + } res["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -53,6 +74,12 @@ func (m *FeatureUpdateCatalogEntry) Serialize(writer i878a80d2330e89d26896388a3f if err != nil { return err } + { + err = writer.WriteStringValue("buildNumber", m.GetBuildNumber()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("version", m.GetVersion()) if err != nil { @@ -61,6 +88,13 @@ func (m *FeatureUpdateCatalogEntry) Serialize(writer i878a80d2330e89d26896388a3f } return nil } +// SetBuildNumber sets the buildNumber property value. The buildNumber property +func (m *FeatureUpdateCatalogEntry) SetBuildNumber(value *string)() { + err := m.GetBackingStore().Set("buildNumber", value) + if err != nil { + panic(err) + } +} // SetVersion sets the version property value. The version of the feature update. Read-only. func (m *FeatureUpdateCatalogEntry) SetVersion(value *string)() { err := m.GetBackingStore().Set("version", value) @@ -72,6 +106,8 @@ func (m *FeatureUpdateCatalogEntry) SetVersion(value *string)() { type FeatureUpdateCatalogEntryable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable SoftwareUpdateCatalogEntryable + GetBuildNumber()(*string) GetVersion()(*string) + SetBuildNumber(value *string)() SetVersion(value *string)() } diff --git a/models/windowsupdates/knowledge_base_article.go b/models/windowsupdates/knowledge_base_article.go new file mode 100644 index 00000000000..c965198cdde --- /dev/null +++ b/models/windowsupdates/knowledge_base_article.go @@ -0,0 +1,76 @@ +package windowsupdates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// KnowledgeBaseArticle +type KnowledgeBaseArticle struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity +} +// NewKnowledgeBaseArticle instantiates a new knowledgeBaseArticle and sets the default values. +func NewKnowledgeBaseArticle()(*KnowledgeBaseArticle) { + m := &KnowledgeBaseArticle{ + Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), + } + return m +} +// CreateKnowledgeBaseArticleFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateKnowledgeBaseArticleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewKnowledgeBaseArticle(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *KnowledgeBaseArticle) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUrl(val) + } + return nil + } + return res +} +// GetUrl gets the url property value. The url property +func (m *KnowledgeBaseArticle) GetUrl()(*string) { + val, err := m.GetBackingStore().Get("url") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *KnowledgeBaseArticle) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("url", m.GetUrl()) + if err != nil { + return err + } + } + return nil +} +// SetUrl sets the url property value. The url property +func (m *KnowledgeBaseArticle) SetUrl(value *string)() { + err := m.GetBackingStore().Set("url", value) + if err != nil { + panic(err) + } +} +// KnowledgeBaseArticleable +type KnowledgeBaseArticleable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUrl()(*string) + SetUrl(value *string)() +} diff --git a/models/windowsupdates/product_revision.go b/models/windowsupdates/product_revision.go new file mode 100644 index 00000000000..e62985f8a4a --- /dev/null +++ b/models/windowsupdates/product_revision.go @@ -0,0 +1,257 @@ +package windowsupdates + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// ProductRevision +type ProductRevision struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity +} +// NewProductRevision instantiates a new productRevision and sets the default values. +func NewProductRevision()(*ProductRevision) { + m := &ProductRevision{ + Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), + } + return m +} +// CreateProductRevisionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateProductRevisionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewProductRevision(), nil +} +// GetDisplayName gets the displayName property value. The displayName property +func (m *ProductRevision) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ProductRevision) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["knowledgeBaseArticle"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateKnowledgeBaseArticleFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetKnowledgeBaseArticle(val.(KnowledgeBaseArticleable)) + } + return nil + } + res["osBuild"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateBuildVersionDetailsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOsBuild(val.(BuildVersionDetailsable)) + } + return nil + } + res["product"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProduct(val) + } + return nil + } + res["releaseDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetReleaseDateTime(val) + } + return nil + } + res["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetVersion(val) + } + return nil + } + return res +} +// GetKnowledgeBaseArticle gets the knowledgeBaseArticle property value. The knowledgeBaseArticle property +func (m *ProductRevision) GetKnowledgeBaseArticle()(KnowledgeBaseArticleable) { + val, err := m.GetBackingStore().Get("knowledgeBaseArticle") + if err != nil { + panic(err) + } + if val != nil { + return val.(KnowledgeBaseArticleable) + } + return nil +} +// GetOsBuild gets the osBuild property value. The osBuild property +func (m *ProductRevision) GetOsBuild()(BuildVersionDetailsable) { + val, err := m.GetBackingStore().Get("osBuild") + if err != nil { + panic(err) + } + if val != nil { + return val.(BuildVersionDetailsable) + } + return nil +} +// GetProduct gets the product property value. The product property +func (m *ProductRevision) GetProduct()(*string) { + val, err := m.GetBackingStore().Get("product") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetReleaseDateTime gets the releaseDateTime property value. The releaseDateTime property +func (m *ProductRevision) GetReleaseDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("releaseDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetVersion gets the version property value. The version property +func (m *ProductRevision) GetVersion()(*string) { + val, err := m.GetBackingStore().Get("version") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ProductRevision) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("knowledgeBaseArticle", m.GetKnowledgeBaseArticle()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("osBuild", m.GetOsBuild()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("product", m.GetProduct()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("releaseDateTime", m.GetReleaseDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("version", m.GetVersion()) + if err != nil { + return err + } + } + return nil +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *ProductRevision) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetKnowledgeBaseArticle sets the knowledgeBaseArticle property value. The knowledgeBaseArticle property +func (m *ProductRevision) SetKnowledgeBaseArticle(value KnowledgeBaseArticleable)() { + err := m.GetBackingStore().Set("knowledgeBaseArticle", value) + if err != nil { + panic(err) + } +} +// SetOsBuild sets the osBuild property value. The osBuild property +func (m *ProductRevision) SetOsBuild(value BuildVersionDetailsable)() { + err := m.GetBackingStore().Set("osBuild", value) + if err != nil { + panic(err) + } +} +// SetProduct sets the product property value. The product property +func (m *ProductRevision) SetProduct(value *string)() { + err := m.GetBackingStore().Set("product", value) + if err != nil { + panic(err) + } +} +// SetReleaseDateTime sets the releaseDateTime property value. The releaseDateTime property +func (m *ProductRevision) SetReleaseDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("releaseDateTime", value) + if err != nil { + panic(err) + } +} +// SetVersion sets the version property value. The version property +func (m *ProductRevision) SetVersion(value *string)() { + err := m.GetBackingStore().Set("version", value) + if err != nil { + panic(err) + } +} +// ProductRevisionable +type ProductRevisionable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDisplayName()(*string) + GetKnowledgeBaseArticle()(KnowledgeBaseArticleable) + GetOsBuild()(BuildVersionDetailsable) + GetProduct()(*string) + GetReleaseDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetVersion()(*string) + SetDisplayName(value *string)() + SetKnowledgeBaseArticle(value KnowledgeBaseArticleable)() + SetOsBuild(value BuildVersionDetailsable)() + SetProduct(value *string)() + SetReleaseDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetVersion(value *string)() +} diff --git a/models/windowsupdates/quality_update_cadence.go b/models/windowsupdates/quality_update_cadence.go new file mode 100644 index 00000000000..6fc31586224 --- /dev/null +++ b/models/windowsupdates/quality_update_cadence.go @@ -0,0 +1,37 @@ +package windowsupdates +import ( + "errors" +) +// +type QualityUpdateCadence int + +const ( + MONTHLY_QUALITYUPDATECADENCE QualityUpdateCadence = iota + OUTOFBAND_QUALITYUPDATECADENCE + UNKNOWNFUTUREVALUE_QUALITYUPDATECADENCE +) + +func (i QualityUpdateCadence) String() string { + return []string{"monthly", "outOfBand", "unknownFutureValue"}[i] +} +func ParseQualityUpdateCadence(v string) (any, error) { + result := MONTHLY_QUALITYUPDATECADENCE + switch v { + case "monthly": + result = MONTHLY_QUALITYUPDATECADENCE + case "outOfBand": + result = OUTOFBAND_QUALITYUPDATECADENCE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_QUALITYUPDATECADENCE + default: + return 0, errors.New("Unknown QualityUpdateCadence value: " + v) + } + return &result, nil +} +func SerializeQualityUpdateCadence(values []QualityUpdateCadence) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/windowsupdates/quality_update_catalog_entry.go b/models/windowsupdates/quality_update_catalog_entry.go index f31b33ada05..0c575f68727 100644 --- a/models/windowsupdates/quality_update_catalog_entry.go +++ b/models/windowsupdates/quality_update_catalog_entry.go @@ -21,9 +21,51 @@ func NewQualityUpdateCatalogEntry()(*QualityUpdateCatalogEntry) { func CreateQualityUpdateCatalogEntryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewQualityUpdateCatalogEntry(), nil } +// GetCatalogName gets the catalogName property value. The catalogName property +func (m *QualityUpdateCatalogEntry) GetCatalogName()(*string) { + val, err := m.GetBackingStore().Get("catalogName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetCveSeverityInformation gets the cveSeverityInformation property value. The cveSeverityInformation property +func (m *QualityUpdateCatalogEntry) GetCveSeverityInformation()(QualityUpdateCveSeverityInformationable) { + val, err := m.GetBackingStore().Get("cveSeverityInformation") + if err != nil { + panic(err) + } + if val != nil { + return val.(QualityUpdateCveSeverityInformationable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model func (m *QualityUpdateCatalogEntry) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.SoftwareUpdateCatalogEntry.GetFieldDeserializers() + res["catalogName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCatalogName(val) + } + return nil + } + res["cveSeverityInformation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateQualityUpdateCveSeverityInformationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCveSeverityInformation(val.(QualityUpdateCveSeverityInformationable)) + } + return nil + } res["isExpeditable"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -34,6 +76,32 @@ func (m *QualityUpdateCatalogEntry) GetFieldDeserializers()(map[string]func(i878 } return nil } + res["productRevisions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateProductRevisionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ProductRevisionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ProductRevisionable) + } + } + m.SetProductRevisions(res) + } + return nil + } + res["qualityUpdateCadence"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseQualityUpdateCadence) + if err != nil { + return err + } + if val != nil { + m.SetQualityUpdateCadence(val.(*QualityUpdateCadence)) + } + return nil + } res["qualityUpdateClassification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseQualityUpdateClassification) if err != nil { @@ -44,6 +112,16 @@ func (m *QualityUpdateCatalogEntry) GetFieldDeserializers()(map[string]func(i878 } return nil } + res["shortName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShortName(val) + } + return nil + } return res } // GetIsExpeditable gets the isExpeditable property value. Indicates whether the content can be deployed as an expedited quality update. Read-only. @@ -57,6 +135,28 @@ func (m *QualityUpdateCatalogEntry) GetIsExpeditable()(*bool) { } return nil } +// GetProductRevisions gets the productRevisions property value. The productRevisions property +func (m *QualityUpdateCatalogEntry) GetProductRevisions()([]ProductRevisionable) { + val, err := m.GetBackingStore().Get("productRevisions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ProductRevisionable) + } + return nil +} +// GetQualityUpdateCadence gets the qualityUpdateCadence property value. The qualityUpdateCadence property +func (m *QualityUpdateCatalogEntry) GetQualityUpdateCadence()(*QualityUpdateCadence) { + val, err := m.GetBackingStore().Get("qualityUpdateCadence") + if err != nil { + panic(err) + } + if val != nil { + return val.(*QualityUpdateCadence) + } + return nil +} // GetQualityUpdateClassification gets the qualityUpdateClassification property value. The qualityUpdateClassification property func (m *QualityUpdateCatalogEntry) GetQualityUpdateClassification()(*QualityUpdateClassification) { val, err := m.GetBackingStore().Get("qualityUpdateClassification") @@ -68,18 +168,60 @@ func (m *QualityUpdateCatalogEntry) GetQualityUpdateClassification()(*QualityUpd } return nil } +// GetShortName gets the shortName property value. The shortName property +func (m *QualityUpdateCatalogEntry) GetShortName()(*string) { + val, err := m.GetBackingStore().Get("shortName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // Serialize serializes information the current object func (m *QualityUpdateCatalogEntry) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.SoftwareUpdateCatalogEntry.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("catalogName", m.GetCatalogName()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("cveSeverityInformation", m.GetCveSeverityInformation()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("isExpeditable", m.GetIsExpeditable()) if err != nil { return err } } + if m.GetProductRevisions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetProductRevisions())) + for i, v := range m.GetProductRevisions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("productRevisions", cast) + if err != nil { + return err + } + } + if m.GetQualityUpdateCadence() != nil { + cast := (*m.GetQualityUpdateCadence()).String() + err = writer.WriteStringValue("qualityUpdateCadence", &cast) + if err != nil { + return err + } + } if m.GetQualityUpdateClassification() != nil { cast := (*m.GetQualityUpdateClassification()).String() err = writer.WriteStringValue("qualityUpdateClassification", &cast) @@ -87,8 +229,28 @@ func (m *QualityUpdateCatalogEntry) Serialize(writer i878a80d2330e89d26896388a3f return err } } + { + err = writer.WriteStringValue("shortName", m.GetShortName()) + if err != nil { + return err + } + } return nil } +// SetCatalogName sets the catalogName property value. The catalogName property +func (m *QualityUpdateCatalogEntry) SetCatalogName(value *string)() { + err := m.GetBackingStore().Set("catalogName", value) + if err != nil { + panic(err) + } +} +// SetCveSeverityInformation sets the cveSeverityInformation property value. The cveSeverityInformation property +func (m *QualityUpdateCatalogEntry) SetCveSeverityInformation(value QualityUpdateCveSeverityInformationable)() { + err := m.GetBackingStore().Set("cveSeverityInformation", value) + if err != nil { + panic(err) + } +} // SetIsExpeditable sets the isExpeditable property value. Indicates whether the content can be deployed as an expedited quality update. Read-only. func (m *QualityUpdateCatalogEntry) SetIsExpeditable(value *bool)() { err := m.GetBackingStore().Set("isExpeditable", value) @@ -96,6 +258,20 @@ func (m *QualityUpdateCatalogEntry) SetIsExpeditable(value *bool)() { panic(err) } } +// SetProductRevisions sets the productRevisions property value. The productRevisions property +func (m *QualityUpdateCatalogEntry) SetProductRevisions(value []ProductRevisionable)() { + err := m.GetBackingStore().Set("productRevisions", value) + if err != nil { + panic(err) + } +} +// SetQualityUpdateCadence sets the qualityUpdateCadence property value. The qualityUpdateCadence property +func (m *QualityUpdateCatalogEntry) SetQualityUpdateCadence(value *QualityUpdateCadence)() { + err := m.GetBackingStore().Set("qualityUpdateCadence", value) + if err != nil { + panic(err) + } +} // SetQualityUpdateClassification sets the qualityUpdateClassification property value. The qualityUpdateClassification property func (m *QualityUpdateCatalogEntry) SetQualityUpdateClassification(value *QualityUpdateClassification)() { err := m.GetBackingStore().Set("qualityUpdateClassification", value) @@ -103,12 +279,29 @@ func (m *QualityUpdateCatalogEntry) SetQualityUpdateClassification(value *Qualit panic(err) } } +// SetShortName sets the shortName property value. The shortName property +func (m *QualityUpdateCatalogEntry) SetShortName(value *string)() { + err := m.GetBackingStore().Set("shortName", value) + if err != nil { + panic(err) + } +} // QualityUpdateCatalogEntryable type QualityUpdateCatalogEntryable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable SoftwareUpdateCatalogEntryable + GetCatalogName()(*string) + GetCveSeverityInformation()(QualityUpdateCveSeverityInformationable) GetIsExpeditable()(*bool) + GetProductRevisions()([]ProductRevisionable) + GetQualityUpdateCadence()(*QualityUpdateCadence) GetQualityUpdateClassification()(*QualityUpdateClassification) + GetShortName()(*string) + SetCatalogName(value *string)() + SetCveSeverityInformation(value QualityUpdateCveSeverityInformationable)() SetIsExpeditable(value *bool)() + SetProductRevisions(value []ProductRevisionable)() + SetQualityUpdateCadence(value *QualityUpdateCadence)() SetQualityUpdateClassification(value *QualityUpdateClassification)() + SetShortName(value *string)() } diff --git a/models/windowsupdates/quality_update_cve_severity_information.go b/models/windowsupdates/quality_update_cve_severity_information.go new file mode 100644 index 00000000000..5a72684f1df --- /dev/null +++ b/models/windowsupdates/quality_update_cve_severity_information.go @@ -0,0 +1,231 @@ +package windowsupdates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// QualityUpdateCveSeverityInformation +type QualityUpdateCveSeverityInformation struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewQualityUpdateCveSeverityInformation instantiates a new qualityUpdateCveSeverityInformation and sets the default values. +func NewQualityUpdateCveSeverityInformation()(*QualityUpdateCveSeverityInformation) { + m := &QualityUpdateCveSeverityInformation{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateQualityUpdateCveSeverityInformationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateQualityUpdateCveSeverityInformationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewQualityUpdateCveSeverityInformation(), 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 *QualityUpdateCveSeverityInformation) 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 *QualityUpdateCveSeverityInformation) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetExploitedCves gets the exploitedCves property value. The exploitedCves property +func (m *QualityUpdateCveSeverityInformation) GetExploitedCves()([]CveInformationable) { + val, err := m.GetBackingStore().Get("exploitedCves") + if err != nil { + panic(err) + } + if val != nil { + return val.([]CveInformationable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *QualityUpdateCveSeverityInformation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["exploitedCves"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateCveInformationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]CveInformationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(CveInformationable) + } + } + m.SetExploitedCves(res) + } + return nil + } + res["maxBaseScore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetFloat64Value() + if err != nil { + return err + } + if val != nil { + m.SetMaxBaseScore(val) + } + return nil + } + res["maxSeverity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCveSeverityLevel) + if err != nil { + return err + } + if val != nil { + m.SetMaxSeverity(val.(*CveSeverityLevel)) + } + 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 +} +// GetMaxBaseScore gets the maxBaseScore property value. The maxBaseScore property +func (m *QualityUpdateCveSeverityInformation) GetMaxBaseScore()(*float64) { + val, err := m.GetBackingStore().Get("maxBaseScore") + if err != nil { + panic(err) + } + if val != nil { + return val.(*float64) + } + return nil +} +// GetMaxSeverity gets the maxSeverity property value. The maxSeverity property +func (m *QualityUpdateCveSeverityInformation) GetMaxSeverity()(*CveSeverityLevel) { + val, err := m.GetBackingStore().Get("maxSeverity") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CveSeverityLevel) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *QualityUpdateCveSeverityInformation) 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 *QualityUpdateCveSeverityInformation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetExploitedCves() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetExploitedCves())) + for i, v := range m.GetExploitedCves() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("exploitedCves", cast) + if err != nil { + return err + } + } + { + err := writer.WriteFloat64Value("maxBaseScore", m.GetMaxBaseScore()) + if err != nil { + return err + } + } + if m.GetMaxSeverity() != nil { + cast := (*m.GetMaxSeverity()).String() + err := writer.WriteStringValue("maxSeverity", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *QualityUpdateCveSeverityInformation) 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 *QualityUpdateCveSeverityInformation) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetExploitedCves sets the exploitedCves property value. The exploitedCves property +func (m *QualityUpdateCveSeverityInformation) SetExploitedCves(value []CveInformationable)() { + err := m.GetBackingStore().Set("exploitedCves", value) + if err != nil { + panic(err) + } +} +// SetMaxBaseScore sets the maxBaseScore property value. The maxBaseScore property +func (m *QualityUpdateCveSeverityInformation) SetMaxBaseScore(value *float64)() { + err := m.GetBackingStore().Set("maxBaseScore", value) + if err != nil { + panic(err) + } +} +// SetMaxSeverity sets the maxSeverity property value. The maxSeverity property +func (m *QualityUpdateCveSeverityInformation) SetMaxSeverity(value *CveSeverityLevel)() { + err := m.GetBackingStore().Set("maxSeverity", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *QualityUpdateCveSeverityInformation) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// QualityUpdateCveSeverityInformationable +type QualityUpdateCveSeverityInformationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetExploitedCves()([]CveInformationable) + GetMaxBaseScore()(*float64) + GetMaxSeverity()(*CveSeverityLevel) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetExploitedCves(value []CveInformationable)() + SetMaxBaseScore(value *float64)() + SetMaxSeverity(value *CveSeverityLevel)() + SetOdataType(value *string)() +} diff --git a/models/workbook_comment.go b/models/workbook_comment.go index c448e0d41cc..8a58c4fa6c6 100644 --- a/models/workbook_comment.go +++ b/models/workbook_comment.go @@ -80,6 +80,16 @@ func (m *WorkbookComment) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return nil } + res["task"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkbookDocumentTaskFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTask(val.(WorkbookDocumentTaskable)) + } + return nil + } return res } // GetReplies gets the replies property value. The replies property @@ -93,6 +103,17 @@ func (m *WorkbookComment) GetReplies()([]WorkbookCommentReplyable) { } return nil } +// GetTask gets the task property value. The task property +func (m *WorkbookComment) GetTask()(WorkbookDocumentTaskable) { + val, err := m.GetBackingStore().Get("task") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkbookDocumentTaskable) + } + return nil +} // Serialize serializes information the current object func (m *WorkbookComment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -123,6 +144,12 @@ func (m *WorkbookComment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return err } } + { + err = writer.WriteObjectValue("task", m.GetTask()) + if err != nil { + return err + } + } return nil } // SetContent sets the content property value. The content of the comment. @@ -146,6 +173,13 @@ func (m *WorkbookComment) SetReplies(value []WorkbookCommentReplyable)() { panic(err) } } +// SetTask sets the task property value. The task property +func (m *WorkbookComment) SetTask(value WorkbookDocumentTaskable)() { + err := m.GetBackingStore().Set("task", value) + if err != nil { + panic(err) + } +} // WorkbookCommentable type WorkbookCommentable interface { Entityable @@ -153,7 +187,9 @@ type WorkbookCommentable interface { GetContent()(*string) GetContentType()(*string) GetReplies()([]WorkbookCommentReplyable) + GetTask()(WorkbookDocumentTaskable) SetContent(value *string)() SetContentType(value *string)() SetReplies(value []WorkbookCommentReplyable)() + SetTask(value WorkbookDocumentTaskable)() } diff --git a/models/workbook_comment_reply.go b/models/workbook_comment_reply.go index cc5aedb9e23..6e719f21519 100644 --- a/models/workbook_comment_reply.go +++ b/models/workbook_comment_reply.go @@ -64,8 +64,29 @@ func (m *WorkbookCommentReply) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["task"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkbookDocumentTaskFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTask(val.(WorkbookDocumentTaskable)) + } + return nil + } return res } +// GetTask gets the task property value. The task property +func (m *WorkbookCommentReply) GetTask()(WorkbookDocumentTaskable) { + val, err := m.GetBackingStore().Get("task") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkbookDocumentTaskable) + } + return nil +} // Serialize serializes information the current object func (m *WorkbookCommentReply) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -84,6 +105,12 @@ func (m *WorkbookCommentReply) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteObjectValue("task", m.GetTask()) + if err != nil { + return err + } + } return nil } // SetContent sets the content property value. The content of replied comment. @@ -100,12 +127,21 @@ func (m *WorkbookCommentReply) SetContentType(value *string)() { panic(err) } } +// SetTask sets the task property value. The task property +func (m *WorkbookCommentReply) SetTask(value WorkbookDocumentTaskable)() { + err := m.GetBackingStore().Set("task", value) + if err != nil { + panic(err) + } +} // WorkbookCommentReplyable type WorkbookCommentReplyable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetContent()(*string) GetContentType()(*string) + GetTask()(WorkbookDocumentTaskable) SetContent(value *string)() SetContentType(value *string)() + SetTask(value WorkbookDocumentTaskable)() } diff --git a/models/workbook_document_task.go b/models/workbook_document_task.go new file mode 100644 index 00000000000..ec3cb77c27f --- /dev/null +++ b/models/workbook_document_task.go @@ -0,0 +1,460 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// WorkbookDocumentTask +type WorkbookDocumentTask struct { + Entity +} +// NewWorkbookDocumentTask instantiates a new workbookDocumentTask and sets the default values. +func NewWorkbookDocumentTask()(*WorkbookDocumentTask) { + m := &WorkbookDocumentTask{ + Entity: *NewEntity(), + } + return m +} +// CreateWorkbookDocumentTaskFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateWorkbookDocumentTaskFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkbookDocumentTask(), nil +} +// GetAssignees gets the assignees property value. The assignees property +func (m *WorkbookDocumentTask) GetAssignees()([]WorkbookEmailIdentityable) { + val, err := m.GetBackingStore().Get("assignees") + if err != nil { + panic(err) + } + if val != nil { + return val.([]WorkbookEmailIdentityable) + } + return nil +} +// GetChanges gets the changes property value. The changes property +func (m *WorkbookDocumentTask) GetChanges()([]WorkbookDocumentTaskChangeable) { + val, err := m.GetBackingStore().Get("changes") + if err != nil { + panic(err) + } + if val != nil { + return val.([]WorkbookDocumentTaskChangeable) + } + return nil +} +// GetComment gets the comment property value. The comment property +func (m *WorkbookDocumentTask) GetComment()(WorkbookCommentable) { + val, err := m.GetBackingStore().Get("comment") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkbookCommentable) + } + return nil +} +// GetCompletedBy gets the completedBy property value. The completedBy property +func (m *WorkbookDocumentTask) GetCompletedBy()(WorkbookEmailIdentityable) { + val, err := m.GetBackingStore().Get("completedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkbookEmailIdentityable) + } + return nil +} +// GetCompletedDateTime gets the completedDateTime property value. The completedDateTime property +func (m *WorkbookDocumentTask) GetCompletedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("completedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetCreatedBy gets the createdBy property value. The createdBy property +func (m *WorkbookDocumentTask) GetCreatedBy()(WorkbookEmailIdentityable) { + val, err := m.GetBackingStore().Get("createdBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkbookEmailIdentityable) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +func (m *WorkbookDocumentTask) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *WorkbookDocumentTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["assignees"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateWorkbookEmailIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]WorkbookEmailIdentityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(WorkbookEmailIdentityable) + } + } + m.SetAssignees(res) + } + return nil + } + res["changes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateWorkbookDocumentTaskChangeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]WorkbookDocumentTaskChangeable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(WorkbookDocumentTaskChangeable) + } + } + m.SetChanges(res) + } + return nil + } + res["comment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkbookCommentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetComment(val.(WorkbookCommentable)) + } + return nil + } + res["completedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkbookEmailIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCompletedBy(val.(WorkbookEmailIdentityable)) + } + return nil + } + res["completedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCompletedDateTime(val) + } + return nil + } + res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkbookEmailIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCreatedBy(val.(WorkbookEmailIdentityable)) + } + return nil + } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } + res["percentComplete"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPercentComplete(val) + } + return nil + } + res["priority"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPriority(val) + } + return nil + } + res["startAndDueDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkbookDocumentTaskScheduleFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetStartAndDueDateTime(val.(WorkbookDocumentTaskScheduleable)) + } + return nil + } + res["title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTitle(val) + } + return nil + } + return res +} +// GetPercentComplete gets the percentComplete property value. The percentComplete property +func (m *WorkbookDocumentTask) GetPercentComplete()(*int32) { + val, err := m.GetBackingStore().Get("percentComplete") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetPriority gets the priority property value. The priority property +func (m *WorkbookDocumentTask) GetPriority()(*int32) { + val, err := m.GetBackingStore().Get("priority") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetStartAndDueDateTime gets the startAndDueDateTime property value. The startAndDueDateTime property +func (m *WorkbookDocumentTask) GetStartAndDueDateTime()(WorkbookDocumentTaskScheduleable) { + val, err := m.GetBackingStore().Get("startAndDueDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkbookDocumentTaskScheduleable) + } + return nil +} +// GetTitle gets the title property value. The title property +func (m *WorkbookDocumentTask) GetTitle()(*string) { + val, err := m.GetBackingStore().Get("title") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *WorkbookDocumentTask) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + if m.GetAssignees() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAssignees())) + for i, v := range m.GetAssignees() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("assignees", cast) + if err != nil { + return err + } + } + if m.GetChanges() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetChanges())) + for i, v := range m.GetChanges() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("changes", cast) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("comment", m.GetComment()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("completedBy", m.GetCompletedBy()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("completedDateTime", m.GetCompletedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("createdBy", m.GetCreatedBy()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("percentComplete", m.GetPercentComplete()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("priority", m.GetPriority()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("startAndDueDateTime", m.GetStartAndDueDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("title", m.GetTitle()) + if err != nil { + return err + } + } + return nil +} +// SetAssignees sets the assignees property value. The assignees property +func (m *WorkbookDocumentTask) SetAssignees(value []WorkbookEmailIdentityable)() { + err := m.GetBackingStore().Set("assignees", value) + if err != nil { + panic(err) + } +} +// SetChanges sets the changes property value. The changes property +func (m *WorkbookDocumentTask) SetChanges(value []WorkbookDocumentTaskChangeable)() { + err := m.GetBackingStore().Set("changes", value) + if err != nil { + panic(err) + } +} +// SetComment sets the comment property value. The comment property +func (m *WorkbookDocumentTask) SetComment(value WorkbookCommentable)() { + err := m.GetBackingStore().Set("comment", value) + if err != nil { + panic(err) + } +} +// SetCompletedBy sets the completedBy property value. The completedBy property +func (m *WorkbookDocumentTask) SetCompletedBy(value WorkbookEmailIdentityable)() { + err := m.GetBackingStore().Set("completedBy", value) + if err != nil { + panic(err) + } +} +// SetCompletedDateTime sets the completedDateTime property value. The completedDateTime property +func (m *WorkbookDocumentTask) SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("completedDateTime", value) + if err != nil { + panic(err) + } +} +// SetCreatedBy sets the createdBy property value. The createdBy property +func (m *WorkbookDocumentTask) SetCreatedBy(value WorkbookEmailIdentityable)() { + err := m.GetBackingStore().Set("createdBy", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *WorkbookDocumentTask) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetPercentComplete sets the percentComplete property value. The percentComplete property +func (m *WorkbookDocumentTask) SetPercentComplete(value *int32)() { + err := m.GetBackingStore().Set("percentComplete", value) + if err != nil { + panic(err) + } +} +// SetPriority sets the priority property value. The priority property +func (m *WorkbookDocumentTask) SetPriority(value *int32)() { + err := m.GetBackingStore().Set("priority", value) + if err != nil { + panic(err) + } +} +// SetStartAndDueDateTime sets the startAndDueDateTime property value. The startAndDueDateTime property +func (m *WorkbookDocumentTask) SetStartAndDueDateTime(value WorkbookDocumentTaskScheduleable)() { + err := m.GetBackingStore().Set("startAndDueDateTime", value) + if err != nil { + panic(err) + } +} +// SetTitle sets the title property value. The title property +func (m *WorkbookDocumentTask) SetTitle(value *string)() { + err := m.GetBackingStore().Set("title", value) + if err != nil { + panic(err) + } +} +// WorkbookDocumentTaskable +type WorkbookDocumentTaskable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssignees()([]WorkbookEmailIdentityable) + GetChanges()([]WorkbookDocumentTaskChangeable) + GetComment()(WorkbookCommentable) + GetCompletedBy()(WorkbookEmailIdentityable) + GetCompletedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCreatedBy()(WorkbookEmailIdentityable) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetPercentComplete()(*int32) + GetPriority()(*int32) + GetStartAndDueDateTime()(WorkbookDocumentTaskScheduleable) + GetTitle()(*string) + SetAssignees(value []WorkbookEmailIdentityable)() + SetChanges(value []WorkbookDocumentTaskChangeable)() + SetComment(value WorkbookCommentable)() + SetCompletedBy(value WorkbookEmailIdentityable)() + SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCreatedBy(value WorkbookEmailIdentityable)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetPercentComplete(value *int32)() + SetPriority(value *int32)() + SetStartAndDueDateTime(value WorkbookDocumentTaskScheduleable)() + SetTitle(value *string)() +} diff --git a/models/workbook_document_task_change.go b/models/workbook_document_task_change.go new file mode 100644 index 00000000000..952a5d889ee --- /dev/null +++ b/models/workbook_document_task_change.go @@ -0,0 +1,436 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// WorkbookDocumentTaskChange +type WorkbookDocumentTaskChange struct { + Entity +} +// NewWorkbookDocumentTaskChange instantiates a new workbookDocumentTaskChange and sets the default values. +func NewWorkbookDocumentTaskChange()(*WorkbookDocumentTaskChange) { + m := &WorkbookDocumentTaskChange{ + Entity: *NewEntity(), + } + return m +} +// CreateWorkbookDocumentTaskChangeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateWorkbookDocumentTaskChangeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkbookDocumentTaskChange(), nil +} +// GetAssignee gets the assignee property value. The assignee property +func (m *WorkbookDocumentTaskChange) GetAssignee()(WorkbookEmailIdentityable) { + val, err := m.GetBackingStore().Get("assignee") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkbookEmailIdentityable) + } + return nil +} +// GetChangedBy gets the changedBy property value. The changedBy property +func (m *WorkbookDocumentTaskChange) GetChangedBy()(WorkbookEmailIdentityable) { + val, err := m.GetBackingStore().Get("changedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkbookEmailIdentityable) + } + return nil +} +// GetCommentId gets the commentId property value. The commentId property +func (m *WorkbookDocumentTaskChange) GetCommentId()(*string) { + val, err := m.GetBackingStore().Get("commentId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +func (m *WorkbookDocumentTaskChange) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetDueDateTime gets the dueDateTime property value. The dueDateTime property +func (m *WorkbookDocumentTaskChange) GetDueDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("dueDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *WorkbookDocumentTaskChange) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["assignee"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkbookEmailIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAssignee(val.(WorkbookEmailIdentityable)) + } + return nil + } + res["changedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkbookEmailIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetChangedBy(val.(WorkbookEmailIdentityable)) + } + return nil + } + res["commentId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCommentId(val) + } + return nil + } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } + res["dueDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetDueDateTime(val) + } + return nil + } + res["percentComplete"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPercentComplete(val) + } + return nil + } + res["priority"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPriority(val) + } + return nil + } + res["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStartDateTime(val) + } + return nil + } + res["title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTitle(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["undoChangeId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUndoChangeId(val) + } + return nil + } + return res +} +// GetPercentComplete gets the percentComplete property value. The percentComplete property +func (m *WorkbookDocumentTaskChange) GetPercentComplete()(*int32) { + val, err := m.GetBackingStore().Get("percentComplete") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetPriority gets the priority property value. The priority property +func (m *WorkbookDocumentTaskChange) GetPriority()(*int32) { + val, err := m.GetBackingStore().Get("priority") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetStartDateTime gets the startDateTime property value. The startDateTime property +func (m *WorkbookDocumentTaskChange) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("startDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetTitle gets the title property value. The title property +func (m *WorkbookDocumentTaskChange) GetTitle()(*string) { + val, err := m.GetBackingStore().Get("title") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTypeEscaped gets the type property value. The type property +func (m *WorkbookDocumentTaskChange) GetTypeEscaped()(*string) { + val, err := m.GetBackingStore().Get("typeEscaped") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUndoChangeId gets the undoChangeId property value. The undoChangeId property +func (m *WorkbookDocumentTaskChange) GetUndoChangeId()(*string) { + val, err := m.GetBackingStore().Get("undoChangeId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *WorkbookDocumentTaskChange) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("assignee", m.GetAssignee()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("changedBy", m.GetChangedBy()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("commentId", m.GetCommentId()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("dueDateTime", m.GetDueDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("percentComplete", m.GetPercentComplete()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("priority", m.GetPriority()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("startDateTime", m.GetStartDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("title", m.GetTitle()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("undoChangeId", m.GetUndoChangeId()) + if err != nil { + return err + } + } + return nil +} +// SetAssignee sets the assignee property value. The assignee property +func (m *WorkbookDocumentTaskChange) SetAssignee(value WorkbookEmailIdentityable)() { + err := m.GetBackingStore().Set("assignee", value) + if err != nil { + panic(err) + } +} +// SetChangedBy sets the changedBy property value. The changedBy property +func (m *WorkbookDocumentTaskChange) SetChangedBy(value WorkbookEmailIdentityable)() { + err := m.GetBackingStore().Set("changedBy", value) + if err != nil { + panic(err) + } +} +// SetCommentId sets the commentId property value. The commentId property +func (m *WorkbookDocumentTaskChange) SetCommentId(value *string)() { + err := m.GetBackingStore().Set("commentId", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *WorkbookDocumentTaskChange) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetDueDateTime sets the dueDateTime property value. The dueDateTime property +func (m *WorkbookDocumentTaskChange) SetDueDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("dueDateTime", value) + if err != nil { + panic(err) + } +} +// SetPercentComplete sets the percentComplete property value. The percentComplete property +func (m *WorkbookDocumentTaskChange) SetPercentComplete(value *int32)() { + err := m.GetBackingStore().Set("percentComplete", value) + if err != nil { + panic(err) + } +} +// SetPriority sets the priority property value. The priority property +func (m *WorkbookDocumentTaskChange) SetPriority(value *int32)() { + err := m.GetBackingStore().Set("priority", value) + if err != nil { + panic(err) + } +} +// SetStartDateTime sets the startDateTime property value. The startDateTime property +func (m *WorkbookDocumentTaskChange) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("startDateTime", value) + if err != nil { + panic(err) + } +} +// SetTitle sets the title property value. The title property +func (m *WorkbookDocumentTaskChange) SetTitle(value *string)() { + err := m.GetBackingStore().Set("title", value) + if err != nil { + panic(err) + } +} +// SetTypeEscaped sets the type property value. The type property +func (m *WorkbookDocumentTaskChange) SetTypeEscaped(value *string)() { + err := m.GetBackingStore().Set("typeEscaped", value) + if err != nil { + panic(err) + } +} +// SetUndoChangeId sets the undoChangeId property value. The undoChangeId property +func (m *WorkbookDocumentTaskChange) SetUndoChangeId(value *string)() { + err := m.GetBackingStore().Set("undoChangeId", value) + if err != nil { + panic(err) + } +} +// WorkbookDocumentTaskChangeable +type WorkbookDocumentTaskChangeable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssignee()(WorkbookEmailIdentityable) + GetChangedBy()(WorkbookEmailIdentityable) + GetCommentId()(*string) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetDueDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetPercentComplete()(*int32) + GetPriority()(*int32) + GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetTitle()(*string) + GetTypeEscaped()(*string) + GetUndoChangeId()(*string) + SetAssignee(value WorkbookEmailIdentityable)() + SetChangedBy(value WorkbookEmailIdentityable)() + SetCommentId(value *string)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetDueDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetPercentComplete(value *int32)() + SetPriority(value *int32)() + SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetTitle(value *string)() + SetTypeEscaped(value *string)() + SetUndoChangeId(value *string)() +} diff --git a/models/workbook_document_task_change_collection_response.go b/models/workbook_document_task_change_collection_response.go new file mode 100644 index 00000000000..85843a3db75 --- /dev/null +++ b/models/workbook_document_task_change_collection_response.go @@ -0,0 +1,87 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// WorkbookDocumentTaskChangeCollectionResponse +type WorkbookDocumentTaskChangeCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewWorkbookDocumentTaskChangeCollectionResponse instantiates a new workbookDocumentTaskChangeCollectionResponse and sets the default values. +func NewWorkbookDocumentTaskChangeCollectionResponse()(*WorkbookDocumentTaskChangeCollectionResponse) { + m := &WorkbookDocumentTaskChangeCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateWorkbookDocumentTaskChangeCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateWorkbookDocumentTaskChangeCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkbookDocumentTaskChangeCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *WorkbookDocumentTaskChangeCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateWorkbookDocumentTaskChangeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]WorkbookDocumentTaskChangeable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(WorkbookDocumentTaskChangeable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *WorkbookDocumentTaskChangeCollectionResponse) GetValue()([]WorkbookDocumentTaskChangeable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]WorkbookDocumentTaskChangeable) + } + return nil +} +// Serialize serializes information the current object +func (m *WorkbookDocumentTaskChangeCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *WorkbookDocumentTaskChangeCollectionResponse) SetValue(value []WorkbookDocumentTaskChangeable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// WorkbookDocumentTaskChangeCollectionResponseable +type WorkbookDocumentTaskChangeCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]WorkbookDocumentTaskChangeable) + SetValue(value []WorkbookDocumentTaskChangeable)() +} diff --git a/models/workbook_document_task_collection_response.go b/models/workbook_document_task_collection_response.go new file mode 100644 index 00000000000..47a7f9d8a83 --- /dev/null +++ b/models/workbook_document_task_collection_response.go @@ -0,0 +1,87 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// WorkbookDocumentTaskCollectionResponse +type WorkbookDocumentTaskCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewWorkbookDocumentTaskCollectionResponse instantiates a new workbookDocumentTaskCollectionResponse and sets the default values. +func NewWorkbookDocumentTaskCollectionResponse()(*WorkbookDocumentTaskCollectionResponse) { + m := &WorkbookDocumentTaskCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateWorkbookDocumentTaskCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateWorkbookDocumentTaskCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkbookDocumentTaskCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *WorkbookDocumentTaskCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateWorkbookDocumentTaskFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]WorkbookDocumentTaskable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(WorkbookDocumentTaskable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *WorkbookDocumentTaskCollectionResponse) GetValue()([]WorkbookDocumentTaskable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]WorkbookDocumentTaskable) + } + return nil +} +// Serialize serializes information the current object +func (m *WorkbookDocumentTaskCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *WorkbookDocumentTaskCollectionResponse) SetValue(value []WorkbookDocumentTaskable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// WorkbookDocumentTaskCollectionResponseable +type WorkbookDocumentTaskCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]WorkbookDocumentTaskable) + SetValue(value []WorkbookDocumentTaskable)() +} diff --git a/models/workbook_document_task_schedule.go b/models/workbook_document_task_schedule.go new file mode 100644 index 00000000000..fb838e9434d --- /dev/null +++ b/models/workbook_document_task_schedule.go @@ -0,0 +1,183 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// WorkbookDocumentTaskSchedule +type WorkbookDocumentTaskSchedule struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewWorkbookDocumentTaskSchedule instantiates a new workbookDocumentTaskSchedule and sets the default values. +func NewWorkbookDocumentTaskSchedule()(*WorkbookDocumentTaskSchedule) { + m := &WorkbookDocumentTaskSchedule{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateWorkbookDocumentTaskScheduleFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateWorkbookDocumentTaskScheduleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkbookDocumentTaskSchedule(), 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 *WorkbookDocumentTaskSchedule) 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 *WorkbookDocumentTaskSchedule) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDueDateTime gets the dueDateTime property value. The dueDateTime property +func (m *WorkbookDocumentTaskSchedule) GetDueDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("dueDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *WorkbookDocumentTaskSchedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["dueDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetDueDateTime(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["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStartDateTime(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WorkbookDocumentTaskSchedule) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetStartDateTime gets the startDateTime property value. The startDateTime property +func (m *WorkbookDocumentTaskSchedule) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("startDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// Serialize serializes information the current object +func (m *WorkbookDocumentTaskSchedule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("dueDateTime", m.GetDueDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("startDateTime", m.GetStartDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *WorkbookDocumentTaskSchedule) 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 *WorkbookDocumentTaskSchedule) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDueDateTime sets the dueDateTime property value. The dueDateTime property +func (m *WorkbookDocumentTaskSchedule) SetDueDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("dueDateTime", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WorkbookDocumentTaskSchedule) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetStartDateTime sets the startDateTime property value. The startDateTime property +func (m *WorkbookDocumentTaskSchedule) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("startDateTime", value) + if err != nil { + panic(err) + } +} +// WorkbookDocumentTaskScheduleable +type WorkbookDocumentTaskScheduleable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDueDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) + GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDueDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() + SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/models/virtual_appointment_user.go b/models/workbook_email_identity.go similarity index 57% rename from models/virtual_appointment_user.go rename to models/workbook_email_identity.go index 948b8d69dd6..cd12aa9d1f7 100644 --- a/models/virtual_appointment_user.go +++ b/models/workbook_email_identity.go @@ -5,25 +5,25 @@ import ( ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) -// VirtualAppointmentUser -type VirtualAppointmentUser struct { +// WorkbookEmailIdentity +type WorkbookEmailIdentity struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewVirtualAppointmentUser instantiates a new virtualAppointmentUser and sets the default values. -func NewVirtualAppointmentUser()(*VirtualAppointmentUser) { - m := &VirtualAppointmentUser{ +// NewWorkbookEmailIdentity instantiates a new workbookEmailIdentity and sets the default values. +func NewWorkbookEmailIdentity()(*WorkbookEmailIdentity) { + m := &WorkbookEmailIdentity{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) return m } -// CreateVirtualAppointmentUserFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateVirtualAppointmentUserFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewVirtualAppointmentUser(), nil +// CreateWorkbookEmailIdentityFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateWorkbookEmailIdentityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkbookEmailIdentity(), 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 *VirtualAppointmentUser) GetAdditionalData()(map[string]any) { +func (m *WorkbookEmailIdentity) GetAdditionalData()(map[string]any) { val , err := m.backingStore.Get("additionalData") if err != nil { panic(err) @@ -35,11 +35,11 @@ func (m *VirtualAppointmentUser) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetBackingStore gets the backingStore property value. Stores model information. -func (m *VirtualAppointmentUser) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { +func (m *WorkbookEmailIdentity) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDisplayName gets the displayName property value. The display name of the user who participates in a virtual appointment. Optional. -func (m *VirtualAppointmentUser) GetDisplayName()(*string) { +// GetDisplayName gets the displayName property value. The displayName property +func (m *WorkbookEmailIdentity) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { panic(err) @@ -49,9 +49,9 @@ func (m *VirtualAppointmentUser) GetDisplayName()(*string) { } return nil } -// GetEmailAddress gets the emailAddress property value. The email address of the user who participates in a virtual appointment. Optional. -func (m *VirtualAppointmentUser) GetEmailAddress()(*string) { - val, err := m.GetBackingStore().Get("emailAddress") +// GetEmail gets the email property value. The email property +func (m *WorkbookEmailIdentity) GetEmail()(*string) { + val, err := m.GetBackingStore().Get("email") if err != nil { panic(err) } @@ -61,7 +61,7 @@ func (m *VirtualAppointmentUser) GetEmailAddress()(*string) { return nil } // GetFieldDeserializers the deserialization information for the current model -func (m *VirtualAppointmentUser) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *WorkbookEmailIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() @@ -73,41 +73,41 @@ func (m *VirtualAppointmentUser) GetFieldDeserializers()(map[string]func(i878a80 } return nil } - res["emailAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res["email"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { - m.SetEmailAddress(val) + m.SetEmail(val) } return nil } - res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { - m.SetOdataType(val) + m.SetId(val) } return nil } - res["smsCapablePhoneNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { - m.SetSmsCapablePhoneNumber(val) + m.SetOdataType(val) } return nil } return res } -// GetOdataType gets the @odata.type property value. The OdataType property -func (m *VirtualAppointmentUser) GetOdataType()(*string) { - val, err := m.GetBackingStore().Get("odataType") +// GetId gets the id property value. The id property +func (m *WorkbookEmailIdentity) GetId()(*string) { + val, err := m.GetBackingStore().Get("id") if err != nil { panic(err) } @@ -116,9 +116,9 @@ func (m *VirtualAppointmentUser) GetOdataType()(*string) { } return nil } -// GetSmsCapablePhoneNumber gets the smsCapablePhoneNumber property value. The phone number for sending SMS texts for the user who participates in a virtual appointment. Optional. -func (m *VirtualAppointmentUser) GetSmsCapablePhoneNumber()(*string) { - val, err := m.GetBackingStore().Get("smsCapablePhoneNumber") +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WorkbookEmailIdentity) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") if err != nil { panic(err) } @@ -128,7 +128,7 @@ func (m *VirtualAppointmentUser) GetSmsCapablePhoneNumber()(*string) { return nil } // Serialize serializes information the current object -func (m *VirtualAppointmentUser) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *WorkbookEmailIdentity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { err := writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { @@ -136,19 +136,19 @@ func (m *VirtualAppointmentUser) Serialize(writer i878a80d2330e89d26896388a3f487 } } { - err := writer.WriteStringValue("emailAddress", m.GetEmailAddress()) + err := writer.WriteStringValue("email", m.GetEmail()) if err != nil { return err } } { - err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + err := writer.WriteStringValue("id", m.GetId()) if err != nil { return err } } { - err := writer.WriteStringValue("smsCapablePhoneNumber", m.GetSmsCapablePhoneNumber()) + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { return err } @@ -162,57 +162,57 @@ func (m *VirtualAppointmentUser) Serialize(writer i878a80d2330e89d26896388a3f487 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 *VirtualAppointmentUser) SetAdditionalData(value map[string]any)() { +func (m *WorkbookEmailIdentity) 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 *VirtualAppointmentUser) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { +func (m *WorkbookEmailIdentity) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDisplayName sets the displayName property value. The display name of the user who participates in a virtual appointment. Optional. -func (m *VirtualAppointmentUser) SetDisplayName(value *string)() { +// SetDisplayName sets the displayName property value. The displayName property +func (m *WorkbookEmailIdentity) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetEmailAddress sets the emailAddress property value. The email address of the user who participates in a virtual appointment. Optional. -func (m *VirtualAppointmentUser) SetEmailAddress(value *string)() { - err := m.GetBackingStore().Set("emailAddress", value) +// SetEmail sets the email property value. The email property +func (m *WorkbookEmailIdentity) SetEmail(value *string)() { + err := m.GetBackingStore().Set("email", value) if err != nil { panic(err) } } -// SetOdataType sets the @odata.type property value. The OdataType property -func (m *VirtualAppointmentUser) SetOdataType(value *string)() { - err := m.GetBackingStore().Set("odataType", value) +// SetId sets the id property value. The id property +func (m *WorkbookEmailIdentity) SetId(value *string)() { + err := m.GetBackingStore().Set("id", value) if err != nil { panic(err) } } -// SetSmsCapablePhoneNumber sets the smsCapablePhoneNumber property value. The phone number for sending SMS texts for the user who participates in a virtual appointment. Optional. -func (m *VirtualAppointmentUser) SetSmsCapablePhoneNumber(value *string)() { - err := m.GetBackingStore().Set("smsCapablePhoneNumber", value) +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WorkbookEmailIdentity) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) if err != nil { panic(err) } } -// VirtualAppointmentUserable -type VirtualAppointmentUserable interface { +// WorkbookEmailIdentityable +type WorkbookEmailIdentityable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDisplayName()(*string) - GetEmailAddress()(*string) + GetEmail()(*string) + GetId()(*string) GetOdataType()(*string) - GetSmsCapablePhoneNumber()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayName(value *string)() - SetEmailAddress(value *string)() + SetEmail(value *string)() + SetId(value *string)() SetOdataType(value *string)() - SetSmsCapablePhoneNumber(value *string)() } diff --git a/models/workbook_worksheet.go b/models/workbook_worksheet.go index cb75c83f9b3..04ce3d06f70 100644 --- a/models/workbook_worksheet.go +++ b/models/workbook_worksheet.go @@ -127,6 +127,22 @@ func (m *WorkbookWorksheet) GetFieldDeserializers()(map[string]func(i878a80d2330 } return nil } + res["tasks"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateWorkbookDocumentTaskFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]WorkbookDocumentTaskable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(WorkbookDocumentTaskable) + } + } + m.SetTasks(res) + } + return nil + } res["visibility"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -205,6 +221,17 @@ func (m *WorkbookWorksheet) GetTables()([]WorkbookTableable) { } return nil } +// GetTasks gets the tasks property value. The tasks property +func (m *WorkbookWorksheet) GetTasks()([]WorkbookDocumentTaskable) { + val, err := m.GetBackingStore().Get("tasks") + if err != nil { + panic(err) + } + if val != nil { + return val.([]WorkbookDocumentTaskable) + } + return nil +} // GetVisibility gets the visibility property value. The Visibility of the worksheet. The possible values are: Visible, Hidden, VeryHidden. func (m *WorkbookWorksheet) GetVisibility()(*string) { val, err := m.GetBackingStore().Get("visibility") @@ -288,6 +315,18 @@ func (m *WorkbookWorksheet) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + if m.GetTasks() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTasks())) + for i, v := range m.GetTasks() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("tasks", cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("visibility", m.GetVisibility()) if err != nil { @@ -345,6 +384,13 @@ func (m *WorkbookWorksheet) SetTables(value []WorkbookTableable)() { panic(err) } } +// SetTasks sets the tasks property value. The tasks property +func (m *WorkbookWorksheet) SetTasks(value []WorkbookDocumentTaskable)() { + err := m.GetBackingStore().Set("tasks", value) + if err != nil { + panic(err) + } +} // SetVisibility sets the visibility property value. The Visibility of the worksheet. The possible values are: Visible, Hidden, VeryHidden. func (m *WorkbookWorksheet) SetVisibility(value *string)() { err := m.GetBackingStore().Set("visibility", value) @@ -363,6 +409,7 @@ type WorkbookWorksheetable interface { GetPosition()(*int32) GetProtection()(WorkbookWorksheetProtectionable) GetTables()([]WorkbookTableable) + GetTasks()([]WorkbookDocumentTaskable) GetVisibility()(*string) SetCharts(value []WorkbookChartable)() SetName(value *string)() @@ -371,5 +418,6 @@ type WorkbookWorksheetable interface { SetPosition(value *int32)() SetProtection(value WorkbookWorksheetProtectionable)() SetTables(value []WorkbookTableable)() + SetTasks(value []WorkbookDocumentTaskable)() SetVisibility(value *string)() } diff --git a/networkaccess/connectivity_branches_branch_site_item_request_builder.go b/networkaccess/connectivity_branches_branch_site_item_request_builder.go index 189cc64770e..5fe2bd4c8a1 100644 --- a/networkaccess/connectivity_branches_branch_site_item_request_builder.go +++ b/networkaccess/connectivity_branches_branch_site_item_request_builder.go @@ -41,6 +41,10 @@ type ConnectivityBranchesBranchSiteItemRequestBuilderPatchRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// ConnectivityConfiguration provides operations to manage the connectivityConfiguration property of the microsoft.graph.networkaccess.branchSite entity. +func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ConnectivityConfiguration()(*ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) { + return NewConnectivityBranchesItemConnectivityConfigurationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewConnectivityBranchesBranchSiteItemRequestBuilderInternal instantiates a new BranchSiteItemRequestBuilder and sets the default values. func NewConnectivityBranchesBranchSiteItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConnectivityBranchesBranchSiteItemRequestBuilder) { m := &ConnectivityBranchesBranchSiteItemRequestBuilder{ diff --git a/networkaccess/connectivity_branches_item_connectivity_configuration_links_connectivity_configuration_link_item_request_builder.go b/networkaccess/connectivity_branches_item_connectivity_configuration_links_connectivity_configuration_link_item_request_builder.go new file mode 100644 index 00000000000..6d3b3f79991 --- /dev/null +++ b/networkaccess/connectivity_branches_item_connectivity_configuration_links_connectivity_configuration_link_item_request_builder.go @@ -0,0 +1,155 @@ +package networkaccess + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/networkaccess" +) + +// ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder provides operations to manage the links property of the microsoft.graph.networkaccess.branchConnectivityConfiguration entity. +type ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderGetQueryParameters get links from networkAccess +type ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderGetQueryParameters +} +// ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderInternal instantiates a new ConnectivityConfigurationLinkItemRequestBuilder and sets the default values. +func NewConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) { + m := &ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/connectivityConfiguration/links/{connectivityConfigurationLink%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder instantiates a new ConnectivityConfigurationLinkItemRequestBuilder and sets the default values. +func NewConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property links for networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderDeleteRequestConfiguration)(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 links from networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, 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, i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateConnectivityConfigurationLinkFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable), nil +} +// Patch update the navigation property links in networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, 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, i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateConnectivityConfigurationLinkFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable), nil +} +// ToDeleteRequestInformation delete navigation property links for networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderDeleteRequestConfiguration)(*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 links from networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderGetRequestConfiguration)(*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 links in networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderPatchRequestConfiguration)(*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/networkaccess/connectivity_branches_item_connectivity_configuration_links_count_request_builder.go b/networkaccess/connectivity_branches_item_connectivity_configuration_links_count_request_builder.go new file mode 100644 index 00000000000..b93f7b48734 --- /dev/null +++ b/networkaccess/connectivity_branches_item_connectivity_configuration_links_count_request_builder.go @@ -0,0 +1,76 @@ +package networkaccess + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder provides operations to count the resources in the collection. +type ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderGetQueryParameters get the number of the resource +type ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderGetQueryParameters +} +// NewConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder) { + m := &ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/connectivityConfiguration/links/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderGetRequestConfiguration)(*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 *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderGetRequestConfiguration)(*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/networkaccess/connectivity_branches_item_connectivity_configuration_links_request_builder.go b/networkaccess/connectivity_branches_item_connectivity_configuration_links_request_builder.go new file mode 100644 index 00000000000..b070e93b400 --- /dev/null +++ b/networkaccess/connectivity_branches_item_connectivity_configuration_links_request_builder.go @@ -0,0 +1,147 @@ +package networkaccess + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/networkaccess" +) + +// ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder provides operations to manage the links property of the microsoft.graph.networkaccess.branchConnectivityConfiguration entity. +type ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderGetQueryParameters get links from networkAccess +type ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderGetQueryParameters 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"` +} +// ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderGetQueryParameters +} +// ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByConnectivityConfigurationLinkId provides operations to manage the links property of the microsoft.graph.networkaccess.branchConnectivityConfiguration entity. +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) ByConnectivityConfigurationLinkId(connectivityConfigurationLinkId string)(*ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if connectivityConfigurationLinkId != "" { + urlTplParams["connectivityConfigurationLink%2Did"] = connectivityConfigurationLinkId + } + return NewConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderInternal instantiates a new LinksRequestBuilder and sets the default values. +func NewConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) { + m := &ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/connectivityConfiguration/links{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder instantiates a new LinksRequestBuilder and sets the default values. +func NewConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) Count()(*ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder) { + return NewConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get links from networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkCollectionResponseable, 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, i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateConnectivityConfigurationLinkCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkCollectionResponseable), nil +} +// Post create new navigation property to links for networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) Post(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderPostRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateConnectivityConfigurationLinkFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable), nil +} +// ToGetRequestInformation get links from networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to links for networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) ToPostRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/networkaccess/connectivity_branches_item_connectivity_configuration_request_builder.go b/networkaccess/connectivity_branches_item_connectivity_configuration_request_builder.go new file mode 100644 index 00000000000..f01326346cb --- /dev/null +++ b/networkaccess/connectivity_branches_item_connectivity_configuration_request_builder.go @@ -0,0 +1,159 @@ +package networkaccess + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/networkaccess" +) + +// ConnectivityBranchesItemConnectivityConfigurationRequestBuilder provides operations to manage the connectivityConfiguration property of the microsoft.graph.networkaccess.branchSite entity. +type ConnectivityBranchesItemConnectivityConfigurationRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ConnectivityBranchesItemConnectivityConfigurationRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ConnectivityBranchesItemConnectivityConfigurationRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ConnectivityBranchesItemConnectivityConfigurationRequestBuilderGetQueryParameters get connectivityConfiguration from networkAccess +type ConnectivityBranchesItemConnectivityConfigurationRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ConnectivityBranchesItemConnectivityConfigurationRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ConnectivityBranchesItemConnectivityConfigurationRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ConnectivityBranchesItemConnectivityConfigurationRequestBuilderGetQueryParameters +} +// ConnectivityBranchesItemConnectivityConfigurationRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ConnectivityBranchesItemConnectivityConfigurationRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewConnectivityBranchesItemConnectivityConfigurationRequestBuilderInternal instantiates a new ConnectivityConfigurationRequestBuilder and sets the default values. +func NewConnectivityBranchesItemConnectivityConfigurationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) { + m := &ConnectivityBranchesItemConnectivityConfigurationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/connectivityConfiguration{?%24select,%24expand}", pathParameters), + } + return m +} +// NewConnectivityBranchesItemConnectivityConfigurationRequestBuilder instantiates a new ConnectivityConfigurationRequestBuilder and sets the default values. +func NewConnectivityBranchesItemConnectivityConfigurationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewConnectivityBranchesItemConnectivityConfigurationRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property connectivityConfiguration for networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) Delete(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationRequestBuilderDeleteRequestConfiguration)(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 connectivityConfiguration from networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchConnectivityConfigurationable, 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, i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateBranchConnectivityConfigurationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchConnectivityConfigurationable), nil +} +// Links provides operations to manage the links property of the microsoft.graph.networkaccess.branchConnectivityConfiguration entity. +func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) Links()(*ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) { + return NewConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property connectivityConfiguration in networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchConnectivityConfigurationable, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchConnectivityConfigurationable, 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, i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateBranchConnectivityConfigurationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchConnectivityConfigurationable), nil +} +// ToDeleteRequestInformation delete navigation property connectivityConfiguration for networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationRequestBuilderDeleteRequestConfiguration)(*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 connectivityConfiguration from networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationRequestBuilderGetRequestConfiguration)(*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 connectivityConfiguration in networkAccess +func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchConnectivityConfigurationable, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationRequestBuilderPatchRequestConfiguration)(*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/organization/item_get_member_groups_request_builder.go b/organization/item_get_member_groups_request_builder.go index a16ca0c0d34..d165953049d 100644 --- a/organization/item_get_member_groups_request_builder.go +++ b/organization/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/organization/item_settings_profile_card_properties_profile_card_property_item_request_builder.go b/organization/item_settings_profile_card_properties_profile_card_property_item_request_builder.go index 427ce94fe19..e1dacd8340e 100644 --- a/organization/item_settings_profile_card_properties_profile_card_property_item_request_builder.go +++ b/organization/item_settings_profile_card_properties_profile_card_property_item_request_builder.go @@ -18,7 +18,7 @@ type ItemSettingsProfileCardPropertiesProfileCardPropertyItemRequestBuilderDelet // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSettingsProfileCardPropertiesProfileCardPropertyItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a profileCardProperty entity, which contains the profile card customizations that exist in your Microsoft 365 organization for a given field. The profileCardProperty is identified by its directoryPropertyName property. +// ItemSettingsProfileCardPropertiesProfileCardPropertyItemRequestBuilderGetQueryParameters get profileCardProperties from organization type ItemSettingsProfileCardPropertiesProfileCardPropertyItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,10 +70,7 @@ func (m *ItemSettingsProfileCardPropertiesProfileCardPropertyItemRequestBuilder) } return nil } -// Get retrieve the properties and relationships of a profileCardProperty entity, which contains the profile card customizations that exist in your Microsoft 365 organization for a given field. The profileCardProperty is identified by its directoryPropertyName property. -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/profilecardproperty-get?view=graph-rest-1.0 +// Get get profileCardProperties from organization func (m *ItemSettingsProfileCardPropertiesProfileCardPropertyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsProfileCardPropertiesProfileCardPropertyItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -123,7 +120,7 @@ func (m *ItemSettingsProfileCardPropertiesProfileCardPropertyItemRequestBuilder) } return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of a profileCardProperty entity, which contains the profile card customizations that exist in your Microsoft 365 organization for a given field. The profileCardProperty is identified by its directoryPropertyName property. +// ToGetRequestInformation get profileCardProperties from organization func (m *ItemSettingsProfileCardPropertiesProfileCardPropertyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsProfileCardPropertiesProfileCardPropertyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/organization/item_settings_profile_card_properties_request_builder.go b/organization/item_settings_profile_card_properties_request_builder.go index c28ba6ca393..4693000af70 100644 --- a/organization/item_settings_profile_card_properties_request_builder.go +++ b/organization/item_settings_profile_card_properties_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSettingsProfileCardPropertiesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSettingsProfileCardPropertiesRequestBuilderGetQueryParameters get a collection of profileCardProperty resources of an organization. Each resource is identified by its directoryPropertyName property. +// ItemSettingsProfileCardPropertiesRequestBuilderGetQueryParameters get profileCardProperties from organization type ItemSettingsProfileCardPropertiesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,10 +74,7 @@ func NewItemSettingsProfileCardPropertiesRequestBuilder(rawUrl string, requestAd func (m *ItemSettingsProfileCardPropertiesRequestBuilder) Count()(*ItemSettingsProfileCardPropertiesCountRequestBuilder) { return NewItemSettingsProfileCardPropertiesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a collection of profileCardProperty resources of an organization. Each resource is identified by its directoryPropertyName property. -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/organizationsettings-list-profilecardproperties?view=graph-rest-1.0 +// Get get profileCardProperties from organization func (m *ItemSettingsProfileCardPropertiesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsProfileCardPropertiesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -96,10 +93,7 @@ func (m *ItemSettingsProfileCardPropertiesRequestBuilder) Get(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyCollectionResponseable), nil } -// Post create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information on adding properties to the profile card for an organization, see customize the profile card. -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/organizationsettings-post-profilecardproperties?view=graph-rest-1.0 +// Post create new navigation property to profileCardProperties for organization func (m *ItemSettingsProfileCardPropertiesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable, requestConfiguration *ItemSettingsProfileCardPropertiesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -118,7 +112,7 @@ func (m *ItemSettingsProfileCardPropertiesRequestBuilder) Post(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable), nil } -// ToGetRequestInformation get a collection of profileCardProperty resources of an organization. Each resource is identified by its directoryPropertyName property. +// ToGetRequestInformation get profileCardProperties from organization func (m *ItemSettingsProfileCardPropertiesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsProfileCardPropertiesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -134,7 +128,7 @@ func (m *ItemSettingsProfileCardPropertiesRequestBuilder) ToGetRequestInformatio } return requestInfo, nil } -// ToPostRequestInformation create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information on adding properties to the profile card for an organization, see customize the profile card. +// ToPostRequestInformation create new navigation property to profileCardProperties for organization func (m *ItemSettingsProfileCardPropertiesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfileCardPropertyable, requestConfiguration *ItemSettingsProfileCardPropertiesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/organization/item_settings_request_builder.go b/organization/item_settings_request_builder.go index 37edbb7deb8..0585df184c2 100644 --- a/organization/item_settings_request_builder.go +++ b/organization/item_settings_request_builder.go @@ -18,7 +18,7 @@ type ItemSettingsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSettingsRequestBuilderGetQueryParameters retrieve the properties and relationships of an organizationSettings object, including profileCardProperties. This operation does not return insightsSettings. Depending on the type of insights, you can get their settings by using list itemInsights or list peopleInsights. This operation does not return microsoftApplicationDataAccessSettings. To get microsoftApplicationDataAccessSettings, use list microsoftApplicationDataAccessSettings. +// ItemSettingsRequestBuilderGetQueryParameters retrieve the properties and relationships of organizationSettings object. Nullable. type ItemSettingsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,10 +74,7 @@ func (m *ItemSettingsRequestBuilder) Delete(ctx context.Context, requestConfigur } return nil } -// Get retrieve the properties and relationships of an organizationSettings object, including profileCardProperties. This operation does not return insightsSettings. Depending on the type of insights, you can get their settings by using list itemInsights or list peopleInsights. This operation does not return microsoftApplicationDataAccessSettings. To get microsoftApplicationDataAccessSettings, use list microsoftApplicationDataAccessSettings. -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/organizationsettings-get?view=graph-rest-1.0 +// Get retrieve the properties and relationships of organizationSettings object. Nullable. func (m *ItemSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OrganizationSettingsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -147,7 +144,7 @@ func (m *ItemSettingsRequestBuilder) ToDeleteRequestInformation(ctx context.Cont } return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of an organizationSettings object, including profileCardProperties. This operation does not return insightsSettings. Depending on the type of insights, you can get their settings by using list itemInsights or list peopleInsights. This operation does not return microsoftApplicationDataAccessSettings. To get microsoftApplicationDataAccessSettings, use list microsoftApplicationDataAccessSettings. +// ToGetRequestInformation retrieve the properties and relationships of organizationSettings object. Nullable. func (m *ItemSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/permissiongrants/item_get_member_groups_request_builder.go b/permissiongrants/item_get_member_groups_request_builder.go index 2770a22a2a2..a6698b71d48 100644 --- a/permissiongrants/item_get_member_groups_request_builder.go +++ b/permissiongrants/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/policies/cross_tenant_access_policy_partners_item_identity_synchronization_request_builder.go b/policies/cross_tenant_access_policy_partners_item_identity_synchronization_request_builder.go index a9485e9d2bb..3a889fbefb3 100644 --- a/policies/cross_tenant_access_policy_partners_item_identity_synchronization_request_builder.go +++ b/policies/cross_tenant_access_policy_partners_item_identity_synchronization_request_builder.go @@ -97,11 +97,11 @@ func (m *CrossTenantAccessPolicyPartnersItemIdentitySynchronizationRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantIdentitySyncPolicyPartnerable), nil } -// Patch create a cross-tenant user synchronization policy for a partner-specific configuration. +// Patch update the user synchronization policy of a partner-specific configuration. // Deprecated: as of 2022-04/PrivatePreview:CrossTenantSyncPolicy on 2022-03-24 and will be removed 2023-06-06 // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/crosstenantaccesspolicyconfigurationpartner-put-identitysynchronization?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/crosstenantidentitysyncpolicypartner-update?view=graph-rest-1.0 func (m *CrossTenantAccessPolicyPartnersItemIdentitySynchronizationRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantIdentitySyncPolicyPartnerable, requestConfiguration *CrossTenantAccessPolicyPartnersItemIdentitySynchronizationRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantIdentitySyncPolicyPartnerable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -150,7 +150,7 @@ func (m *CrossTenantAccessPolicyPartnersItemIdentitySynchronizationRequestBuilde } return requestInfo, nil } -// ToPatchRequestInformation create a cross-tenant user synchronization policy for a partner-specific configuration. +// ToPatchRequestInformation update the user synchronization policy of a partner-specific configuration. // Deprecated: as of 2022-04/PrivatePreview:CrossTenantSyncPolicy on 2022-03-24 and will be removed 2023-06-06 func (m *CrossTenantAccessPolicyPartnersItemIdentitySynchronizationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantIdentitySyncPolicyPartnerable, requestConfiguration *CrossTenantAccessPolicyPartnersItemIdentitySynchronizationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() diff --git a/rolemanagement/cloud_p_c_role_assignments_request_builder.go b/rolemanagement/cloud_p_c_role_assignments_request_builder.go index 1ef1acef0a0..b0e2d539f5d 100644 --- a/rolemanagement/cloud_p_c_role_assignments_request_builder.go +++ b/rolemanagement/cloud_p_c_role_assignments_request_builder.go @@ -77,7 +77,7 @@ func (m *CloudPCRoleAssignmentsRequestBuilder) Count()(*CloudPCRoleAssignmentsCo // Get get the properties and relationships of a unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/unifiedroleassignmentmultiple-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/rbacapplicationmultiple-list-roleassignments?view=graph-rest-1.0 func (m *CloudPCRoleAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *CloudPCRoleAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentMultipleCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/rolemanagement/device_management_role_assignments_request_builder.go b/rolemanagement/device_management_role_assignments_request_builder.go index 03351f8c283..43c83c18f32 100644 --- a/rolemanagement/device_management_role_assignments_request_builder.go +++ b/rolemanagement/device_management_role_assignments_request_builder.go @@ -77,7 +77,7 @@ func (m *DeviceManagementRoleAssignmentsRequestBuilder) Count()(*DeviceManagemen // Get get the properties and relationships of a unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/unifiedroleassignmentmultiple-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/rbacapplicationmultiple-list-roleassignments?view=graph-rest-1.0 func (m *DeviceManagementRoleAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceManagementRoleAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentMultipleCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/schemaextensions/schema_extension_item_request_builder.go b/schemaextensions/schema_extension_item_request_builder.go index a99b114a9cf..cf1ef0a77ef 100644 --- a/schemaextensions/schema_extension_item_request_builder.go +++ b/schemaextensions/schema_extension_item_request_builder.go @@ -95,7 +95,7 @@ func (m *SchemaExtensionItemRequestBuilder) Get(ctx context.Context, requestConf } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SchemaExtensionable), nil } -// Patch update properties in the definition of the specified schemaExtension. Additive updates to the extension can only be made when the extension is in the InDevelopment or Available status. This means custom properties or target resource types cannot be removed from the definition, but new custom properties can be added and the description of the extension changed. The update applies to all the resources that are included in the targetTypes property of the extension. These resources are among the supporting resource types. For delegated flows, the signed-in user can update a schema extension as long as the owner property of the extension is set to the appId of an application the signed-in user owns. That application can be the one that initially created the extension, or some other application owned by the signed-in user. This criteria for the owner property allows a signed-in user to make updates through other applications they don't own, such as Microsoft Graph Explorer. When using Graph Explorer to update a schemaExtension resource, include the owner property in the PATCH request body. For more information, see the Extensions section in Known issues with Microsoft Graph. +// Patch update properties in the definition of the specified schemaExtension. Additive updates to the extension can only be made when the extension is in the InDevelopment or Available status. This means custom properties or target resource types cannot be removed from the definition, but new custom properties can be added and the description of the extension changed. The update applies to all the resources that are included in the targetTypes property of the extension. These resources are among the supporting resource types. For delegated flows, the signed-in user can update a schema extension as long as the owner property of the extension is set to the appId of an application the signed-in user owns. That application can be the one that initially created the extension, or some other application owned by the signed-in user. This criteria for the owner property allows a signed-in user to make updates through other applications they don't own, such as Microsoft Graph Explorer. When using Graph Explorer to update a schemaExtension resource, include the owner property in the PATCH request body. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/schemaextension-update?view=graph-rest-1.0 @@ -145,7 +145,7 @@ func (m *SchemaExtensionItemRequestBuilder) ToGetRequestInformation(ctx context. } return requestInfo, nil } -// ToPatchRequestInformation update properties in the definition of the specified schemaExtension. Additive updates to the extension can only be made when the extension is in the InDevelopment or Available status. This means custom properties or target resource types cannot be removed from the definition, but new custom properties can be added and the description of the extension changed. The update applies to all the resources that are included in the targetTypes property of the extension. These resources are among the supporting resource types. For delegated flows, the signed-in user can update a schema extension as long as the owner property of the extension is set to the appId of an application the signed-in user owns. That application can be the one that initially created the extension, or some other application owned by the signed-in user. This criteria for the owner property allows a signed-in user to make updates through other applications they don't own, such as Microsoft Graph Explorer. When using Graph Explorer to update a schemaExtension resource, include the owner property in the PATCH request body. For more information, see the Extensions section in Known issues with Microsoft Graph. +// ToPatchRequestInformation update properties in the definition of the specified schemaExtension. Additive updates to the extension can only be made when the extension is in the InDevelopment or Available status. This means custom properties or target resource types cannot be removed from the definition, but new custom properties can be added and the description of the extension changed. The update applies to all the resources that are included in the targetTypes property of the extension. These resources are among the supporting resource types. For delegated flows, the signed-in user can update a schema extension as long as the owner property of the extension is set to the appId of an application the signed-in user owns. That application can be the one that initially created the extension, or some other application owned by the signed-in user. This criteria for the owner property allows a signed-in user to make updates through other applications they don't own, such as Microsoft Graph Explorer. When using Graph Explorer to update a schemaExtension resource, include the owner property in the PATCH request body. func (m *SchemaExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SchemaExtensionable, requestConfiguration *SchemaExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/security/threat_intelligence_host_pairs_host_pair_item_request_builder.go b/security/threat_intelligence_host_pairs_host_pair_item_request_builder.go index 78324161c62..1c3cfa26432 100644 --- a/security/threat_intelligence_host_pairs_host_pair_item_request_builder.go +++ b/security/threat_intelligence_host_pairs_host_pair_item_request_builder.go @@ -18,7 +18,7 @@ type ThreatIntelligenceHostPairsHostPairItemRequestBuilderDeleteRequestConfigura // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ThreatIntelligenceHostPairsHostPairItemRequestBuilderGetQueryParameters get hostPairs from security +// ThreatIntelligenceHostPairsHostPairItemRequestBuilderGetQueryParameters read the properties and relationships of a hostPair object. type ThreatIntelligenceHostPairsHostPairItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,10 @@ func (m *ThreatIntelligenceHostPairsHostPairItemRequestBuilder) Delete(ctx conte } return nil } -// Get get hostPairs from security +// Get read the properties and relationships of a hostPair object. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/security-hostpair-get?view=graph-rest-1.0 func (m *ThreatIntelligenceHostPairsHostPairItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceHostPairsHostPairItemRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -128,7 +131,7 @@ func (m *ThreatIntelligenceHostPairsHostPairItemRequestBuilder) ToDeleteRequestI } return requestInfo, nil } -// ToGetRequestInformation get hostPairs from security +// ToGetRequestInformation read the properties and relationships of a hostPair object. func (m *ThreatIntelligenceHostPairsHostPairItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceHostPairsHostPairItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/security/threat_intelligence_host_pairs_item_child_host_request_builder.go b/security/threat_intelligence_host_pairs_item_child_host_request_builder.go index 6d45aeb994c..2fa1faa0657 100644 --- a/security/threat_intelligence_host_pairs_item_child_host_request_builder.go +++ b/security/threat_intelligence_host_pairs_item_child_host_request_builder.go @@ -11,7 +11,7 @@ import ( type ThreatIntelligenceHostPairsItemChildHostRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ThreatIntelligenceHostPairsItemChildHostRequestBuilderGetQueryParameters get childHost from security +// ThreatIntelligenceHostPairsItemChildHostRequestBuilderGetQueryParameters host reached via the parentHost. type ThreatIntelligenceHostPairsItemChildHostRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewThreatIntelligenceHostPairsItemChildHostRequestBuilder(rawUrl string, re urlParams["request-raw-url"] = rawUrl return NewThreatIntelligenceHostPairsItemChildHostRequestBuilderInternal(urlParams, requestAdapter) } -// Get get childHost from security +// Get host reached via the parentHost. func (m *ThreatIntelligenceHostPairsItemChildHostRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceHostPairsItemChildHostRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Hostable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -59,7 +59,7 @@ func (m *ThreatIntelligenceHostPairsItemChildHostRequestBuilder) Get(ctx context } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Hostable), nil } -// ToGetRequestInformation get childHost from security +// ToGetRequestInformation host reached via the parentHost. func (m *ThreatIntelligenceHostPairsItemChildHostRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceHostPairsItemChildHostRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/security/threat_intelligence_host_pairs_item_parent_host_request_builder.go b/security/threat_intelligence_host_pairs_item_parent_host_request_builder.go index 8a51d552476..ded30b76d3c 100644 --- a/security/threat_intelligence_host_pairs_item_parent_host_request_builder.go +++ b/security/threat_intelligence_host_pairs_item_parent_host_request_builder.go @@ -11,7 +11,7 @@ import ( type ThreatIntelligenceHostPairsItemParentHostRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ThreatIntelligenceHostPairsItemParentHostRequestBuilderGetQueryParameters get parentHost from security +// ThreatIntelligenceHostPairsItemParentHostRequestBuilderGetQueryParameters host used to reach the childHost. type ThreatIntelligenceHostPairsItemParentHostRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewThreatIntelligenceHostPairsItemParentHostRequestBuilder(rawUrl string, r urlParams["request-raw-url"] = rawUrl return NewThreatIntelligenceHostPairsItemParentHostRequestBuilderInternal(urlParams, requestAdapter) } -// Get get parentHost from security +// Get host used to reach the childHost. func (m *ThreatIntelligenceHostPairsItemParentHostRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceHostPairsItemParentHostRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Hostable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -59,7 +59,7 @@ func (m *ThreatIntelligenceHostPairsItemParentHostRequestBuilder) Get(ctx contex } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Hostable), nil } -// ToGetRequestInformation get parentHost from security +// ToGetRequestInformation host used to reach the childHost. func (m *ThreatIntelligenceHostPairsItemParentHostRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceHostPairsItemParentHostRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/security/threat_intelligence_host_pairs_request_builder.go b/security/threat_intelligence_host_pairs_request_builder.go index 8054ce1f262..525cda9fa4f 100644 --- a/security/threat_intelligence_host_pairs_request_builder.go +++ b/security/threat_intelligence_host_pairs_request_builder.go @@ -11,7 +11,7 @@ import ( type ThreatIntelligenceHostPairsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ThreatIntelligenceHostPairsRequestBuilderGetQueryParameters get hostPairs from security +// ThreatIntelligenceHostPairsRequestBuilderGetQueryParameters read the properties and relationships of a hostPair object. type ThreatIntelligenceHostPairsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewThreatIntelligenceHostPairsRequestBuilder(rawUrl string, requestAdapter func (m *ThreatIntelligenceHostPairsRequestBuilder) Count()(*ThreatIntelligenceHostPairsCountRequestBuilder) { return NewThreatIntelligenceHostPairsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get hostPairs from security +// Get read the properties and relationships of a hostPair object. func (m *ThreatIntelligenceHostPairsRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceHostPairsRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *ThreatIntelligenceHostPairsRequestBuilder) Post(ctx context.Context, bo } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairable), nil } -// ToGetRequestInformation get hostPairs from security +// ToGetRequestInformation read the properties and relationships of a hostPair object. func (m *ThreatIntelligenceHostPairsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceHostPairsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/security/threat_intelligence_hosts_item_child_host_pairs_host_pair_item_request_builder.go b/security/threat_intelligence_hosts_item_child_host_pairs_host_pair_item_request_builder.go index fd3c0967216..3a74e0527ee 100644 --- a/security/threat_intelligence_hosts_item_child_host_pairs_host_pair_item_request_builder.go +++ b/security/threat_intelligence_hosts_item_child_host_pairs_host_pair_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ThreatIntelligenceHostsItemChildHostPairsHostPairItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ThreatIntelligenceHostsItemChildHostPairsHostPairItemRequestBuilderGetQueryParameters get childHostPairs from security +// ThreatIntelligenceHostsItemChildHostPairsHostPairItemRequestBuilderGetQueryParameters the hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. type ThreatIntelligenceHostsItemChildHostPairsHostPairItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewThreatIntelligenceHostsItemChildHostPairsHostPairItemRequestBuilder(rawU urlParams["request-raw-url"] = rawUrl return NewThreatIntelligenceHostsItemChildHostPairsHostPairItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get get childHostPairs from security +// Get the hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. func (m *ThreatIntelligenceHostsItemChildHostPairsHostPairItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceHostsItemChildHostPairsHostPairItemRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -59,7 +59,7 @@ func (m *ThreatIntelligenceHostsItemChildHostPairsHostPairItemRequestBuilder) Ge } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairable), nil } -// ToGetRequestInformation get childHostPairs from security +// ToGetRequestInformation the hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. func (m *ThreatIntelligenceHostsItemChildHostPairsHostPairItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceHostsItemChildHostPairsHostPairItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/security/threat_intelligence_hosts_item_child_host_pairs_request_builder.go b/security/threat_intelligence_hosts_item_child_host_pairs_request_builder.go index 4e0ab1fd1c9..8e77a56fe25 100644 --- a/security/threat_intelligence_hosts_item_child_host_pairs_request_builder.go +++ b/security/threat_intelligence_hosts_item_child_host_pairs_request_builder.go @@ -11,7 +11,7 @@ import ( type ThreatIntelligenceHostsItemChildHostPairsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ThreatIntelligenceHostsItemChildHostPairsRequestBuilderGetQueryParameters get childHostPairs from security +// ThreatIntelligenceHostsItemChildHostPairsRequestBuilderGetQueryParameters get the list of hostPair resources associated with a host, where that host is the *parent* and has an outgoing pairing to a *child*. type ThreatIntelligenceHostsItemChildHostPairsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -67,7 +67,10 @@ func NewThreatIntelligenceHostsItemChildHostPairsRequestBuilder(rawUrl string, r func (m *ThreatIntelligenceHostsItemChildHostPairsRequestBuilder) Count()(*ThreatIntelligenceHostsItemChildHostPairsCountRequestBuilder) { return NewThreatIntelligenceHostsItemChildHostPairsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get childHostPairs from security +// Get get the list of hostPair resources associated with a host, where that host is the *parent* and has an outgoing pairing to a *child*. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/security-host-list-childhostpairs?view=graph-rest-1.0 func (m *ThreatIntelligenceHostsItemChildHostPairsRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceHostsItemChildHostPairsRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -86,7 +89,7 @@ func (m *ThreatIntelligenceHostsItemChildHostPairsRequestBuilder) Get(ctx contex } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairCollectionResponseable), nil } -// ToGetRequestInformation get childHostPairs from security +// ToGetRequestInformation get the list of hostPair resources associated with a host, where that host is the *parent* and has an outgoing pairing to a *child*. func (m *ThreatIntelligenceHostsItemChildHostPairsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceHostsItemChildHostPairsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/security/threat_intelligence_hosts_item_host_pairs_host_pair_item_request_builder.go b/security/threat_intelligence_hosts_item_host_pairs_host_pair_item_request_builder.go index ed1b701a14d..45cfed142a7 100644 --- a/security/threat_intelligence_hosts_item_host_pairs_host_pair_item_request_builder.go +++ b/security/threat_intelligence_hosts_item_host_pairs_host_pair_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ThreatIntelligenceHostsItemHostPairsHostPairItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ThreatIntelligenceHostsItemHostPairsHostPairItemRequestBuilderGetQueryParameters get hostPairs from security +// ThreatIntelligenceHostsItemHostPairsHostPairItemRequestBuilderGetQueryParameters the hostPairs that are associated with this host, where this host is either the parentHost or childHost. type ThreatIntelligenceHostsItemHostPairsHostPairItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewThreatIntelligenceHostsItemHostPairsHostPairItemRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewThreatIntelligenceHostsItemHostPairsHostPairItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get get hostPairs from security +// Get the hostPairs that are associated with this host, where this host is either the parentHost or childHost. func (m *ThreatIntelligenceHostsItemHostPairsHostPairItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceHostsItemHostPairsHostPairItemRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -59,7 +59,7 @@ func (m *ThreatIntelligenceHostsItemHostPairsHostPairItemRequestBuilder) Get(ctx } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairable), nil } -// ToGetRequestInformation get hostPairs from security +// ToGetRequestInformation the hostPairs that are associated with this host, where this host is either the parentHost or childHost. func (m *ThreatIntelligenceHostsItemHostPairsHostPairItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceHostsItemHostPairsHostPairItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/security/threat_intelligence_hosts_item_host_pairs_request_builder.go b/security/threat_intelligence_hosts_item_host_pairs_request_builder.go index b49aa4d0ba5..7dfc594bff7 100644 --- a/security/threat_intelligence_hosts_item_host_pairs_request_builder.go +++ b/security/threat_intelligence_hosts_item_host_pairs_request_builder.go @@ -11,7 +11,7 @@ import ( type ThreatIntelligenceHostsItemHostPairsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ThreatIntelligenceHostsItemHostPairsRequestBuilderGetQueryParameters get hostPairs from security +// ThreatIntelligenceHostsItemHostPairsRequestBuilderGetQueryParameters get the list of hostPair resources associated with a host, where that host is *either* the *parent* or the *child*. type ThreatIntelligenceHostsItemHostPairsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -67,7 +67,10 @@ func NewThreatIntelligenceHostsItemHostPairsRequestBuilder(rawUrl string, reques func (m *ThreatIntelligenceHostsItemHostPairsRequestBuilder) Count()(*ThreatIntelligenceHostsItemHostPairsCountRequestBuilder) { return NewThreatIntelligenceHostsItemHostPairsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get hostPairs from security +// Get get the list of hostPair resources associated with a host, where that host is *either* the *parent* or the *child*. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/security-host-list-hostpairs?view=graph-rest-1.0 func (m *ThreatIntelligenceHostsItemHostPairsRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceHostsItemHostPairsRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -86,7 +89,7 @@ func (m *ThreatIntelligenceHostsItemHostPairsRequestBuilder) Get(ctx context.Con } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairCollectionResponseable), nil } -// ToGetRequestInformation get hostPairs from security +// ToGetRequestInformation get the list of hostPair resources associated with a host, where that host is *either* the *parent* or the *child*. func (m *ThreatIntelligenceHostsItemHostPairsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceHostsItemHostPairsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/security/threat_intelligence_hosts_item_parent_host_pairs_host_pair_item_request_builder.go b/security/threat_intelligence_hosts_item_parent_host_pairs_host_pair_item_request_builder.go index 6a2ba2711a4..4218b126e76 100644 --- a/security/threat_intelligence_hosts_item_parent_host_pairs_host_pair_item_request_builder.go +++ b/security/threat_intelligence_hosts_item_parent_host_pairs_host_pair_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ThreatIntelligenceHostsItemParentHostPairsHostPairItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ThreatIntelligenceHostsItemParentHostPairsHostPairItemRequestBuilderGetQueryParameters get parentHostPairs from security +// ThreatIntelligenceHostsItemParentHostPairsHostPairItemRequestBuilderGetQueryParameters the hostPairs that are associated with a host, where that host is the childHost and has an incoming pairing with a parentHost. type ThreatIntelligenceHostsItemParentHostPairsHostPairItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewThreatIntelligenceHostsItemParentHostPairsHostPairItemRequestBuilder(raw urlParams["request-raw-url"] = rawUrl return NewThreatIntelligenceHostsItemParentHostPairsHostPairItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get get parentHostPairs from security +// Get the hostPairs that are associated with a host, where that host is the childHost and has an incoming pairing with a parentHost. func (m *ThreatIntelligenceHostsItemParentHostPairsHostPairItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceHostsItemParentHostPairsHostPairItemRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -59,7 +59,7 @@ func (m *ThreatIntelligenceHostsItemParentHostPairsHostPairItemRequestBuilder) G } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairable), nil } -// ToGetRequestInformation get parentHostPairs from security +// ToGetRequestInformation the hostPairs that are associated with a host, where that host is the childHost and has an incoming pairing with a parentHost. func (m *ThreatIntelligenceHostsItemParentHostPairsHostPairItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceHostsItemParentHostPairsHostPairItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/security/threat_intelligence_hosts_item_parent_host_pairs_request_builder.go b/security/threat_intelligence_hosts_item_parent_host_pairs_request_builder.go index c030cda113a..66d2ef3ed4e 100644 --- a/security/threat_intelligence_hosts_item_parent_host_pairs_request_builder.go +++ b/security/threat_intelligence_hosts_item_parent_host_pairs_request_builder.go @@ -11,7 +11,7 @@ import ( type ThreatIntelligenceHostsItemParentHostPairsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ThreatIntelligenceHostsItemParentHostPairsRequestBuilderGetQueryParameters get parentHostPairs from security +// ThreatIntelligenceHostsItemParentHostPairsRequestBuilderGetQueryParameters get the list of hostPair resources associated with a host, where that host is the *child* and has an incoming pairing with a *parent*. type ThreatIntelligenceHostsItemParentHostPairsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -67,7 +67,10 @@ func NewThreatIntelligenceHostsItemParentHostPairsRequestBuilder(rawUrl string, func (m *ThreatIntelligenceHostsItemParentHostPairsRequestBuilder) Count()(*ThreatIntelligenceHostsItemParentHostPairsCountRequestBuilder) { return NewThreatIntelligenceHostsItemParentHostPairsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get parentHostPairs from security +// Get get the list of hostPair resources associated with a host, where that host is the *child* and has an incoming pairing with a *parent*. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/security-host-list-parenthostpairs?view=graph-rest-1.0 func (m *ThreatIntelligenceHostsItemParentHostPairsRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceHostsItemParentHostPairsRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -86,7 +89,7 @@ func (m *ThreatIntelligenceHostsItemParentHostPairsRequestBuilder) Get(ctx conte } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HostPairCollectionResponseable), nil } -// ToGetRequestInformation get parentHostPairs from security +// ToGetRequestInformation get the list of hostPair resources associated with a host, where that host is the *child* and has an incoming pairing with a *parent*. func (m *ThreatIntelligenceHostsItemParentHostPairsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceHostsItemParentHostPairsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/security/threat_intelligence_request_builder.go b/security/threat_intelligence_request_builder.go index 5712ac782ce..fdae2fa7043 100644 --- a/security/threat_intelligence_request_builder.go +++ b/security/threat_intelligence_request_builder.go @@ -209,6 +209,10 @@ func (m *ThreatIntelligenceRequestBuilder) ToPatchRequestInformation(ctx context func (m *ThreatIntelligenceRequestBuilder) Vulnerabilities()(*ThreatIntelligenceVulnerabilitiesRequestBuilder) { return NewThreatIntelligenceVulnerabilitiesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// WhoisHistoryRecords provides operations to manage the whoisHistoryRecords property of the microsoft.graph.security.threatIntelligence entity. +func (m *ThreatIntelligenceRequestBuilder) WhoisHistoryRecords()(*ThreatIntelligenceWhoisHistoryRecordsRequestBuilder) { + return NewThreatIntelligenceWhoisHistoryRecordsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WhoisRecords provides operations to manage the whoisRecords property of the microsoft.graph.security.threatIntelligence entity. func (m *ThreatIntelligenceRequestBuilder) WhoisRecords()(*ThreatIntelligenceWhoisRecordsRequestBuilder) { return NewThreatIntelligenceWhoisRecordsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/security/threat_intelligence_whois_history_records_count_request_builder.go b/security/threat_intelligence_whois_history_records_count_request_builder.go new file mode 100644 index 00000000000..85b26ef1e2b --- /dev/null +++ b/security/threat_intelligence_whois_history_records_count_request_builder.go @@ -0,0 +1,76 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilder provides operations to count the resources in the collection. +type ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilderGetQueryParameters get the number of the resource +type ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilderGetQueryParameters +} +// NewThreatIntelligenceWhoisHistoryRecordsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisHistoryRecordsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilder) { + m := &ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisHistoryRecords/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewThreatIntelligenceWhoisHistoryRecordsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisHistoryRecordsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewThreatIntelligenceWhoisHistoryRecordsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilderGetRequestConfiguration)(*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 *ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilderGetRequestConfiguration)(*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/security/threat_intelligence_whois_history_records_item_host_request_builder.go b/security/threat_intelligence_whois_history_records_item_host_request_builder.go new file mode 100644 index 00000000000..8a74b340c6b --- /dev/null +++ b/security/threat_intelligence_whois_history_records_item_host_request_builder.go @@ -0,0 +1,77 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilder provides operations to manage the host property of the microsoft.graph.security.whoisBaseRecord entity. +type ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilderGetQueryParameters get host from security +type ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilderGetQueryParameters +} +// NewThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilderInternal instantiates a new HostRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilder) { + m := &ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisHistoryRecords/{whoisHistoryRecord%2Did}/host{?%24select,%24expand}", pathParameters), + } + return m +} +// NewThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilder instantiates a new HostRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get host from security +func (m *ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Hostable, 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, i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.CreateHostFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Hostable), nil +} +// ToGetRequestInformation get host from security +func (m *ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilderGetRequestConfiguration)(*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/security/threat_intelligence_whois_history_records_request_builder.go b/security/threat_intelligence_whois_history_records_request_builder.go new file mode 100644 index 00000000000..89f374b1c4f --- /dev/null +++ b/security/threat_intelligence_whois_history_records_request_builder.go @@ -0,0 +1,147 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ThreatIntelligenceWhoisHistoryRecordsRequestBuilder provides operations to manage the whoisHistoryRecords property of the microsoft.graph.security.threatIntelligence entity. +type ThreatIntelligenceWhoisHistoryRecordsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ThreatIntelligenceWhoisHistoryRecordsRequestBuilderGetQueryParameters get whoisHistoryRecords from security +type ThreatIntelligenceWhoisHistoryRecordsRequestBuilderGetQueryParameters 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"` +} +// ThreatIntelligenceWhoisHistoryRecordsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ThreatIntelligenceWhoisHistoryRecordsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ThreatIntelligenceWhoisHistoryRecordsRequestBuilderGetQueryParameters +} +// ThreatIntelligenceWhoisHistoryRecordsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ThreatIntelligenceWhoisHistoryRecordsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByWhoisHistoryRecordId provides operations to manage the whoisHistoryRecords property of the microsoft.graph.security.threatIntelligence entity. +func (m *ThreatIntelligenceWhoisHistoryRecordsRequestBuilder) ByWhoisHistoryRecordId(whoisHistoryRecordId string)(*ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if whoisHistoryRecordId != "" { + urlTplParams["whoisHistoryRecord%2Did"] = whoisHistoryRecordId + } + return NewThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewThreatIntelligenceWhoisHistoryRecordsRequestBuilderInternal instantiates a new WhoisHistoryRecordsRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisHistoryRecordsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisHistoryRecordsRequestBuilder) { + m := &ThreatIntelligenceWhoisHistoryRecordsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisHistoryRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewThreatIntelligenceWhoisHistoryRecordsRequestBuilder instantiates a new WhoisHistoryRecordsRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisHistoryRecordsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisHistoryRecordsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewThreatIntelligenceWhoisHistoryRecordsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *ThreatIntelligenceWhoisHistoryRecordsRequestBuilder) Count()(*ThreatIntelligenceWhoisHistoryRecordsCountRequestBuilder) { + return NewThreatIntelligenceWhoisHistoryRecordsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get whoisHistoryRecords from security +func (m *ThreatIntelligenceWhoisHistoryRecordsRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordCollectionResponseable, 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, i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.CreateWhoisHistoryRecordCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordCollectionResponseable), nil +} +// Post create new navigation property to whoisHistoryRecords for security +func (m *ThreatIntelligenceWhoisHistoryRecordsRequestBuilder) Post(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordable, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsRequestBuilderPostRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.CreateWhoisHistoryRecordFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordable), nil +} +// ToGetRequestInformation get whoisHistoryRecords from security +func (m *ThreatIntelligenceWhoisHistoryRecordsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to whoisHistoryRecords for security +func (m *ThreatIntelligenceWhoisHistoryRecordsRequestBuilder) ToPostRequestInformation(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordable, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/security/threat_intelligence_whois_history_records_whois_history_record_item_request_builder.go b/security/threat_intelligence_whois_history_records_whois_history_record_item_request_builder.go new file mode 100644 index 00000000000..233cd508b9c --- /dev/null +++ b/security/threat_intelligence_whois_history_records_whois_history_record_item_request_builder.go @@ -0,0 +1,159 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder provides operations to manage the whoisHistoryRecords property of the microsoft.graph.security.threatIntelligence entity. +type ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderGetQueryParameters get whoisHistoryRecords from security +type ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderGetQueryParameters +} +// ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderInternal instantiates a new WhoisHistoryRecordItemRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder) { + m := &ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisHistoryRecords/{whoisHistoryRecord%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder instantiates a new WhoisHistoryRecordItemRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property whoisHistoryRecords for security +func (m *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderDeleteRequestConfiguration)(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 whoisHistoryRecords from security +func (m *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordable, 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, i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.CreateWhoisHistoryRecordFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordable), nil +} +// Host provides operations to manage the host property of the microsoft.graph.security.whoisBaseRecord entity. +func (m *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder) Host()(*ThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilder) { + return NewThreatIntelligenceWhoisHistoryRecordsItemHostRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property whoisHistoryRecords in security +func (m *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder) Patch(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordable, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderPatchRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordable, 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, i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.CreateWhoisHistoryRecordFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordable), nil +} +// ToDeleteRequestInformation delete navigation property whoisHistoryRecords for security +func (m *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderDeleteRequestConfiguration)(*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 whoisHistoryRecords from security +func (m *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderGetRequestConfiguration)(*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 whoisHistoryRecords in security +func (m *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordable, requestConfiguration *ThreatIntelligenceWhoisHistoryRecordsWhoisHistoryRecordItemRequestBuilderPatchRequestConfiguration)(*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/security/threat_intelligence_whois_records_item_history_count_request_builder.go b/security/threat_intelligence_whois_records_item_history_count_request_builder.go new file mode 100644 index 00000000000..e661cc9711a --- /dev/null +++ b/security/threat_intelligence_whois_records_item_history_count_request_builder.go @@ -0,0 +1,76 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilder provides operations to count the resources in the collection. +type ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilderGetQueryParameters get the number of the resource +type ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilderGetQueryParameters +} +// NewThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilder) { + m := &ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}/history/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilderGetRequestConfiguration)(*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 *ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilderGetRequestConfiguration)(*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/security/threat_intelligence_whois_records_item_history_request_builder.go b/security/threat_intelligence_whois_records_item_history_request_builder.go new file mode 100644 index 00000000000..40168b0e2c2 --- /dev/null +++ b/security/threat_intelligence_whois_records_item_history_request_builder.go @@ -0,0 +1,104 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilder provides operations to manage the history property of the microsoft.graph.security.whoisRecord entity. +type ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilderGetQueryParameters get history from security +type ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilderGetQueryParameters 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"` +} +// ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilderGetQueryParameters +} +// ByWhoisHistoryRecordId provides operations to manage the history property of the microsoft.graph.security.whoisRecord entity. +func (m *ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilder) ByWhoisHistoryRecordId(whoisHistoryRecordId string)(*ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if whoisHistoryRecordId != "" { + urlTplParams["whoisHistoryRecord%2Did"] = whoisHistoryRecordId + } + return NewThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewThreatIntelligenceWhoisRecordsItemHistoryRequestBuilderInternal instantiates a new HistoryRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisRecordsItemHistoryRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilder) { + m := &ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}/history{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewThreatIntelligenceWhoisRecordsItemHistoryRequestBuilder instantiates a new HistoryRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisRecordsItemHistoryRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewThreatIntelligenceWhoisRecordsItemHistoryRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilder) Count()(*ThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilder) { + return NewThreatIntelligenceWhoisRecordsItemHistoryCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get history from security +func (m *ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordCollectionResponseable, 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, i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.CreateWhoisHistoryRecordCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordCollectionResponseable), nil +} +// ToGetRequestInformation get history from security +func (m *ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilderGetRequestConfiguration)(*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/security/threat_intelligence_whois_records_item_history_whois_history_record_item_request_builder.go b/security/threat_intelligence_whois_records_item_history_whois_history_record_item_request_builder.go new file mode 100644 index 00000000000..828f1242d84 --- /dev/null +++ b/security/threat_intelligence_whois_records_item_history_whois_history_record_item_request_builder.go @@ -0,0 +1,77 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilder provides operations to manage the history property of the microsoft.graph.security.whoisRecord entity. +type ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilderGetQueryParameters get history from security +type ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilderGetQueryParameters +} +// NewThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilderInternal instantiates a new WhoisHistoryRecordItemRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilder) { + m := &ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}/history/{whoisHistoryRecord%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilder instantiates a new WhoisHistoryRecordItemRequestBuilder and sets the default values. +func NewThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get history from security +func (m *ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordable, 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, i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.CreateWhoisHistoryRecordFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisHistoryRecordable), nil +} +// ToGetRequestInformation get history from security +func (m *ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreatIntelligenceWhoisRecordsItemHistoryWhoisHistoryRecordItemRequestBuilderGetRequestConfiguration)(*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/security/threat_intelligence_whois_records_item_host_request_builder.go b/security/threat_intelligence_whois_records_item_host_request_builder.go index adf059b5726..eb405bba268 100644 --- a/security/threat_intelligence_whois_records_item_host_request_builder.go +++ b/security/threat_intelligence_whois_records_item_host_request_builder.go @@ -7,7 +7,7 @@ import ( i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) -// ThreatIntelligenceWhoisRecordsItemHostRequestBuilder provides operations to manage the host property of the microsoft.graph.security.whoisRecord entity. +// ThreatIntelligenceWhoisRecordsItemHostRequestBuilder provides operations to manage the host property of the microsoft.graph.security.whoisBaseRecord entity. type ThreatIntelligenceWhoisRecordsItemHostRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } diff --git a/security/threat_intelligence_whois_records_whois_record_item_request_builder.go b/security/threat_intelligence_whois_records_whois_record_item_request_builder.go index d5fe582e5e9..95826dd6382 100644 --- a/security/threat_intelligence_whois_records_whois_record_item_request_builder.go +++ b/security/threat_intelligence_whois_records_whois_record_item_request_builder.go @@ -89,7 +89,11 @@ func (m *ThreatIntelligenceWhoisRecordsWhoisRecordItemRequestBuilder) Get(ctx co } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.WhoisRecordable), nil } -// Host provides operations to manage the host property of the microsoft.graph.security.whoisRecord entity. +// History provides operations to manage the history property of the microsoft.graph.security.whoisRecord entity. +func (m *ThreatIntelligenceWhoisRecordsWhoisRecordItemRequestBuilder) History()(*ThreatIntelligenceWhoisRecordsItemHistoryRequestBuilder) { + return NewThreatIntelligenceWhoisRecordsItemHistoryRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Host provides operations to manage the host property of the microsoft.graph.security.whoisBaseRecord entity. func (m *ThreatIntelligenceWhoisRecordsWhoisRecordItemRequestBuilder) Host()(*ThreatIntelligenceWhoisRecordsItemHostRequestBuilder) { return NewThreatIntelligenceWhoisRecordsItemHostRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } diff --git a/serviceprincipals/item_get_member_groups_request_builder.go b/serviceprincipals/item_get_member_groups_request_builder.go index 62c92acf582..9601988a6d7 100644 --- a/serviceprincipals/item_get_member_groups_request_builder.go +++ b/serviceprincipals/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/serviceprincipals/item_owned_objects_directory_object_item_request_builder.go b/serviceprincipals/item_owned_objects_directory_object_item_request_builder.go index 7184fee6854..a481b03311d 100644 --- a/serviceprincipals/item_owned_objects_directory_object_item_request_builder.go +++ b/serviceprincipals/item_owned_objects_directory_object_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOwnedObjectsDirectoryObjectItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOwnedObjectsDirectoryObjectItemRequestBuilderGetQueryParameters directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ItemOwnedObjectsDirectoryObjectItemRequestBuilderGetQueryParameters directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). type ItemOwnedObjectsDirectoryObjectItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewItemOwnedObjectsDirectoryObjectItemRequestBuilder(rawUrl string, request urlParams["request-raw-url"] = rawUrl return NewItemOwnedObjectsDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// Get directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -75,7 +75,7 @@ func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) GraphGroup()(*ItemOw func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) GraphServicePrincipal()(*ItemOwnedObjectsItemGraphServicePrincipalRequestBuilder) { return NewItemOwnedObjectsItemGraphServicePrincipalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ToGetRequestInformation directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/serviceprincipals/item_owners_ref_request_builder.go b/serviceprincipals/item_owners_ref_request_builder.go index 31b201b5d09..4df3fc402f2 100644 --- a/serviceprincipals/item_owners_ref_request_builder.go +++ b/serviceprincipals/item_owners_ref_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOwnersRefRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOwnersRefRequestBuilderGetQueryParameters directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ItemOwnersRefRequestBuilderGetQueryParameters directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. type ItemOwnersRefRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -55,7 +55,7 @@ func NewItemOwnersRefRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee urlParams["request-raw-url"] = rawUrl return NewItemOwnersRefRequestBuilderInternal(urlParams, requestAdapter) } -// Get directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// Get directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/serviceprincipal-list-owners?view=graph-rest-1.0 @@ -96,7 +96,7 @@ func (m *ItemOwnersRefRequestBuilder) Post(ctx context.Context, body ie233ee762e } return nil } -// ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. func (m *ItemOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/serviceprincipals/item_owners_request_builder.go b/serviceprincipals/item_owners_request_builder.go index b22c283618e..1ee70afe564 100644 --- a/serviceprincipals/item_owners_request_builder.go +++ b/serviceprincipals/item_owners_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOwnersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOwnersRequestBuilderGetQueryParameters directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ItemOwnersRequestBuilderGetQueryParameters directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. type ItemOwnersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -67,7 +67,7 @@ func NewItemOwnersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 func (m *ItemOwnersRequestBuilder) Count()(*ItemOwnersCountRequestBuilder) { return NewItemOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// Get directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/serviceprincipal-list-owners?view=graph-rest-1.0 @@ -105,7 +105,7 @@ func (m *ItemOwnersRequestBuilder) GraphUser()(*ItemOwnersGraphUserRequestBuilde func (m *ItemOwnersRequestBuilder) Ref()(*ItemOwnersRefRequestBuilder) { return NewItemOwnersRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. func (m *ItemOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRequestBuilderGetRequestConfiguration)(*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 eea5befc198..cbf649505ea 100644 --- a/sites/sites_request_builder.go +++ b/sites/sites_request_builder.go @@ -11,7 +11,7 @@ import ( type SitesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// 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. +// 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. 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 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. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/site-search?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/site-list?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 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. +// 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. 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_recordings_call_recording_item_request_builder.go b/solutions/virtual_events_events_item_sessions_item_recordings_call_recording_item_request_builder.go index cabe0c16217..9a20f8cba60 100644 --- a/solutions/virtual_events_events_item_sessions_item_recordings_call_recording_item_request_builder.go +++ b/solutions/virtual_events_events_item_sessions_item_recordings_call_recording_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsEventsItemSessionsItemRecordingsCallRecordingItemRequestBuilde // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsEventsItemSessionsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters get recordings from solutions +// VirtualEventsEventsItemSessionsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. type VirtualEventsEventsItemSessionsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,10 @@ func (m *VirtualEventsEventsItemSessionsItemRecordingsCallRecordingItemRequestBu } return nil } -// Get get recordings from solutions +// Get get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/callrecording-get?view=graph-rest-1.0 func (m *VirtualEventsEventsItemSessionsItemRecordingsCallRecordingItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRecordingsCallRecordingItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +127,7 @@ func (m *VirtualEventsEventsItemSessionsItemRecordingsCallRecordingItemRequestBu } return requestInfo, nil } -// ToGetRequestInformation get recordings from solutions +// ToGetRequestInformation get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *VirtualEventsEventsItemSessionsItemRecordingsCallRecordingItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRecordingsCallRecordingItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/solutions/virtual_events_events_item_sessions_item_recordings_item_content_request_builder.go b/solutions/virtual_events_events_item_sessions_item_recordings_item_content_request_builder.go index d6b43b0c927..f906e9c6f86 100644 --- a/solutions/virtual_events_events_item_sessions_item_recordings_item_content_request_builder.go +++ b/solutions/virtual_events_events_item_sessions_item_recordings_item_content_request_builder.go @@ -38,7 +38,7 @@ func NewVirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilder(r urlParams["request-raw-url"] = rawUrl return NewVirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get get content for the navigation property recordings from solutions +// Get the content of the recording. Read-only. func (m *VirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -57,7 +57,7 @@ func (m *VirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilder) } return res.([]byte), nil } -// Put update content for the navigation property recordings in solutions +// Put the content of the recording. Read-only. func (m *VirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *VirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -76,7 +76,7 @@ func (m *VirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } -// ToGetRequestInformation get content for the navigation property recordings from solutions +// ToGetRequestInformation the content of the recording. Read-only. func (m *VirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -88,7 +88,7 @@ func (m *VirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilder) } return requestInfo, nil } -// ToPutRequestInformation update content for the navigation property recordings in solutions +// ToPutRequestInformation the content of the recording. Read-only. func (m *VirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *VirtualEventsEventsItemSessionsItemRecordingsItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/solutions/virtual_events_events_item_sessions_item_recordings_request_builder.go b/solutions/virtual_events_events_item_sessions_item_recordings_request_builder.go index c5f802c3bd7..0e74c3a54c0 100644 --- a/solutions/virtual_events_events_item_sessions_item_recordings_request_builder.go +++ b/solutions/virtual_events_events_item_sessions_item_recordings_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsEventsItemSessionsItemRecordingsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsEventsItemSessionsItemRecordingsRequestBuilderGetQueryParameters get recordings from solutions +// VirtualEventsEventsItemSessionsItemRecordingsRequestBuilderGetQueryParameters get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. type VirtualEventsEventsItemSessionsItemRecordingsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsEventsItemSessionsItemRecordingsRequestBuilder(rawUrl strin func (m *VirtualEventsEventsItemSessionsItemRecordingsRequestBuilder) Count()(*VirtualEventsEventsItemSessionsItemRecordingsCountRequestBuilder) { return NewVirtualEventsEventsItemSessionsItemRecordingsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get recordings from solutions +// Get get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *VirtualEventsEventsItemSessionsItemRecordingsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRecordingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsEventsItemSessionsItemRecordingsRequestBuilder) Post(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } -// ToGetRequestInformation get recordings from solutions +// ToGetRequestInformation get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *VirtualEventsEventsItemSessionsItemRecordingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRecordingsRequestBuilderGetRequestConfiguration)(*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 59cd28343fc..f737deafd65 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 @@ -58,10 +58,10 @@ func NewVirtualEventsEventsItemSessionsItemRegistrationRequestBuilder(rawUrl str func (m *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilder) CustomQuestions()(*VirtualEventsEventsItemSessionsItemRegistrationCustomQuestionsRequestBuilder) { return NewVirtualEventsEventsItemSessionsItemRegistrationCustomQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. +// Delete disable and delete the externalMeetingRegistration of an onlineMeeting. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 func (m *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -125,7 +125,7 @@ func (m *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilder) Patch(ct func (m *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilder) Registrants()(*VirtualEventsEventsItemSessionsItemRegistrationRegistrantsRequestBuilder) { return NewVirtualEventsEventsItemSessionsItemRegistrationRegistrantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. +// ToDeleteRequestInformation disable and delete the externalMeetingRegistration of an onlineMeeting. func (m *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/solutions/virtual_events_events_item_sessions_item_registrations_count_request_builder.go b/solutions/virtual_events_events_item_sessions_item_registrations_count_request_builder.go new file mode 100644 index 00000000000..99e71b9eebe --- /dev/null +++ b/solutions/virtual_events_events_item_sessions_item_registrations_count_request_builder.go @@ -0,0 +1,76 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilder) { + m := &VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/sessions/{virtualEventSession%2Did}/registrations/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewVirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilderGetRequestConfiguration)(*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 *VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilderGetRequestConfiguration)(*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/solutions/virtual_events_events_item_sessions_item_registrations_request_builder.go b/solutions/virtual_events_events_item_sessions_item_registrations_request_builder.go new file mode 100644 index 00000000000..037c5b51624 --- /dev/null +++ b/solutions/virtual_events_events_item_sessions_item_registrations_request_builder.go @@ -0,0 +1,104 @@ +package solutions + +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" +) + +// VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +type VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilderGetQueryParameters 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"` +} +// VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilderGetQueryParameters +} +// ByVirtualEventRegistrationId provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +func (m *VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder) ByVirtualEventRegistrationId(virtualEventRegistrationId string)(*VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventRegistrationId != "" { + urlTplParams["virtualEventRegistration%2Did"] = virtualEventRegistrationId + } + return NewVirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsEventsItemSessionsItemRegistrationsRequestBuilderInternal instantiates a new RegistrationsRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemSessionsItemRegistrationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder) { + m := &VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/sessions/{virtualEventSession%2Did}/registrations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewVirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder instantiates a new RegistrationsRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsEventsItemSessionsItemRegistrationsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder) Count()(*VirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilder) { + return NewVirtualEventsEventsItemSessionsItemRegistrationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get registrations from solutions +func (m *VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationCollectionResponseable, 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.CreateVirtualEventRegistrationCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationCollectionResponseable), nil +} +// ToGetRequestInformation get registrations from solutions +func (m *VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilderGetRequestConfiguration)(*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/solutions/virtual_events_events_item_sessions_item_registrations_virtual_event_registration_item_request_builder.go b/solutions/virtual_events_events_item_sessions_item_registrations_virtual_event_registration_item_request_builder.go new file mode 100644 index 00000000000..5a0c8fb2a4f --- /dev/null +++ b/solutions/virtual_events_events_item_sessions_item_registrations_virtual_event_registration_item_request_builder.go @@ -0,0 +1,77 @@ +package solutions + +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" +) + +// VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +type VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters +} +// NewVirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal instantiates a new VirtualEventRegistrationItemRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + m := &VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/sessions/{virtualEventSession%2Did}/registrations/{virtualEventRegistration%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewVirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder instantiates a new VirtualEventRegistrationItemRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get registrations from solutions +func (m *VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, 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.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToGetRequestInformation get registrations from solutions +func (m *VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration)(*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/solutions/virtual_events_events_item_sessions_item_virtual_appointment_request_builder.go b/solutions/virtual_events_events_item_sessions_item_virtual_appointment_request_builder.go deleted file mode 100644 index 8b050b574c9..00000000000 --- a/solutions/virtual_events_events_item_sessions_item_virtual_appointment_request_builder.go +++ /dev/null @@ -1,170 +0,0 @@ -package solutions - -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" -) - -// VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder provides operations to manage the virtualAppointment property of the microsoft.graph.onlineMeeting entity. -type VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderGetQueryParameters read the properties and relationships of a virtualAppointment object. -type VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderGetQueryParameters -} -// VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewVirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderInternal instantiates a new VirtualAppointmentRequestBuilder and sets the default values. -func NewVirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder) { - m := &VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/sessions/{virtualEventSession%2Did}/virtualAppointment{?%24select,%24expand}", pathParameters), - } - return m -} -// NewVirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder instantiates a new VirtualAppointmentRequestBuilder and sets the default values. -func NewVirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewVirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-delete?view=graph-rest-1.0 -func (m *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get read the properties and relationships of a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-get?view=graph-rest-1.0 -func (m *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, 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.CreateVirtualAppointmentFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable), nil -} -// Patch create a new virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-put?view=graph-rest-1.0 -func (m *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, requestConfiguration *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, 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.CreateVirtualAppointmentFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable), nil -} -// ToDeleteRequestInformation delete a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration)(*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 a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderGetRequestConfiguration)(*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 create a new virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, requestConfiguration *VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration)(*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/solutions/virtual_events_events_item_sessions_request_builder.go b/solutions/virtual_events_events_item_sessions_request_builder.go index 113288a0377..0c430657899 100644 --- a/solutions/virtual_events_events_item_sessions_request_builder.go +++ b/solutions/virtual_events_events_item_sessions_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsEventsItemSessionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsEventsItemSessionsRequestBuilderGetQueryParameters read the properties and relationships of a virtualEventSession object. +// VirtualEventsEventsItemSessionsRequestBuilderGetQueryParameters sessions of the virtual event. type VirtualEventsEventsItemSessionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsEventsItemSessionsRequestBuilder(rawUrl string, requestAdap func (m *VirtualEventsEventsItemSessionsRequestBuilder) Count()(*VirtualEventsEventsItemSessionsCountRequestBuilder) { return NewVirtualEventsEventsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read the properties and relationships of a virtualEventSession object. +// Get sessions of the virtual event. func (m *VirtualEventsEventsItemSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsEventsItemSessionsRequestBuilder) Post(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable), nil } -// ToGetRequestInformation read the properties and relationships of a virtualEventSession object. +// ToGetRequestInformation sessions of the virtual event. func (m *VirtualEventsEventsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/solutions/virtual_events_events_item_sessions_virtual_event_session_item_request_builder.go b/solutions/virtual_events_events_item_sessions_virtual_event_session_item_request_builder.go index 7b173081b9b..79bff39f705 100644 --- a/solutions/virtual_events_events_item_sessions_virtual_event_session_item_request_builder.go +++ b/solutions/virtual_events_events_item_sessions_virtual_event_session_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderDeleteR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters read the properties and relationships of a virtualEventSession object. +// VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions of the virtual event. type VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -86,10 +86,7 @@ func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) D } return nil } -// Get read the properties and relationships of a virtualEventSession object. -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualeventsession-get?view=graph-rest-1.0 +// Get sessions of the virtual event. func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -143,6 +140,10 @@ func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) R func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) Registration()(*VirtualEventsEventsItemSessionsItemRegistrationRequestBuilder) { return NewVirtualEventsEventsItemSessionsItemRegistrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// Registrations provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) Registrations()(*VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder) { + return NewVirtualEventsEventsItemSessionsItemRegistrationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property sessions for solutions func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() @@ -155,7 +156,7 @@ func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) T } return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of a virtualEventSession object. +// ToGetRequestInformation sessions of the virtual event. func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -192,7 +193,3 @@ func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) T func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) Transcripts()(*VirtualEventsEventsItemSessionsItemTranscriptsRequestBuilder) { return NewVirtualEventsEventsItemSessionsItemTranscriptsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// VirtualAppointment provides operations to manage the virtualAppointment property of the microsoft.graph.onlineMeeting entity. -func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) VirtualAppointment()(*VirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilder) { - return NewVirtualEventsEventsItemSessionsItemVirtualAppointmentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/solutions/virtual_events_webinars_item_registration_configuration_request_builder.go b/solutions/virtual_events_webinars_item_registration_configuration_request_builder.go new file mode 100644 index 00000000000..3bf111141ca --- /dev/null +++ b/solutions/virtual_events_webinars_item_registration_configuration_request_builder.go @@ -0,0 +1,77 @@ +package solutions + +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" +) + +// VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder provides operations to manage the registrationConfiguration property of the microsoft.graph.virtualEventWebinar entity. +type VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetQueryParameters get registrationConfiguration from solutions +type VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetQueryParameters +} +// NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderInternal instantiates a new RegistrationConfigurationRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration{?%24select,%24expand}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder instantiates a new RegistrationConfigurationRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get registrationConfiguration from solutions +func (m *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationConfigurationable, 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.CreateVirtualEventRegistrationConfigurationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationConfigurationable), nil +} +// ToGetRequestInformation get registrationConfiguration from solutions +func (m *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration)(*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/solutions/virtual_events_webinars_item_registration_request_builder.go b/solutions/virtual_events_webinars_item_registration_request_builder.go deleted file mode 100644 index 74c693b26de..00000000000 --- a/solutions/virtual_events_webinars_item_registration_request_builder.go +++ /dev/null @@ -1,77 +0,0 @@ -package solutions - -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" -) - -// VirtualEventsWebinarsItemRegistrationRequestBuilder provides operations to manage the registration property of the microsoft.graph.virtualEventWebinar entity. -type VirtualEventsWebinarsItemRegistrationRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// VirtualEventsWebinarsItemRegistrationRequestBuilderGetQueryParameters registration configuration of the webinar. -type VirtualEventsWebinarsItemRegistrationRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// VirtualEventsWebinarsItemRegistrationRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type VirtualEventsWebinarsItemRegistrationRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *VirtualEventsWebinarsItemRegistrationRequestBuilderGetQueryParameters -} -// NewVirtualEventsWebinarsItemRegistrationRequestBuilderInternal instantiates a new RegistrationRequestBuilder and sets the default values. -func NewVirtualEventsWebinarsItemRegistrationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationRequestBuilder) { - m := &VirtualEventsWebinarsItemRegistrationRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registration{?%24select,%24expand}", pathParameters), - } - return m -} -// NewVirtualEventsWebinarsItemRegistrationRequestBuilder instantiates a new RegistrationRequestBuilder and sets the default values. -func NewVirtualEventsWebinarsItemRegistrationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewVirtualEventsWebinarsItemRegistrationRequestBuilderInternal(urlParams, requestAdapter) -} -// Get registration configuration of the webinar. -func (m *VirtualEventsWebinarsItemRegistrationRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, 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.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil -} -// ToGetRequestInformation registration configuration of the webinar. -func (m *VirtualEventsWebinarsItemRegistrationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationRequestBuilderGetRequestConfiguration)(*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/solutions/virtual_events_webinars_item_registrations_count_request_builder.go b/solutions/virtual_events_webinars_item_registrations_count_request_builder.go new file mode 100644 index 00000000000..d6c414fd8bf --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_count_request_builder.go @@ -0,0 +1,76 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsWebinarsItemRegistrationsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsWebinarsItemRegistrationsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsWebinarsItemRegistrationsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsWebinarsItemRegistrationsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsCountRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *VirtualEventsWebinarsItemRegistrationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsCountRequestBuilderGetRequestConfiguration)(*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 *VirtualEventsWebinarsItemRegistrationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsCountRequestBuilderGetRequestConfiguration)(*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/solutions/virtual_events_webinars_item_registrations_item_sessions_count_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_sessions_count_request_builder.go new file mode 100644 index 00000000000..eea7446f554 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_item_sessions_count_request_builder.go @@ -0,0 +1,76 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetRequestConfiguration)(*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 *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetRequestConfiguration)(*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/solutions/virtual_events_webinars_item_registrations_item_sessions_item_alternative_recording_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_sessions_item_alternative_recording_request_builder.go new file mode 100644 index 00000000000..8c99b440695 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_item_sessions_item_alternative_recording_request_builder.go @@ -0,0 +1,102 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilder provides operations to manage the media for the solutionsRoot entity. +type VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilderInternal instantiates a new AlternativeRecordingRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}/alternativeRecording", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilder instantiates a new AlternativeRecordingRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream of the alternative recording of a Microsoft Teams live event. Read-only. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilderGetRequestConfiguration)([]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 the content stream of the alternative recording of a Microsoft Teams live event. Read-only. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilderPutRequestConfiguration)([]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 the content stream of the alternative recording of a Microsoft Teams live event. Read-only. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilderGetRequestConfiguration)(*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 the content stream of the alternative recording of a Microsoft Teams live event. Read-only. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilderPutRequestConfiguration)(*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/solutions/virtual_events_webinars_item_registrations_item_sessions_item_attendee_report_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_sessions_item_attendee_report_request_builder.go new file mode 100644 index 00000000000..c0adf91d5a9 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_item_sessions_item_attendee_report_request_builder.go @@ -0,0 +1,102 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilder provides operations to manage the media for the solutionsRoot entity. +type VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilderInternal instantiates a new AttendeeReportRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}/attendeeReport", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilder instantiates a new AttendeeReportRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream of the attendee report of a Teams live event. Read-only. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilderGetRequestConfiguration)([]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 the content stream of the attendee report of a Teams live event. Read-only. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilderPutRequestConfiguration)([]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 the content stream of the attendee report of a Teams live event. Read-only. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilderGetRequestConfiguration)(*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 the content stream of the attendee report of a Teams live event. Read-only. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilderPutRequestConfiguration)(*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/solutions/virtual_events_webinars_item_registrations_item_sessions_item_broadcast_recording_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_sessions_item_broadcast_recording_request_builder.go new file mode 100644 index 00000000000..da444146485 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_item_sessions_item_broadcast_recording_request_builder.go @@ -0,0 +1,102 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilder provides operations to manage the media for the solutionsRoot entity. +type VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilderInternal instantiates a new BroadcastRecordingRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}/broadcastRecording", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilder instantiates a new BroadcastRecordingRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get broadcastRecording for the navigation property sessions from solutions +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilderGetRequestConfiguration)([]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 broadcastRecording for the navigation property sessions in solutions +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilderPutRequestConfiguration)([]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 broadcastRecording for the navigation property sessions from solutions +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilderGetRequestConfiguration)(*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 broadcastRecording for the navigation property sessions in solutions +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilderPutRequestConfiguration)(*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/solutions/virtual_events_webinars_item_registrations_item_sessions_item_recording_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_sessions_item_recording_request_builder.go new file mode 100644 index 00000000000..e9f7745e02c --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_item_sessions_item_recording_request_builder.go @@ -0,0 +1,102 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilder provides operations to manage the media for the solutionsRoot entity. +type VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilderInternal instantiates a new RecordingRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}/recording", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilder instantiates a new RecordingRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream of the recording of a Teams live event. Read-only. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilderGetRequestConfiguration)([]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 the content stream of the recording of a Teams live event. Read-only. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilderPutRequestConfiguration)([]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 the content stream of the recording of a Teams live event. Read-only. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilderGetRequestConfiguration)(*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 the content stream of the recording of a Teams live event. Read-only. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilderPutRequestConfiguration)(*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/solutions/virtual_events_webinars_item_registrations_item_sessions_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_sessions_request_builder.go new file mode 100644 index 00000000000..c42e2866fd4 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_item_sessions_request_builder.go @@ -0,0 +1,104 @@ +package solutions + +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" +) + +// VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +type VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetQueryParameters get sessions from solutions +type VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetQueryParameters 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"` +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetQueryParameters +} +// ByVirtualEventSessionId provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) ByVirtualEventSessionId(virtualEventSessionId string)(*VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventSessionId != "" { + urlTplParams["virtualEventSession%2Did"] = virtualEventSessionId + } + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderInternal instantiates a new SessionsRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder instantiates a new SessionsRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) Count()(*VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get sessions from solutions +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable, 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.CreateVirtualEventSessionCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable), nil +} +// ToGetRequestInformation get sessions from solutions +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration)(*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/solutions/virtual_events_webinars_item_registrations_item_sessions_virtual_event_session_item_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_sessions_virtual_event_session_item_request_builder.go new file mode 100644 index 00000000000..a0fc65f016c --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_item_sessions_virtual_event_session_item_request_builder.go @@ -0,0 +1,93 @@ +package solutions + +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" +) + +// VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +type VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters get sessions from solutions +type VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters +} +// AlternativeRecording provides operations to manage the media for the solutionsRoot entity. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) AlternativeRecording()(*VirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemAlternativeRecordingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// AttendeeReport provides operations to manage the media for the solutionsRoot entity. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) AttendeeReport()(*VirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemAttendeeReportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// BroadcastRecording provides operations to manage the media for the solutionsRoot entity. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) BroadcastRecording()(*VirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemBroadcastRecordingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderInternal instantiates a new VirtualEventSessionItemRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder instantiates a new VirtualEventSessionItemRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get sessions from solutions +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable, 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.CreateVirtualEventSessionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable), nil +} +// Recording provides operations to manage the media for the solutionsRoot entity. +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) Recording()(*VirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsItemRecordingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation get sessions from solutions +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(*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/solutions/virtual_events_webinars_item_registrations_request_builder.go b/solutions/virtual_events_webinars_item_registrations_request_builder.go new file mode 100644 index 00000000000..f67722ce3fb --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_request_builder.go @@ -0,0 +1,147 @@ +package solutions + +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" +) + +// VirtualEventsWebinarsItemRegistrationsRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. +type VirtualEventsWebinarsItemRegistrationsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsWebinarsItemRegistrationsRequestBuilderGetQueryParameters 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"` +} +// VirtualEventsWebinarsItemRegistrationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsRequestBuilderGetQueryParameters +} +// VirtualEventsWebinarsItemRegistrationsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByVirtualEventRegistrationId provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. +func (m *VirtualEventsWebinarsItemRegistrationsRequestBuilder) ByVirtualEventRegistrationId(virtualEventRegistrationId string)(*VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventRegistrationId != "" { + urlTplParams["virtualEventRegistration%2Did"] = virtualEventRegistrationId + } + return NewVirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsWebinarsItemRegistrationsRequestBuilderInternal instantiates a new RegistrationsRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsRequestBuilder instantiates a new RegistrationsRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *VirtualEventsWebinarsItemRegistrationsRequestBuilder) Count()(*VirtualEventsWebinarsItemRegistrationsCountRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get registrations from solutions +func (m *VirtualEventsWebinarsItemRegistrationsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationCollectionResponseable, 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.CreateVirtualEventRegistrationCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationCollectionResponseable), nil +} +// Post create new navigation property to registrations for solutions +func (m *VirtualEventsWebinarsItemRegistrationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToGetRequestInformation get registrations from solutions +func (m *VirtualEventsWebinarsItemRegistrationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to registrations for solutions +func (m *VirtualEventsWebinarsItemRegistrationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/solutions/virtual_events_webinars_item_registrations_virtual_event_registration_item_request_builder.go b/solutions/virtual_events_webinars_item_registrations_virtual_event_registration_item_request_builder.go new file mode 100644 index 00000000000..b03dd2df91b --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_virtual_event_registration_item_request_builder.go @@ -0,0 +1,159 @@ +package solutions + +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" +) + +// VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. +type VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters +} +// VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal instantiates a new VirtualEventRegistrationItemRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder instantiates a new VirtualEventRegistrationItemRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property registrations for solutions +func (m *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderDeleteRequestConfiguration)(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 registrations from solutions +func (m *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, 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.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// Patch update the navigation property registrations in solutions +func (m *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, 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.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// Sessions provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +func (m *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Sessions()(*VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property registrations for solutions +func (m *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderDeleteRequestConfiguration)(*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 registrations from solutions +func (m *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration)(*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 registrations in solutions +func (m *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderPatchRequestConfiguration)(*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/solutions/virtual_events_webinars_item_sessions_item_recordings_call_recording_item_request_builder.go b/solutions/virtual_events_webinars_item_sessions_item_recordings_call_recording_item_request_builder.go index 4e3b920eced..1f8ba31d572 100644 --- a/solutions/virtual_events_webinars_item_sessions_item_recordings_call_recording_item_request_builder.go +++ b/solutions/virtual_events_webinars_item_sessions_item_recordings_call_recording_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsWebinarsItemSessionsItemRecordingsCallRecordingItemRequestBuil // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsWebinarsItemSessionsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters get recordings from solutions +// VirtualEventsWebinarsItemSessionsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. type VirtualEventsWebinarsItemSessionsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,10 @@ func (m *VirtualEventsWebinarsItemSessionsItemRecordingsCallRecordingItemRequest } return nil } -// Get get recordings from solutions +// Get get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/callrecording-get?view=graph-rest-1.0 func (m *VirtualEventsWebinarsItemSessionsItemRecordingsCallRecordingItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRecordingsCallRecordingItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +127,7 @@ func (m *VirtualEventsWebinarsItemSessionsItemRecordingsCallRecordingItemRequest } return requestInfo, nil } -// ToGetRequestInformation get recordings from solutions +// ToGetRequestInformation get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *VirtualEventsWebinarsItemSessionsItemRecordingsCallRecordingItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRecordingsCallRecordingItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/solutions/virtual_events_webinars_item_sessions_item_recordings_item_content_request_builder.go b/solutions/virtual_events_webinars_item_sessions_item_recordings_item_content_request_builder.go index 023bfd0677d..9928eff92c9 100644 --- a/solutions/virtual_events_webinars_item_sessions_item_recordings_item_content_request_builder.go +++ b/solutions/virtual_events_webinars_item_sessions_item_recordings_item_content_request_builder.go @@ -38,7 +38,7 @@ func NewVirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilder urlParams["request-raw-url"] = rawUrl return NewVirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get get content for the navigation property recordings from solutions +// Get the content of the recording. Read-only. func (m *VirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -57,7 +57,7 @@ func (m *VirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilde } return res.([]byte), nil } -// Put update content for the navigation property recordings in solutions +// Put the content of the recording. Read-only. func (m *VirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -76,7 +76,7 @@ func (m *VirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } -// ToGetRequestInformation get content for the navigation property recordings from solutions +// ToGetRequestInformation the content of the recording. Read-only. func (m *VirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -88,7 +88,7 @@ func (m *VirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilde } return requestInfo, nil } -// ToPutRequestInformation update content for the navigation property recordings in solutions +// ToPutRequestInformation the content of the recording. Read-only. func (m *VirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRecordingsItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/solutions/virtual_events_webinars_item_sessions_item_recordings_request_builder.go b/solutions/virtual_events_webinars_item_sessions_item_recordings_request_builder.go index 370994abdcd..49ce3a80fee 100644 --- a/solutions/virtual_events_webinars_item_sessions_item_recordings_request_builder.go +++ b/solutions/virtual_events_webinars_item_sessions_item_recordings_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsWebinarsItemSessionsItemRecordingsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsWebinarsItemSessionsItemRecordingsRequestBuilderGetQueryParameters get recordings from solutions +// VirtualEventsWebinarsItemSessionsItemRecordingsRequestBuilderGetQueryParameters get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. type VirtualEventsWebinarsItemSessionsItemRecordingsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsWebinarsItemSessionsItemRecordingsRequestBuilder(rawUrl str func (m *VirtualEventsWebinarsItemSessionsItemRecordingsRequestBuilder) Count()(*VirtualEventsWebinarsItemSessionsItemRecordingsCountRequestBuilder) { return NewVirtualEventsWebinarsItemSessionsItemRecordingsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get recordings from solutions +// Get get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *VirtualEventsWebinarsItemSessionsItemRecordingsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRecordingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsWebinarsItemSessionsItemRecordingsRequestBuilder) Post(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } -// ToGetRequestInformation get recordings from solutions +// ToGetRequestInformation get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *VirtualEventsWebinarsItemSessionsItemRecordingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRecordingsRequestBuilderGetRequestConfiguration)(*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 250ab9be572..9dc95ae57ae 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 @@ -58,10 +58,10 @@ func NewVirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilder(rawUrl s func (m *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilder) CustomQuestions()(*VirtualEventsWebinarsItemSessionsItemRegistrationCustomQuestionsRequestBuilder) { return NewVirtualEventsWebinarsItemSessionsItemRegistrationCustomQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. +// Delete disable and delete the externalMeetingRegistration of an onlineMeeting. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 func (m *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -125,7 +125,7 @@ func (m *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilder) Patch( func (m *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilder) Registrants()(*VirtualEventsWebinarsItemSessionsItemRegistrationRegistrantsRequestBuilder) { return NewVirtualEventsWebinarsItemSessionsItemRegistrationRegistrantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. +// ToDeleteRequestInformation disable and delete the externalMeetingRegistration of an onlineMeeting. func (m *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/solutions/virtual_events_webinars_item_sessions_item_registrations_count_request_builder.go b/solutions/virtual_events_webinars_item_sessions_item_registrations_count_request_builder.go new file mode 100644 index 00000000000..ae6a5023c70 --- /dev/null +++ b/solutions/virtual_events_webinars_item_sessions_item_registrations_count_request_builder.go @@ -0,0 +1,76 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilder) { + m := &VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/sessions/{virtualEventSession%2Did}/registrations/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilderGetRequestConfiguration)(*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 *VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilderGetRequestConfiguration)(*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/solutions/virtual_events_webinars_item_sessions_item_registrations_request_builder.go b/solutions/virtual_events_webinars_item_sessions_item_registrations_request_builder.go new file mode 100644 index 00000000000..2cc5d4b232d --- /dev/null +++ b/solutions/virtual_events_webinars_item_sessions_item_registrations_request_builder.go @@ -0,0 +1,104 @@ +package solutions + +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" +) + +// VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +type VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilderGetQueryParameters 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"` +} +// VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilderGetQueryParameters +} +// ByVirtualEventRegistrationId provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder) ByVirtualEventRegistrationId(virtualEventRegistrationId string)(*VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventRegistrationId != "" { + urlTplParams["virtualEventRegistration%2Did"] = virtualEventRegistrationId + } + return NewVirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilderInternal instantiates a new RegistrationsRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder) { + m := &VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/sessions/{virtualEventSession%2Did}/registrations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder instantiates a new RegistrationsRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder) Count()(*VirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilder) { + return NewVirtualEventsWebinarsItemSessionsItemRegistrationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get registrations from solutions +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationCollectionResponseable, 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.CreateVirtualEventRegistrationCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationCollectionResponseable), nil +} +// ToGetRequestInformation get registrations from solutions +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilderGetRequestConfiguration)(*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/solutions/virtual_events_webinars_item_sessions_item_registrations_virtual_event_registration_item_request_builder.go b/solutions/virtual_events_webinars_item_sessions_item_registrations_virtual_event_registration_item_request_builder.go new file mode 100644 index 00000000000..619bf59c826 --- /dev/null +++ b/solutions/virtual_events_webinars_item_sessions_item_registrations_virtual_event_registration_item_request_builder.go @@ -0,0 +1,77 @@ +package solutions + +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" +) + +// VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +type VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters +} +// NewVirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal instantiates a new VirtualEventRegistrationItemRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + m := &VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/sessions/{virtualEventSession%2Did}/registrations/{virtualEventRegistration%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder instantiates a new VirtualEventRegistrationItemRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get registrations from solutions +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, 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.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToGetRequestInformation get registrations from solutions +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration)(*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/solutions/virtual_events_webinars_item_sessions_request_builder.go b/solutions/virtual_events_webinars_item_sessions_request_builder.go index 2c62ceda74c..4d8901ffa67 100644 --- a/solutions/virtual_events_webinars_item_sessions_request_builder.go +++ b/solutions/virtual_events_webinars_item_sessions_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsWebinarsItemSessionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsWebinarsItemSessionsRequestBuilderGetQueryParameters read the properties and relationships of a virtualEventSession object. +// VirtualEventsWebinarsItemSessionsRequestBuilderGetQueryParameters sessions of the virtual event. type VirtualEventsWebinarsItemSessionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsWebinarsItemSessionsRequestBuilder(rawUrl string, requestAd func (m *VirtualEventsWebinarsItemSessionsRequestBuilder) Count()(*VirtualEventsWebinarsItemSessionsCountRequestBuilder) { return NewVirtualEventsWebinarsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read the properties and relationships of a virtualEventSession object. +// Get sessions of the virtual event. func (m *VirtualEventsWebinarsItemSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsWebinarsItemSessionsRequestBuilder) Post(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable), nil } -// ToGetRequestInformation read the properties and relationships of a virtualEventSession object. +// ToGetRequestInformation sessions of the virtual event. func (m *VirtualEventsWebinarsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/solutions/virtual_events_webinars_item_sessions_virtual_event_session_item_request_builder.go b/solutions/virtual_events_webinars_item_sessions_virtual_event_session_item_request_builder.go index 933ece7bb8f..c5d9652f7d1 100644 --- a/solutions/virtual_events_webinars_item_sessions_virtual_event_session_item_request_builder.go +++ b/solutions/virtual_events_webinars_item_sessions_virtual_event_session_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderDelet // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters read the properties and relationships of a virtualEventSession object. +// VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions of the virtual event. type VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -86,10 +86,7 @@ func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) } return nil } -// Get read the properties and relationships of a virtualEventSession object. -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualeventsession-get?view=graph-rest-1.0 +// Get sessions of the virtual event. func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -143,6 +140,10 @@ func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) Registration()(*VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilder) { return NewVirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// Registrations provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) Registrations()(*VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder) { + return NewVirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property sessions for solutions func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() @@ -155,7 +156,7 @@ func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) } return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of a virtualEventSession object. +// ToGetRequestInformation sessions of the virtual event. func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -192,7 +193,3 @@ func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) Transcripts()(*VirtualEventsWebinarsItemSessionsItemTranscriptsRequestBuilder) { return NewVirtualEventsWebinarsItemSessionsItemTranscriptsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// VirtualAppointment provides operations to manage the virtualAppointment property of the microsoft.graph.onlineMeeting entity. -func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) VirtualAppointment()(*VirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilder) { - return NewVirtualEventsWebinarsItemSessionsItemVirtualAppointmentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/solutions/virtual_events_webinars_virtual_event_webinar_item_request_builder.go b/solutions/virtual_events_webinars_virtual_event_webinar_item_request_builder.go index a2d7fbbd340..974e9baaf88 100644 --- a/solutions/virtual_events_webinars_virtual_event_webinar_item_request_builder.go +++ b/solutions/virtual_events_webinars_virtual_event_webinar_item_request_builder.go @@ -115,9 +115,13 @@ func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Patch(ctx c func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Presenters()(*VirtualEventsWebinarsItemPresentersRequestBuilder) { return NewVirtualEventsWebinarsItemPresentersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Registration provides operations to manage the registration property of the microsoft.graph.virtualEventWebinar entity. -func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Registration()(*VirtualEventsWebinarsItemRegistrationRequestBuilder) { - return NewVirtualEventsWebinarsItemRegistrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +// RegistrationConfiguration provides operations to manage the registrationConfiguration property of the microsoft.graph.virtualEventWebinar entity. +func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) RegistrationConfiguration()(*VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Registrations provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. +func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Registrations()(*VirtualEventsWebinarsItemRegistrationsRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Sessions provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Sessions()(*VirtualEventsWebinarsItemSessionsRequestBuilder) { diff --git a/teams/item_channels_item_members_conversation_member_item_request_builder.go b/teams/item_channels_item_members_conversation_member_item_request_builder.go index 08cade1250c..0491c9b1aac 100644 --- a/teams/item_channels_item_members_conversation_member_item_request_builder.go +++ b/teams/item_channels_item_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) Get(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) ToGetReque } return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/teams/item_permission_grants_item_get_member_groups_request_builder.go b/teams/item_permission_grants_item_get_member_groups_request_builder.go index c34d7456b3e..c96a686fc8d 100644 --- a/teams/item_permission_grants_item_get_member_groups_request_builder.go +++ b/teams/item_permission_grants_item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemPermissionGrantsItemGetMemberGroupsRequestBuilder(rawUrl string, req urlParams["request-raw-url"] = rawUrl return NewItemPermissionGrantsItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemPermissionGrantsItemGetMemberGroupsRequestBuilder) Post(ctx context } return res.(ItemPermissionGrantsItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemPermissionGrantsItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPermissionGrantsItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemPermissionGrantsItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/teams/item_primary_channel_members_conversation_member_item_request_builder.go b/teams/item_primary_channel_members_conversation_member_item_request_builder.go index f5a051a5dfd..d12c873a6ff 100644 --- a/teams/item_primary_channel_members_conversation_member_item_request_builder.go +++ b/teams/item_primary_channel_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) ToGetReq } return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go index 26f628214e0..df9add75238 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuild } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuild } return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/teamtemplatedefinition/item_team_definition_permission_grants_item_get_member_groups_request_builder.go b/teamtemplatedefinition/item_team_definition_permission_grants_item_get_member_groups_request_builder.go index a9bf9d7259d..0e88e3c1860 100644 --- a/teamtemplatedefinition/item_team_definition_permission_grants_item_get_member_groups_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_permission_grants_item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemTeamDefinitionPermissionGrantsItemGetMemberGroupsRequestBuilder(rawU urlParams["request-raw-url"] = rawUrl return NewItemTeamDefinitionPermissionGrantsItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemTeamDefinitionPermissionGrantsItemGetMemberGroupsRequestBuilder) Po } return res.(ItemTeamDefinitionPermissionGrantsItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemTeamDefinitionPermissionGrantsItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamDefinitionPermissionGrantsItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemTeamDefinitionPermissionGrantsItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go index c5be26eecaf..2777a107e40 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBui } return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go b/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go index e342df79e99..165b706b228 100644 --- a/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder } return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/teamwork/send_activity_notification_to_recipients_request_builder.go b/teamwork/send_activity_notification_to_recipients_request_builder.go index afe5b3fdfd6..5f952308996 100644 --- a/teamwork/send_activity_notification_to_recipients_request_builder.go +++ b/teamwork/send_activity_notification_to_recipients_request_builder.go @@ -30,7 +30,7 @@ func NewSendActivityNotificationToRecipientsRequestBuilder(rawUrl string, reques urlParams["request-raw-url"] = rawUrl return NewSendActivityNotificationToRecipientsRequestBuilderInternal(urlParams, requestAdapter) } -// Post send activity feed notifications to multiple users, in bulk. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. +// Post send activity feed notifications to multiple users, in bulk. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/teamwork-sendactivitynotificationtorecipients?view=graph-rest-1.0 @@ -49,7 +49,7 @@ func (m *SendActivityNotificationToRecipientsRequestBuilder) Post(ctx context.Co } return nil } -// ToPostRequestInformation send activity feed notifications to multiple users, in bulk. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. +// ToPostRequestInformation send activity feed notifications to multiple users, in bulk. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. func (m *SendActivityNotificationToRecipientsRequestBuilder) ToPostRequestInformation(ctx context.Context, body SendActivityNotificationToRecipientsPostRequestBodyable, requestConfiguration *SendActivityNotificationToRecipientsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go index 2d28aa8145c..d7b529c36dc 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConver } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConver } return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/teamwork/team_templates_item_definitions_item_team_definition_permission_grants_item_get_member_groups_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_permission_grants_item_get_member_groups_request_builder.go index 686980c9402..85774bc8219 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_permission_grants_item_get_member_groups_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_permission_grants_item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPermissionGrantsItemGetMem urlParams["request-raw-url"] = rawUrl return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPermissionGrantsItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPermissionGrantsItemGetMe } return res.(TeamTemplatesItemDefinitionsItemTeamDefinitionPermissionGrantsItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPermissionGrantsItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionPermissionGrantsItemGetMemberGroupsPostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPermissionGrantsItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go index a5a09856878..2db90ede73c 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConv } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConv } return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/tenantrelationships/multi_tenant_organization_join_request_request_builder.go b/tenantrelationships/multi_tenant_organization_join_request_request_builder.go new file mode 100644 index 00000000000..831aa69d3b0 --- /dev/null +++ b/tenantrelationships/multi_tenant_organization_join_request_request_builder.go @@ -0,0 +1,155 @@ +package tenantrelationships + +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" +) + +// MultiTenantOrganizationJoinRequestRequestBuilder provides operations to manage the joinRequest property of the microsoft.graph.multiTenantOrganization entity. +type MultiTenantOrganizationJoinRequestRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MultiTenantOrganizationJoinRequestRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MultiTenantOrganizationJoinRequestRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// MultiTenantOrganizationJoinRequestRequestBuilderGetQueryParameters get joinRequest from tenantRelationships +type MultiTenantOrganizationJoinRequestRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// MultiTenantOrganizationJoinRequestRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MultiTenantOrganizationJoinRequestRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MultiTenantOrganizationJoinRequestRequestBuilderGetQueryParameters +} +// MultiTenantOrganizationJoinRequestRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MultiTenantOrganizationJoinRequestRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMultiTenantOrganizationJoinRequestRequestBuilderInternal instantiates a new JoinRequestRequestBuilder and sets the default values. +func NewMultiTenantOrganizationJoinRequestRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MultiTenantOrganizationJoinRequestRequestBuilder) { + m := &MultiTenantOrganizationJoinRequestRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization/joinRequest{?%24select,%24expand}", pathParameters), + } + return m +} +// NewMultiTenantOrganizationJoinRequestRequestBuilder instantiates a new JoinRequestRequestBuilder and sets the default values. +func NewMultiTenantOrganizationJoinRequestRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MultiTenantOrganizationJoinRequestRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMultiTenantOrganizationJoinRequestRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property joinRequest for tenantRelationships +func (m *MultiTenantOrganizationJoinRequestRequestBuilder) Delete(ctx context.Context, requestConfiguration *MultiTenantOrganizationJoinRequestRequestBuilderDeleteRequestConfiguration)(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 joinRequest from tenantRelationships +func (m *MultiTenantOrganizationJoinRequestRequestBuilder) Get(ctx context.Context, requestConfiguration *MultiTenantOrganizationJoinRequestRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationJoinRequestRecordable, 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.CreateMultiTenantOrganizationJoinRequestRecordFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationJoinRequestRecordable), nil +} +// Patch update the navigation property joinRequest in tenantRelationships +func (m *MultiTenantOrganizationJoinRequestRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationJoinRequestRecordable, requestConfiguration *MultiTenantOrganizationJoinRequestRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationJoinRequestRecordable, 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.CreateMultiTenantOrganizationJoinRequestRecordFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationJoinRequestRecordable), nil +} +// ToDeleteRequestInformation delete navigation property joinRequest for tenantRelationships +func (m *MultiTenantOrganizationJoinRequestRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *MultiTenantOrganizationJoinRequestRequestBuilderDeleteRequestConfiguration)(*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 joinRequest from tenantRelationships +func (m *MultiTenantOrganizationJoinRequestRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MultiTenantOrganizationJoinRequestRequestBuilderGetRequestConfiguration)(*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 joinRequest in tenantRelationships +func (m *MultiTenantOrganizationJoinRequestRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationJoinRequestRecordable, requestConfiguration *MultiTenantOrganizationJoinRequestRequestBuilderPatchRequestConfiguration)(*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/tenantrelationships/multi_tenant_organization_request_builder.go b/tenantrelationships/multi_tenant_organization_request_builder.go new file mode 100644 index 00000000000..5234999cc75 --- /dev/null +++ b/tenantrelationships/multi_tenant_organization_request_builder.go @@ -0,0 +1,163 @@ +package tenantrelationships + +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" +) + +// MultiTenantOrganizationRequestBuilder provides operations to manage the multiTenantOrganization property of the microsoft.graph.tenantRelationship entity. +type MultiTenantOrganizationRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MultiTenantOrganizationRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MultiTenantOrganizationRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// MultiTenantOrganizationRequestBuilderGetQueryParameters get multiTenantOrganization from tenantRelationships +type MultiTenantOrganizationRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// MultiTenantOrganizationRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MultiTenantOrganizationRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MultiTenantOrganizationRequestBuilderGetQueryParameters +} +// MultiTenantOrganizationRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MultiTenantOrganizationRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMultiTenantOrganizationRequestBuilderInternal instantiates a new MultiTenantOrganizationRequestBuilder and sets the default values. +func NewMultiTenantOrganizationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MultiTenantOrganizationRequestBuilder) { + m := &MultiTenantOrganizationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization{?%24select,%24expand}", pathParameters), + } + return m +} +// NewMultiTenantOrganizationRequestBuilder instantiates a new MultiTenantOrganizationRequestBuilder and sets the default values. +func NewMultiTenantOrganizationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MultiTenantOrganizationRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMultiTenantOrganizationRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property multiTenantOrganization for tenantRelationships +func (m *MultiTenantOrganizationRequestBuilder) Delete(ctx context.Context, requestConfiguration *MultiTenantOrganizationRequestBuilderDeleteRequestConfiguration)(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 multiTenantOrganization from tenantRelationships +func (m *MultiTenantOrganizationRequestBuilder) Get(ctx context.Context, requestConfiguration *MultiTenantOrganizationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, 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.CreateMultiTenantOrganizationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable), nil +} +// JoinRequest provides operations to manage the joinRequest property of the microsoft.graph.multiTenantOrganization entity. +func (m *MultiTenantOrganizationRequestBuilder) JoinRequest()(*MultiTenantOrganizationJoinRequestRequestBuilder) { + return NewMultiTenantOrganizationJoinRequestRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Put update the navigation property multiTenantOrganization in tenantRelationships +func (m *MultiTenantOrganizationRequestBuilder) Put(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, 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.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMultiTenantOrganizationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable), nil +} +// Tenants provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity. +func (m *MultiTenantOrganizationRequestBuilder) Tenants()(*MultiTenantOrganizationTenantsRequestBuilder) { + return NewMultiTenantOrganizationTenantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property multiTenantOrganization for tenantRelationships +func (m *MultiTenantOrganizationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *MultiTenantOrganizationRequestBuilderDeleteRequestConfiguration)(*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 multiTenantOrganization from tenantRelationships +func (m *MultiTenantOrganizationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MultiTenantOrganizationRequestBuilderGetRequestConfiguration)(*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 +} +// ToPutRequestInformation update the navigation property multiTenantOrganization in tenantRelationships +func (m *MultiTenantOrganizationRequestBuilder) ToPutRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT + 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/tenantrelationships/multi_tenant_organization_tenants_count_request_builder.go b/tenantrelationships/multi_tenant_organization_tenants_count_request_builder.go new file mode 100644 index 00000000000..82ad071609d --- /dev/null +++ b/tenantrelationships/multi_tenant_organization_tenants_count_request_builder.go @@ -0,0 +1,76 @@ +package tenantrelationships + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MultiTenantOrganizationTenantsCountRequestBuilder provides operations to count the resources in the collection. +type MultiTenantOrganizationTenantsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MultiTenantOrganizationTenantsCountRequestBuilderGetQueryParameters get the number of the resource +type MultiTenantOrganizationTenantsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// MultiTenantOrganizationTenantsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MultiTenantOrganizationTenantsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MultiTenantOrganizationTenantsCountRequestBuilderGetQueryParameters +} +// NewMultiTenantOrganizationTenantsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewMultiTenantOrganizationTenantsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MultiTenantOrganizationTenantsCountRequestBuilder) { + m := &MultiTenantOrganizationTenantsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization/tenants/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewMultiTenantOrganizationTenantsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewMultiTenantOrganizationTenantsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MultiTenantOrganizationTenantsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMultiTenantOrganizationTenantsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *MultiTenantOrganizationTenantsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *MultiTenantOrganizationTenantsCountRequestBuilderGetRequestConfiguration)(*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 *MultiTenantOrganizationTenantsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MultiTenantOrganizationTenantsCountRequestBuilderGetRequestConfiguration)(*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/tenantrelationships/multi_tenant_organization_tenants_multi_tenant_organization_member_item_request_builder.go b/tenantrelationships/multi_tenant_organization_tenants_multi_tenant_organization_member_item_request_builder.go new file mode 100644 index 00000000000..aa44efd46b2 --- /dev/null +++ b/tenantrelationships/multi_tenant_organization_tenants_multi_tenant_organization_member_item_request_builder.go @@ -0,0 +1,155 @@ +package tenantrelationships + +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" +) + +// MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity. +type MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters get tenants from tenantRelationships +type MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters +} +// MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderInternal instantiates a new MultiTenantOrganizationMemberItemRequestBuilder and sets the default values. +func NewMultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder) { + m := &MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization/tenants/{multiTenantOrganizationMember%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewMultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder instantiates a new MultiTenantOrganizationMemberItemRequestBuilder and sets the default values. +func NewMultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property tenants for tenantRelationships +func (m *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderDeleteRequestConfiguration)(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 tenants from tenantRelationships +func (m *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationMemberable, 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.CreateMultiTenantOrganizationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationMemberable), nil +} +// Patch update the navigation property tenants in tenantRelationships +func (m *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationMemberable, requestConfiguration *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationMemberable, 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.CreateMultiTenantOrganizationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationMemberable), nil +} +// ToDeleteRequestInformation delete navigation property tenants for tenantRelationships +func (m *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderDeleteRequestConfiguration)(*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 tenants from tenantRelationships +func (m *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderGetRequestConfiguration)(*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 tenants in tenantRelationships +func (m *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationMemberable, requestConfiguration *MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderPatchRequestConfiguration)(*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/tenantrelationships/multi_tenant_organization_tenants_request_builder.go b/tenantrelationships/multi_tenant_organization_tenants_request_builder.go new file mode 100644 index 00000000000..85b96660f14 --- /dev/null +++ b/tenantrelationships/multi_tenant_organization_tenants_request_builder.go @@ -0,0 +1,147 @@ +package tenantrelationships + +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" +) + +// MultiTenantOrganizationTenantsRequestBuilder provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity. +type MultiTenantOrganizationTenantsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MultiTenantOrganizationTenantsRequestBuilderGetQueryParameters get tenants from tenantRelationships +type MultiTenantOrganizationTenantsRequestBuilderGetQueryParameters 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"` +} +// MultiTenantOrganizationTenantsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MultiTenantOrganizationTenantsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MultiTenantOrganizationTenantsRequestBuilderGetQueryParameters +} +// MultiTenantOrganizationTenantsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MultiTenantOrganizationTenantsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByMultiTenantOrganizationMemberId provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity. +func (m *MultiTenantOrganizationTenantsRequestBuilder) ByMultiTenantOrganizationMemberId(multiTenantOrganizationMemberId string)(*MultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if multiTenantOrganizationMemberId != "" { + urlTplParams["multiTenantOrganizationMember%2Did"] = multiTenantOrganizationMemberId + } + return NewMultiTenantOrganizationTenantsMultiTenantOrganizationMemberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewMultiTenantOrganizationTenantsRequestBuilderInternal instantiates a new TenantsRequestBuilder and sets the default values. +func NewMultiTenantOrganizationTenantsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MultiTenantOrganizationTenantsRequestBuilder) { + m := &MultiTenantOrganizationTenantsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization/tenants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewMultiTenantOrganizationTenantsRequestBuilder instantiates a new TenantsRequestBuilder and sets the default values. +func NewMultiTenantOrganizationTenantsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MultiTenantOrganizationTenantsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMultiTenantOrganizationTenantsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *MultiTenantOrganizationTenantsRequestBuilder) Count()(*MultiTenantOrganizationTenantsCountRequestBuilder) { + return NewMultiTenantOrganizationTenantsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get tenants from tenantRelationships +func (m *MultiTenantOrganizationTenantsRequestBuilder) Get(ctx context.Context, requestConfiguration *MultiTenantOrganizationTenantsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationMemberCollectionResponseable, 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.CreateMultiTenantOrganizationMemberCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationMemberCollectionResponseable), nil +} +// Post create new navigation property to tenants for tenantRelationships +func (m *MultiTenantOrganizationTenantsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationMemberable, requestConfiguration *MultiTenantOrganizationTenantsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationMemberable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMultiTenantOrganizationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationMemberable), nil +} +// ToGetRequestInformation get tenants from tenantRelationships +func (m *MultiTenantOrganizationTenantsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MultiTenantOrganizationTenantsRequestBuilderGetRequestConfiguration)(*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 +} +// ToPostRequestInformation create new navigation property to tenants for tenantRelationships +func (m *MultiTenantOrganizationTenantsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationMemberable, requestConfiguration *MultiTenantOrganizationTenantsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + 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/tenantrelationships/tenant_relationships_request_builder.go b/tenantrelationships/tenant_relationships_request_builder.go index 15012c7ca4c..b18899a89b3 100644 --- a/tenantrelationships/tenant_relationships_request_builder.go +++ b/tenantrelationships/tenant_relationships_request_builder.go @@ -86,6 +86,10 @@ func (m *TenantRelationshipsRequestBuilder) Get(ctx context.Context, requestConf func (m *TenantRelationshipsRequestBuilder) ManagedTenants()(*ManagedTenantsRequestBuilder) { return NewManagedTenantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// MultiTenantOrganization provides operations to manage the multiTenantOrganization property of the microsoft.graph.tenantRelationship entity. +func (m *TenantRelationshipsRequestBuilder) MultiTenantOrganization()(*MultiTenantOrganizationRequestBuilder) { + return NewMultiTenantOrganizationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Patch update tenantRelationships func (m *TenantRelationshipsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TenantRelationshipable, requestConfiguration *TenantRelationshipsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TenantRelationshipable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_extensions_request_builder.go index 728b581c97b..09ae0ab3578 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBu } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go index 6ab289178ed..9fc50d97e90 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_calendar_view_item_extensions_request_builder.go b/users/item_calendar_calendar_view_item_extensions_request_builder.go index 53834ea7576..40d6cb86504 100644 --- a/users/item_calendar_calendar_view_item_extensions_request_builder.go +++ b/users/item_calendar_calendar_view_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) Get(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) ToGetRequestInfor } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go index 23c73170dd0..ccc7c850f16 100644 --- a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_calendar_view_item_instances_item_extensions_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_extensions_request_builder.go index 1c3d987e3e9..7aca82425c8 100644 --- a/users/item_calendar_calendar_view_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) Get( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) ToGe } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_events_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_extensions_request_builder.go index aa744554213..fe2c18a1d38 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go index 8525803d237..daf06cf9f83 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRe } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_events_item_extensions_request_builder.go b/users/item_calendar_events_item_extensions_request_builder.go index 078324ed075..55d65a0007c 100644 --- a/users/item_calendar_events_item_extensions_request_builder.go +++ b/users/item_calendar_events_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarEventsItemExtensionsRequestBuilder) Get(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarEventsItemExtensionsRequestBuilder) ToGetRequestInformation } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarEventsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go index 649fe244304..c0960180701 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRe } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_events_item_instances_item_extensions_request_builder.go b/users/item_calendar_events_item_instances_item_extensions_request_builder.go index 98e9c0e9963..6d794875a05 100644 --- a/users/item_calendar_events_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_events_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) Get(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) ToGetReque } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go index be0c9e5a382..1104e3b2b4c 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go index 97e368e85a9..0af27c81f60 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_extensions_request_builder.go index cc753ff89c5..fe71f22f310 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBui } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go index 7f4c779d508..0f4c46e57b4 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_extensions_request_builder.go index 30d2dd9c986..2355181d577 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_extensions_request_builder.go index 73c5d60ae0d..a8d8aee3e9c 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go index 7ca9993614e..0e75345362e 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_groups_item_calendars_item_events_item_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_extensions_request_builder.go index dd2ec23345a..a99079c3bae 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go index d0fbede754a..27f83f9c7b8 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_extensions_request_builder.go index bdc01e09324..61992e2fe8f 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsReq } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go index a7873727adb..b2b7c67b13b 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) G } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) T } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go index 29d716b8588..04ff2d872ee 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequ } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_view_item_extensions_request_builder.go b/users/item_calendar_view_item_extensions_request_builder.go index 7236a659806..d4f3b9034d9 100644 --- a/users/item_calendar_view_item_extensions_request_builder.go +++ b/users/item_calendar_view_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarViewItemExtensionsRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarViewItemExtensionsRequestBuilder) ToGetRequestInformation(c } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarViewItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go index e5eae3fb931..1d168d765e9 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequ } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_view_item_instances_item_extensions_request_builder.go b/users/item_calendar_view_item_instances_item_extensions_request_builder.go index 5af9f3870f0..8b9d86b0448 100644 --- a/users/item_calendar_view_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_view_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) Get(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToGetRequest } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go index 357634fa7fb..4e6db951d92 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequ } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go index 9970bcfe349..750d4bce21b 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendars_item_calendar_view_item_extensions_request_builder.go b/users/item_calendars_item_calendar_view_item_extensions_request_builder.go index 2b1fdbe0952..6f62cef747f 100644 --- a/users/item_calendars_item_calendar_view_item_extensions_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) Get(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) ToGetRequest } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go index 6b51a383164..2353a2a0878 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendars_item_calendar_view_item_instances_item_extensions_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_extensions_request_builder.go index d1b5ce3f731..ca41b8c6f7d 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_extensions_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_extensions_request_builder.go index 3851ad4c35e..80bd5a52f69 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBui } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go index ec6223c4511..7bcaee3a8e2 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendars_item_events_item_extensions_request_builder.go b/users/item_calendars_item_events_item_extensions_request_builder.go index ea7d6125731..fac5e5dbe43 100644 --- a/users/item_calendars_item_events_item_extensions_request_builder.go +++ b/users/item_calendars_item_events_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) Get(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) ToGetRequestInform } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExtensionsRequestBuilderPostRequestConfiguration)(*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_extensions_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go index 7c817105916..68708a108c9 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendars_item_events_item_instances_item_extensions_request_builder.go b/users/item_calendars_item_events_item_instances_item_extensions_request_builder.go index 64bd26dce99..daedd5c66d4 100644 --- a/users/item_calendars_item_events_item_instances_item_extensions_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) Get(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) ToGet } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_chats_item_permission_grants_item_get_member_groups_request_builder.go b/users/item_chats_item_permission_grants_item_get_member_groups_request_builder.go index f34d78de6b2..e81eb36242d 100644 --- a/users/item_chats_item_permission_grants_item_get_member_groups_request_builder.go +++ b/users/item_chats_item_permission_grants_item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemChatsItemPermissionGrantsItemGetMemberGroupsRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewItemChatsItemPermissionGrantsItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemChatsItemPermissionGrantsItemGetMemberGroupsRequestBuilder) Post(ct } return res.(ItemChatsItemPermissionGrantsItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemChatsItemPermissionGrantsItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemPermissionGrantsItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemChatsItemPermissionGrantsItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_cloud_p_cs_bulk_resize_request_builder.go b/users/item_cloud_p_cs_bulk_resize_request_builder.go index b7f019dbc26..37f89fd4ff8 100644 --- a/users/item_cloud_p_cs_bulk_resize_request_builder.go +++ b/users/item_cloud_p_cs_bulk_resize_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsBulkResizeRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemCloudPCsBulkResizeRequestBuilderInternal(urlParams, requestAdapter) } // Post perform a bulk resize action to resize a group of cloudPCs that have successfully passed validation. If any devices cannot be resized, those devices will indicate 'resize failed'. The remaining devices will be provisioned for the resize process. +// Deprecated: The bulkResize action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkResize on 2023-05-24 and will be removed 2023-09-24 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/cloudpc-bulkresize?view=graph-rest-1.0 @@ -53,6 +54,7 @@ func (m *ItemCloudPCsBulkResizeRequestBuilder) Post(ctx context.Context, body It return res.(ItemCloudPCsBulkResizeResponseable), nil } // ToPostRequestInformation perform a bulk resize action to resize a group of cloudPCs that have successfully passed validation. If any devices cannot be resized, those devices will indicate 'resize failed'. The remaining devices will be provisioned for the resize process. +// Deprecated: The bulkResize action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkResize on 2023-05-24 and will be removed 2023-09-24 func (m *ItemCloudPCsBulkResizeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCloudPCsBulkResizePostRequestBodyable, requestConfiguration *ItemCloudPCsBulkResizeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_devices_item_get_member_groups_request_builder.go b/users/item_devices_item_get_member_groups_request_builder.go index 416965855a1..a2a57b7ce48 100644 --- a/users/item_devices_item_get_member_groups_request_builder.go +++ b/users/item_devices_item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemDevicesItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapt urlParams["request-raw-url"] = rawUrl return NewItemDevicesItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemDevicesItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, } return res.(ItemDevicesItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemDevicesItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDevicesItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemDevicesItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_events_item_exception_occurrences_item_extensions_request_builder.go b/users/item_events_item_exception_occurrences_item_extensions_request_builder.go index 3abab99b221..680bbb50050 100644 --- a/users/item_events_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRe } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go index 644075720da..cd6138795a2 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBui } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_events_item_extensions_request_builder.go b/users/item_events_item_extensions_request_builder.go index 4ff35d97325..4760be05d30 100644 --- a/users/item_events_item_extensions_request_builder.go +++ b/users/item_events_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemEventsItemExtensionsRequestBuilder) Get(ctx context.Context, reques } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemEventsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx con } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemEventsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go index 4ec7f5c6ffd..8dfcc5629e0 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBui } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_events_item_instances_item_extensions_request_builder.go b/users/item_events_item_instances_item_extensions_request_builder.go index 91884fff718..0472895e726 100644 --- a/users/item_events_item_instances_item_extensions_request_builder.go +++ b/users/item_events_item_instances_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) ToGetRequestInform } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_get_member_groups_request_builder.go b/users/item_get_member_groups_request_builder.go index eb724cf21bf..eb82db59421 100644 --- a/users/item_get_member_groups_request_builder.go +++ b/users/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go index 33ef3935f75..b1ffc0b6844 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects attached to a message. +// ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects. type ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -72,10 +72,10 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of attachment objects attached to a message. +// Get retrieve a list of attachment objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-list-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0 func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -116,7 +116,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } -// ToGetRequestInformation retrieve a list of attachment objects attached to a message. +// ToGetRequestInformation retrieve a list of attachment objects. func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_extensions_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_extensions_request_builder.go index 606823ae098..e7e1c6136ab 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_extensions_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilderPostRequestConfiguration)(*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 29957b13f60..16ec64db4f0 100644 --- a/users/item_mail_folders_item_child_folders_request_builder.go +++ b/users/item_mail_folders_item_child_folders_request_builder.go @@ -100,10 +100,10 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderCollectionResponseable), nil } -// Post use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. +// Post create a new mailSearchFolder in the specified user's mailbox. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/mailfolder-post-childfolders?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/mailsearchfolder-post?view=graph-rest-1.0 func (m *ItemMailFoldersItemChildFoldersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersItemChildFoldersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -138,7 +138,7 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ToGetRequestInformation( } return requestInfo, nil } -// ToPostRequestInformation use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. +// ToPostRequestInformation create a new mailSearchFolder in the specified user's mailbox. func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersItemChildFoldersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_mail_folders_item_messages_item_attachments_request_builder.go b/users/item_mail_folders_item_messages_item_attachments_request_builder.go index 26b78c26cf8..dc4a222ddc6 100644 --- a/users/item_mail_folders_item_messages_item_attachments_request_builder.go +++ b/users/item_mail_folders_item_messages_item_attachments_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects attached to a message. +// ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects. type ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -72,10 +72,10 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Count()(*Item func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of attachment objects attached to a message. +// Get retrieve a list of attachment objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-list-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0 func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -116,7 +116,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Post(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } -// ToGetRequestInformation retrieve a list of attachment objects attached to a message. +// ToGetRequestInformation retrieve a list of attachment objects. func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_mail_folders_item_messages_item_extensions_request_builder.go b/users/item_mail_folders_item_messages_item_extensions_request_builder.go index ac0b68ebbd7..3fda5a3e155 100644 --- a/users/item_mail_folders_item_messages_item_extensions_request_builder.go +++ b/users/item_mail_folders_item_messages_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) Get(ctx contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) ToGetRequestIn } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_managed_devices_bulk_reprovision_cloud_pc_request_builder.go b/users/item_managed_devices_bulk_reprovision_cloud_pc_request_builder.go index 4f1cad01f2a..e52840aba3e 100644 --- a/users/item_managed_devices_bulk_reprovision_cloud_pc_request_builder.go +++ b/users/item_managed_devices_bulk_reprovision_cloud_pc_request_builder.go @@ -32,6 +32,7 @@ func NewItemManagedDevicesBulkReprovisionCloudPcRequestBuilder(rawUrl string, re return NewItemManagedDevicesBulkReprovisionCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post bulk reprovision a set of Cloud PC devices with Intune managed device IDs. +// Deprecated: The bulkReprovisionCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkReprovisionCloudPc on 2023-05-24 and will be removed 2023-09-24 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/manageddevice-bulkreprovisioncloudpc?view=graph-rest-1.0 @@ -54,6 +55,7 @@ func (m *ItemManagedDevicesBulkReprovisionCloudPcRequestBuilder) Post(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcBulkRemoteActionResultable), nil } // ToPostRequestInformation bulk reprovision a set of Cloud PC devices with Intune managed device IDs. +// Deprecated: The bulkReprovisionCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkReprovisionCloudPc on 2023-05-24 and will be removed 2023-09-24 func (m *ItemManagedDevicesBulkReprovisionCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesBulkReprovisionCloudPcPostRequestBodyable, requestConfiguration *ItemManagedDevicesBulkReprovisionCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_managed_devices_bulk_restore_cloud_pc_request_builder.go b/users/item_managed_devices_bulk_restore_cloud_pc_request_builder.go index 68aab216240..563da4a130d 100644 --- a/users/item_managed_devices_bulk_restore_cloud_pc_request_builder.go +++ b/users/item_managed_devices_bulk_restore_cloud_pc_request_builder.go @@ -32,6 +32,7 @@ func NewItemManagedDevicesBulkRestoreCloudPcRequestBuilder(rawUrl string, reques return NewItemManagedDevicesBulkRestoreCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post restore multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices and a restore point date and time. +// Deprecated: The bulkRestoreCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkRestoreCloudPc on 2023-05-24 and will be removed 2023-09-24 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/manageddevice-bulkrestorecloudpc?view=graph-rest-1.0 @@ -54,6 +55,7 @@ func (m *ItemManagedDevicesBulkRestoreCloudPcRequestBuilder) Post(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcBulkRemoteActionResultable), nil } // ToPostRequestInformation restore multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices and a restore point date and time. +// Deprecated: The bulkRestoreCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkRestoreCloudPc on 2023-05-24 and will be removed 2023-09-24 func (m *ItemManagedDevicesBulkRestoreCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesBulkRestoreCloudPcPostRequestBodyable, requestConfiguration *ItemManagedDevicesBulkRestoreCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_managed_devices_item_reprovision_cloud_pc_request_builder.go b/users/item_managed_devices_item_reprovision_cloud_pc_request_builder.go index 37d4b14fa5c..74e22a65796 100644 --- a/users/item_managed_devices_item_reprovision_cloud_pc_request_builder.go +++ b/users/item_managed_devices_item_reprovision_cloud_pc_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemReprovisionCloudPcRequestBuilder(rawUrl string, re return NewItemManagedDevicesItemReprovisionCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post reprovision a Cloud PC with an Intune managed device ID. +// Deprecated: The reprovisionCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use reprovision instead as of 2023-07/reprovisionCloudPc on 2023-07-17 and will be removed 2023-09-30 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/manageddevice-reprovisioncloudpc?view=graph-rest-1.0 @@ -50,6 +51,7 @@ func (m *ItemManagedDevicesItemReprovisionCloudPcRequestBuilder) Post(ctx contex return nil } // ToPostRequestInformation reprovision a Cloud PC with an Intune managed device ID. +// Deprecated: The reprovisionCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use reprovision instead as of 2023-07/reprovisionCloudPc on 2023-07-17 and will be removed 2023-09-30 func (m *ItemManagedDevicesItemReprovisionCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemReprovisionCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_managed_devices_item_restore_cloud_pc_request_builder.go b/users/item_managed_devices_item_restore_cloud_pc_request_builder.go index 2a8a354fbd2..bcb7c9a446f 100644 --- a/users/item_managed_devices_item_restore_cloud_pc_request_builder.go +++ b/users/item_managed_devices_item_restore_cloud_pc_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemRestoreCloudPcRequestBuilder(rawUrl string, reques return NewItemManagedDevicesItemRestoreCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post restore a Cloud PC device to a previous state with an Intune managed device ID. +// Deprecated: The restoreCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use restore instead as of 2023-07/restoreCloudPc on 2023-07-17 and will be removed 2023-09-30 // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/manageddevice-restorecloudpc?view=graph-rest-1.0 @@ -50,6 +51,7 @@ func (m *ItemManagedDevicesItemRestoreCloudPcRequestBuilder) Post(ctx context.Co return nil } // ToPostRequestInformation restore a Cloud PC device to a previous state with an Intune managed device ID. +// Deprecated: The restoreCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use restore instead as of 2023-07/restoreCloudPc on 2023-07-17 and will be removed 2023-09-30 func (m *ItemManagedDevicesItemRestoreCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemRestoreCloudPcPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemRestoreCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_messages_item_attachments_request_builder.go b/users/item_messages_item_attachments_request_builder.go index ee5c74428a1..6463677afb2 100644 --- a/users/item_messages_item_attachments_request_builder.go +++ b/users/item_messages_item_attachments_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemMessagesItemAttachmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects attached to a message. +// ItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects. type ItemMessagesItemAttachmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -72,10 +72,10 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) Count()(*ItemMessagesItemAtt func (m *ItemMessagesItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of attachment objects attached to a message. +// Get retrieve a list of attachment objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-list-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0 func (m *ItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -116,7 +116,7 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } -// ToGetRequestInformation retrieve a list of attachment objects attached to a message. +// ToGetRequestInformation retrieve a list of attachment objects. func (m *ItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_messages_item_extensions_request_builder.go b/users/item_messages_item_extensions_request_builder.go index 207fe0cc2a8..5b70dadf8e5 100644 --- a/users/item_messages_item_extensions_request_builder.go +++ b/users/item_messages_item_extensions_request_builder.go @@ -91,7 +91,7 @@ func (m *ItemMessagesItemExtensionsRequestBuilder) Get(ctx context.Context, requ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -129,7 +129,7 @@ func (m *ItemMessagesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx c } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemMessagesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMessagesItemExtensionsRequestBuilderPostRequestConfiguration)(*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 1be73daf04f..5d8f4111f66 100644 --- a/users/item_messages_item_value_content_request_builder.go +++ b/users/item_messages_item_value_content_request_builder.go @@ -40,7 +40,7 @@ func NewItemMessagesItemValueContentRequestBuilder(rawUrl string, requestAdapter // Get get media content for the navigation property messages from users // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0 func (m *ItemMessagesItemValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/users/item_messages_message_item_request_builder.go b/users/item_messages_message_item_request_builder.go index 7b30de89294..8050966cfc4 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://learn.microsoft.com/graph/api/message-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.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://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/message-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 { @@ -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 diff --git a/users/item_messages_request_builder.go b/users/item_messages_request_builder.go index 9bc10b3ff7f..5dfe2202fbc 100644 --- a/users/item_messages_request_builder.go +++ b/users/item_messages_request_builder.go @@ -83,7 +83,7 @@ func (m *ItemMessagesRequestBuilder) Delta()(*ItemMessagesDeltaRequestBuilder) { // Get the messages in a mailbox or folder. Read-only. Nullable. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0 func (m *ItemMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -102,7 +102,7 @@ func (m *ItemMessagesRequestBuilder) Get(ctx context.Context, requestConfigurati } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable), 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 @@ -140,7 +140,7 @@ func (m *ItemMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context } 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. func (m *ItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_online_meetings_get_all_recordings_request_builder.go b/users/item_online_meetings_get_all_recordings_request_builder.go new file mode 100644 index 00000000000..002069b68d9 --- /dev/null +++ b/users/item_online_meetings_get_all_recordings_request_builder.go @@ -0,0 +1,86 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemOnlineMeetingsGetAllRecordingsRequestBuilder provides operations to call the getAllRecordings method. +type ItemOnlineMeetingsGetAllRecordingsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemOnlineMeetingsGetAllRecordingsRequestBuilderGetQueryParameters invoke function getAllRecordings +type ItemOnlineMeetingsGetAllRecordingsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // 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"` +} +// ItemOnlineMeetingsGetAllRecordingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemOnlineMeetingsGetAllRecordingsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemOnlineMeetingsGetAllRecordingsRequestBuilderGetQueryParameters +} +// NewItemOnlineMeetingsGetAllRecordingsRequestBuilderInternal instantiates a new GetAllRecordingsRequestBuilder and sets the default values. +func NewItemOnlineMeetingsGetAllRecordingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOnlineMeetingsGetAllRecordingsRequestBuilder) { + m := &ItemOnlineMeetingsGetAllRecordingsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/getAllRecordings(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters), + } + return m +} +// NewItemOnlineMeetingsGetAllRecordingsRequestBuilder instantiates a new GetAllRecordingsRequestBuilder and sets the default values. +func NewItemOnlineMeetingsGetAllRecordingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOnlineMeetingsGetAllRecordingsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemOnlineMeetingsGetAllRecordingsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getAllRecordings +func (m *ItemOnlineMeetingsGetAllRecordingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsGetAllRecordingsRequestBuilderGetRequestConfiguration)(ItemOnlineMeetingsGetAllRecordingsResponseable, 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, CreateItemOnlineMeetingsGetAllRecordingsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemOnlineMeetingsGetAllRecordingsResponseable), nil +} +// ToGetRequestInformation invoke function getAllRecordings +func (m *ItemOnlineMeetingsGetAllRecordingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsGetAllRecordingsRequestBuilderGetRequestConfiguration)(*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_online_meetings_get_all_recordings_response.go b/users/item_online_meetings_get_all_recordings_response.go new file mode 100644 index 00000000000..dff5cbed95f --- /dev/null +++ b/users/item_online_meetings_get_all_recordings_response.go @@ -0,0 +1,88 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// ItemOnlineMeetingsGetAllRecordingsResponse +type ItemOnlineMeetingsGetAllRecordingsResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemOnlineMeetingsGetAllRecordingsResponse instantiates a new ItemOnlineMeetingsGetAllRecordingsResponse and sets the default values. +func NewItemOnlineMeetingsGetAllRecordingsResponse()(*ItemOnlineMeetingsGetAllRecordingsResponse) { + m := &ItemOnlineMeetingsGetAllRecordingsResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemOnlineMeetingsGetAllRecordingsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemOnlineMeetingsGetAllRecordingsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemOnlineMeetingsGetAllRecordingsResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemOnlineMeetingsGetAllRecordingsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCallRecordingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ItemOnlineMeetingsGetAllRecordingsResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemOnlineMeetingsGetAllRecordingsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemOnlineMeetingsGetAllRecordingsResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ItemOnlineMeetingsGetAllRecordingsResponseable +type ItemOnlineMeetingsGetAllRecordingsResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable)() +} diff --git a/users/item_online_meetings_get_all_transcripts_request_builder.go b/users/item_online_meetings_get_all_transcripts_request_builder.go new file mode 100644 index 00000000000..fdfd08dc19a --- /dev/null +++ b/users/item_online_meetings_get_all_transcripts_request_builder.go @@ -0,0 +1,86 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemOnlineMeetingsGetAllTranscriptsRequestBuilder provides operations to call the getAllTranscripts method. +type ItemOnlineMeetingsGetAllTranscriptsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemOnlineMeetingsGetAllTranscriptsRequestBuilderGetQueryParameters invoke function getAllTranscripts +type ItemOnlineMeetingsGetAllTranscriptsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // 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"` +} +// ItemOnlineMeetingsGetAllTranscriptsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemOnlineMeetingsGetAllTranscriptsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemOnlineMeetingsGetAllTranscriptsRequestBuilderGetQueryParameters +} +// NewItemOnlineMeetingsGetAllTranscriptsRequestBuilderInternal instantiates a new GetAllTranscriptsRequestBuilder and sets the default values. +func NewItemOnlineMeetingsGetAllTranscriptsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOnlineMeetingsGetAllTranscriptsRequestBuilder) { + m := &ItemOnlineMeetingsGetAllTranscriptsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/getAllTranscripts(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters), + } + return m +} +// NewItemOnlineMeetingsGetAllTranscriptsRequestBuilder instantiates a new GetAllTranscriptsRequestBuilder and sets the default values. +func NewItemOnlineMeetingsGetAllTranscriptsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOnlineMeetingsGetAllTranscriptsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemOnlineMeetingsGetAllTranscriptsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getAllTranscripts +func (m *ItemOnlineMeetingsGetAllTranscriptsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsGetAllTranscriptsRequestBuilderGetRequestConfiguration)(ItemOnlineMeetingsGetAllTranscriptsResponseable, 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, CreateItemOnlineMeetingsGetAllTranscriptsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemOnlineMeetingsGetAllTranscriptsResponseable), nil +} +// ToGetRequestInformation invoke function getAllTranscripts +func (m *ItemOnlineMeetingsGetAllTranscriptsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsGetAllTranscriptsRequestBuilderGetRequestConfiguration)(*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_online_meetings_get_all_transcripts_response.go b/users/item_online_meetings_get_all_transcripts_response.go new file mode 100644 index 00000000000..557e7b471b6 --- /dev/null +++ b/users/item_online_meetings_get_all_transcripts_response.go @@ -0,0 +1,88 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// ItemOnlineMeetingsGetAllTranscriptsResponse +type ItemOnlineMeetingsGetAllTranscriptsResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemOnlineMeetingsGetAllTranscriptsResponse instantiates a new ItemOnlineMeetingsGetAllTranscriptsResponse and sets the default values. +func NewItemOnlineMeetingsGetAllTranscriptsResponse()(*ItemOnlineMeetingsGetAllTranscriptsResponse) { + m := &ItemOnlineMeetingsGetAllTranscriptsResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemOnlineMeetingsGetAllTranscriptsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemOnlineMeetingsGetAllTranscriptsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemOnlineMeetingsGetAllTranscriptsResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemOnlineMeetingsGetAllTranscriptsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCallTranscriptFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ItemOnlineMeetingsGetAllTranscriptsResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemOnlineMeetingsGetAllTranscriptsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemOnlineMeetingsGetAllTranscriptsResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ItemOnlineMeetingsGetAllTranscriptsResponseable +type ItemOnlineMeetingsGetAllTranscriptsResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable)() +} diff --git a/users/item_online_meetings_item_recordings_call_recording_item_request_builder.go b/users/item_online_meetings_item_recordings_call_recording_item_request_builder.go index 687585f707e..3339ec1ed17 100644 --- a/users/item_online_meetings_item_recordings_call_recording_item_request_builder.go +++ b/users/item_online_meetings_item_recordings_call_recording_item_request_builder.go @@ -18,7 +18,7 @@ type ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderDeleteReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters get recordings from users +// ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. type ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,10 @@ func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) Delete } return nil } -// Get get recordings from users +// Get get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/callrecording-get?view=graph-rest-1.0 func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +127,7 @@ func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) ToDele } return requestInfo, nil } -// ToGetRequestInformation get recordings from users +// ToGetRequestInformation get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_online_meetings_item_recordings_item_content_request_builder.go b/users/item_online_meetings_item_recordings_item_content_request_builder.go index cbb45f939e6..58fa1a8648b 100644 --- a/users/item_online_meetings_item_recordings_item_content_request_builder.go +++ b/users/item_online_meetings_item_recordings_item_content_request_builder.go @@ -38,7 +38,7 @@ func NewItemOnlineMeetingsItemRecordingsItemContentRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewItemOnlineMeetingsItemRecordingsItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get get content for the navigation property recordings from users +// Get the content of the recording. Read-only. func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -57,7 +57,7 @@ func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) Get(ctx cont } return res.([]byte), nil } -// Put update content for the navigation property recordings in users +// Put the content of the recording. Read-only. func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -76,7 +76,7 @@ func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) Put(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } -// ToGetRequestInformation get content for the navigation property recordings from users +// ToGetRequestInformation the content of the recording. Read-only. func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -88,7 +88,7 @@ func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) ToGetRequest } return requestInfo, nil } -// ToPutRequestInformation update content for the navigation property recordings in users +// ToPutRequestInformation the content of the recording. Read-only. func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_online_meetings_item_recordings_request_builder.go b/users/item_online_meetings_item_recordings_request_builder.go index 9d6bd3db15e..9c4cfd42684 100644 --- a/users/item_online_meetings_item_recordings_request_builder.go +++ b/users/item_online_meetings_item_recordings_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOnlineMeetingsItemRecordingsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOnlineMeetingsItemRecordingsRequestBuilderGetQueryParameters get recordings from users +// ItemOnlineMeetingsItemRecordingsRequestBuilderGetQueryParameters get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. type ItemOnlineMeetingsItemRecordingsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewItemOnlineMeetingsItemRecordingsRequestBuilder(rawUrl string, requestAda func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) Count()(*ItemOnlineMeetingsItemRecordingsCountRequestBuilder) { return NewItemOnlineMeetingsItemRecordingsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get recordings from users +// Get get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) Post(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } -// ToGetRequestInformation get recordings from users +// ToGetRequestInformation get a callRecording object associated with an onlineMeeting. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of text associated with the recording. func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_online_meetings_item_registration_request_builder.go b/users/item_online_meetings_item_registration_request_builder.go index 8286fc41aca..371d2206109 100644 --- a/users/item_online_meetings_item_registration_request_builder.go +++ b/users/item_online_meetings_item_registration_request_builder.go @@ -58,10 +58,10 @@ func NewItemOnlineMeetingsItemRegistrationRequestBuilder(rawUrl string, requestA func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) CustomQuestions()(*ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. +// Delete disable and delete the externalMeetingRegistration of an onlineMeeting. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -125,7 +125,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Patch(ctx context.Con func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Registrants()(*ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. +// ToDeleteRequestInformation disable and delete the externalMeetingRegistration of an onlineMeeting. func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_online_meetings_item_virtual_appointment_request_builder.go b/users/item_online_meetings_item_virtual_appointment_request_builder.go deleted file mode 100644 index baf4afa8c2b..00000000000 --- a/users/item_online_meetings_item_virtual_appointment_request_builder.go +++ /dev/null @@ -1,170 +0,0 @@ -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" -) - -// ItemOnlineMeetingsItemVirtualAppointmentRequestBuilder provides operations to manage the virtualAppointment property of the microsoft.graph.onlineMeeting entity. -type ItemOnlineMeetingsItemVirtualAppointmentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderGetQueryParameters read the properties and relationships of a virtualAppointment object. -type ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderGetQueryParameters -} -// ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemOnlineMeetingsItemVirtualAppointmentRequestBuilderInternal instantiates a new VirtualAppointmentRequestBuilder and sets the default values. -func NewItemOnlineMeetingsItemVirtualAppointmentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOnlineMeetingsItemVirtualAppointmentRequestBuilder) { - m := &ItemOnlineMeetingsItemVirtualAppointmentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/virtualAppointment{?%24select,%24expand}", pathParameters), - } - return m -} -// NewItemOnlineMeetingsItemVirtualAppointmentRequestBuilder instantiates a new VirtualAppointmentRequestBuilder and sets the default values. -func NewItemOnlineMeetingsItemVirtualAppointmentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOnlineMeetingsItemVirtualAppointmentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemOnlineMeetingsItemVirtualAppointmentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-delete?view=graph-rest-1.0 -func (m *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get read the properties and relationships of a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-get?view=graph-rest-1.0 -func (m *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, 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.CreateVirtualAppointmentFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable), nil -} -// Patch create a new virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/virtualappointment-put?view=graph-rest-1.0 -func (m *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, requestConfiguration *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, 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.CreateVirtualAppointmentFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable), nil -} -// ToDeleteRequestInformation delete a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderDeleteRequestConfiguration)(*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 a virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderGetRequestConfiguration)(*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 create a new virtualAppointment object. -// Deprecated: The Virtual appointment resource is deprecated and will stop returning data on May 31, 2023. Existing apps that use this feature should be updated to the new getVirtualAppointmentJoinWebUrl API. as of 2023-04/VirtualAppointment on 2023-04-04 and will be removed 2023-05-31 -func (m *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentable, requestConfiguration *ItemOnlineMeetingsItemVirtualAppointmentRequestBuilderPatchRequestConfiguration)(*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/users/item_online_meetings_online_meeting_item_request_builder.go b/users/item_online_meetings_online_meeting_item_request_builder.go index c89c7d05acf..d45a0f94cb8 100644 --- a/users/item_online_meetings_online_meeting_item_request_builder.go +++ b/users/item_online_meetings_online_meeting_item_request_builder.go @@ -199,7 +199,3 @@ func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) ToPatchRequestInform func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) Transcripts()(*ItemOnlineMeetingsItemTranscriptsRequestBuilder) { return NewItemOnlineMeetingsItemTranscriptsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// VirtualAppointment provides operations to manage the virtualAppointment property of the microsoft.graph.onlineMeeting entity. -func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) VirtualAppointment()(*ItemOnlineMeetingsItemVirtualAppointmentRequestBuilder) { - return NewItemOnlineMeetingsItemVirtualAppointmentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/users/item_online_meetings_request_builder.go b/users/item_online_meetings_request_builder.go index b4af0a08e53..0716232b9d6 100644 --- a/users/item_online_meetings_request_builder.go +++ b/users/item_online_meetings_request_builder.go @@ -100,6 +100,14 @@ func (m *ItemOnlineMeetingsRequestBuilder) Get(ctx context.Context, requestConfi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingCollectionResponseable), nil } +// GetAllRecordings provides operations to call the getAllRecordings method. +func (m *ItemOnlineMeetingsRequestBuilder) GetAllRecordings()(*ItemOnlineMeetingsGetAllRecordingsRequestBuilder) { + return NewItemOnlineMeetingsGetAllRecordingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// GetAllTranscripts provides operations to call the getAllTranscripts method. +func (m *ItemOnlineMeetingsRequestBuilder) GetAllTranscripts()(*ItemOnlineMeetingsGetAllTranscriptsRequestBuilder) { + return NewItemOnlineMeetingsGetAllTranscriptsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create an online meeting on behalf of a user. // [Find more info here] // diff --git a/users/item_owned_objects_directory_object_item_request_builder.go b/users/item_owned_objects_directory_object_item_request_builder.go index 713efb6b645..b7643fb4be7 100644 --- a/users/item_owned_objects_directory_object_item_request_builder.go +++ b/users/item_owned_objects_directory_object_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOwnedObjectsDirectoryObjectItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOwnedObjectsDirectoryObjectItemRequestBuilderGetQueryParameters directory objects that are owned by the user. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ItemOwnedObjectsDirectoryObjectItemRequestBuilderGetQueryParameters directory objects that are owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). type ItemOwnedObjectsDirectoryObjectItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewItemOwnedObjectsDirectoryObjectItemRequestBuilder(rawUrl string, request urlParams["request-raw-url"] = rawUrl return NewItemOwnedObjectsDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get directory objects that are owned by the user. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// Get directory objects that are owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -71,7 +71,7 @@ func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) GraphGroup()(*ItemOw func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) GraphServicePrincipal()(*ItemOwnedObjectsItemGraphServicePrincipalRequestBuilder) { return NewItemOwnedObjectsItemGraphServicePrincipalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation directory objects that are owned by the user. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ToGetRequestInformation directory objects that are owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_owned_objects_request_builder.go b/users/item_owned_objects_request_builder.go index 75a8baacbc6..84afe55672b 100644 --- a/users/item_owned_objects_request_builder.go +++ b/users/item_owned_objects_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOwnedObjectsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOwnedObjectsRequestBuilderGetQueryParameters directory objects that are owned by the user. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ItemOwnedObjectsRequestBuilderGetQueryParameters directory objects that are owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). type ItemOwnedObjectsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -67,7 +67,7 @@ func NewItemOwnedObjectsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7d func (m *ItemOwnedObjectsRequestBuilder) Count()(*ItemOwnedObjectsCountRequestBuilder) { return NewItemOwnedObjectsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get directory objects that are owned by the user. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// Get directory objects that are owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/user-list-ownedobjects?view=graph-rest-1.0 @@ -101,7 +101,7 @@ func (m *ItemOwnedObjectsRequestBuilder) GraphGroup()(*ItemOwnedObjectsGraphGrou func (m *ItemOwnedObjectsRequestBuilder) GraphServicePrincipal()(*ItemOwnedObjectsGraphServicePrincipalRequestBuilder) { return NewItemOwnedObjectsGraphServicePrincipalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation directory objects that are owned by the user. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// ToGetRequestInformation directory objects that are owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). func (m *ItemOwnedObjectsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_permission_grants_item_get_member_groups_request_builder.go b/users/item_permission_grants_item_get_member_groups_request_builder.go index 133bf453650..c6e10caa905 100644 --- a/users/item_permission_grants_item_get_member_groups_request_builder.go +++ b/users/item_permission_grants_item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemPermissionGrantsItemGetMemberGroupsRequestBuilder(rawUrl string, req urlParams["request-raw-url"] = rawUrl return NewItemPermissionGrantsItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *ItemPermissionGrantsItemGetMemberGroupsRequestBuilder) Post(ctx context } return res.(ItemPermissionGrantsItemGetMemberGroupsResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. func (m *ItemPermissionGrantsItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPermissionGrantsItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemPermissionGrantsItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_permission_grants_request_builder.go b/users/item_permission_grants_request_builder.go index 5185a4452cb..ba4f0f906e0 100644 --- a/users/item_permission_grants_request_builder.go +++ b/users/item_permission_grants_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemPermissionGrantsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemPermissionGrantsRequestBuilderGetQueryParameters get permissionGrants from users +// ItemPermissionGrantsRequestBuilderGetQueryParameters list all resource-specific permission grants of a user. This list specifies the Azure Active Directory apps that have access to the user, along with the corresponding kind of resource-specific access that each app has. type ItemPermissionGrantsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -78,7 +78,10 @@ func (m *ItemPermissionGrantsRequestBuilder) Count()(*ItemPermissionGrantsCountR func (m *ItemPermissionGrantsRequestBuilder) Delta()(*ItemPermissionGrantsDeltaRequestBuilder) { return NewItemPermissionGrantsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get permissionGrants from users +// Get list all resource-specific permission grants of a user. This list specifies the Azure Active Directory apps that have access to the user, along with the corresponding kind of resource-specific access that each app has. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/user-list-permissiongrants?view=graph-rest-1.0 func (m *ItemPermissionGrantsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPermissionGrantsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +127,7 @@ func (m *ItemPermissionGrantsRequestBuilder) Post(ctx context.Context, body ie23 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable), nil } -// ToGetRequestInformation get permissionGrants from users +// ToGetRequestInformation list all resource-specific permission grants of a user. This list specifies the Azure Active Directory apps that have access to the user, along with the corresponding kind of resource-specific access that each app has. func (m *ItemPermissionGrantsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPermissionGrantsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_permission_grants_resource_specific_permission_grant_item_request_builder.go b/users/item_permission_grants_resource_specific_permission_grant_item_request_builder.go index f1ed473f5ea..199803cc2b8 100644 --- a/users/item_permission_grants_resource_specific_permission_grant_item_request_builder.go +++ b/users/item_permission_grants_resource_specific_permission_grant_item_request_builder.go @@ -18,7 +18,7 @@ type ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderDelete // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters get permissionGrants from users +// ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters list all resource-specific permission grants of a user. type ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -78,7 +78,7 @@ func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) } return nil } -// Get get permissionGrants from users +// Get list all resource-specific permission grants of a user. func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -140,7 +140,7 @@ func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) } return requestInfo, nil } -// ToGetRequestInformation get permissionGrants from users +// ToGetRequestInformation list all resource-specific permission grants of a user. func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_presence_request_builder.go b/users/item_presence_request_builder.go index d7f5d8e511f..d51d5324245 100644 --- a/users/item_presence_request_builder.go +++ b/users/item_presence_request_builder.go @@ -18,7 +18,7 @@ type ItemPresenceRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemPresenceRequestBuilderGetQueryParameters set a presence status message for a user. An optional expiration date and time can be supplied. +// ItemPresenceRequestBuilderGetQueryParameters get a user's presence information. type ItemPresenceRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -78,10 +78,10 @@ func (m *ItemPresenceRequestBuilder) Delete(ctx context.Context, requestConfigur } return nil } -// Get set a presence status message for a user. An optional expiration date and time can be supplied. +// Get get a user's presence information. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/presence-get?view=graph-rest-1.0 func (m *ItemPresenceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Presenceable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -143,7 +143,7 @@ func (m *ItemPresenceRequestBuilder) ToDeleteRequestInformation(ctx context.Cont } return requestInfo, nil } -// ToGetRequestInformation set a presence status message for a user. An optional expiration date and time can be supplied. +// ToGetRequestInformation get a user's presence information. func (m *ItemPresenceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate