From 0beb875ebc3fcf1fe72312ff62c5e412a5425688 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 21 Feb 2023 12:54:01 +0000 Subject: [PATCH 1/2] Update generated files with build 106293 --- .../item/replies/replies_request_builder.rb | 4 +- .../item/messages/messages_request_builder.rb | 4 +- .../microsoft_graph_invite_request_builder.rb | 4 +- .../microsoft_graph_range_request_builder.rb | 4 +- .../microsoft_graph_range_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../microsoft_graph_reply_request_builder.rb | 4 +- .../microsoft_graph_reply_request_builder.rb | 4 +- .../microsoft_graph_reply_request_builder.rb | 4 +- .../item/posts/posts_request_builder.rb | 6 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../item/replies/replies_request_builder.rb | 4 +- .../item/replies/replies_request_builder.rb | 4 +- .../microsoft_graph_reply_request_builder.rb | 4 +- .../microsoft_graph_reply_request_builder.rb | 4 +- .../microsoft_graph_reply_request_builder.rb | 4 +- .../item/posts/posts_request_builder.rb | 6 +- .../item/history/history_request_builder.rb | 6 +- lib/kiota-lock.json | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../item/replies/replies_request_builder.rb | 4 +- .../item/messages/messages_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../item/replies/replies_request_builder.rb | 4 +- .../item/replies/replies_request_builder.rb | 4 +- lib/me/messages/messages_request_builder.rb | 4 +- .../access_review_history_definition.rb | 2 +- lib/models/access_review_instance.rb | 2 +- lib/models/administrative_unit.rb | 2 +- lib/models/agreement_collection_response.rb | 22 +- .../anonymous_guest_conversation_member.rb | 6 +- lib/models/app_role_assignment.rb | 2 +- lib/models/app_scope.rb | 2 +- lib/models/application.rb | 2 +- lib/models/application_template.rb | 2 +- lib/models/authentication_methods_policy.rb | 2 +- ...ation_services_user_conversation_member.rb | 65 ++++ ...conversation_member_collection_response.rb | 64 ++++ lib/models/cloud_communications.rb | 2 +- lib/models/conversation_member.rb | 2 + lib/models/delegated_admin_customer.rb | 2 +- lib/models/delegated_admin_relationship.rb | 2 +- lib/models/deleted_team.rb | 64 ++++ .../deleted_team_collection_response.rb | 64 ++++ lib/models/device.rb | 2 +- lib/models/drive.rb | 2 +- lib/models/education_assignment.rb | 2 +- lib/models/education_assignment_defaults.rb | 2 +- lib/models/education_assignment_settings.rb | 2 +- lib/models/education_class.rb | 2 +- lib/models/entity.rb | 4 + lib/models/entity_type.rb | 1 + .../external_connection.rb | 2 +- lib/models/group.rb | 8 +- lib/models/identity_api_connector.rb | 2 +- lib/models/identity_provider_base.rb | 2 +- lib/models/identity_user_flow.rb | 2 +- lib/models/lobby_bypass_scope.rb | 13 - lib/models/lobby_bypass_settings.rb | 20 -- lib/models/meeting_chat_mode.rb | 10 - ...rosoft_account_user_conversation_member.rb | 6 +- lib/models/models.rb | 9 +- lib/models/online_meeting.rb | 40 --- lib/models/online_meeting_presenters.rb | 11 - lib/models/post.rb | 2 +- lib/models/print_operation.rb | 2 +- lib/models/print_service.rb | 2 +- lib/models/risk_detection.rb | 2 +- lib/models/risky_service_principal.rb | 2 +- lib/models/risky_user.rb | 2 +- lib/models/role_definition.rb | 2 + lib/models/scheduling_group.rb | 2 +- lib/models/search_content.rb | 9 + lib/models/search_request.rb | 40 +++ .../ediscovery_noncustodial_data_source.rb | 2 +- lib/models/service_principal.rb | 2 +- lib/models/share_point_one_drive_options.rb | 102 ++++++ lib/models/shift.rb | 2 +- ...e_for_business_user_conversation_member.rb | 12 +- lib/models/skype_user_conversation_member.rb | 6 +- lib/models/subscription.rb | 6 +- lib/models/teamwork.rb | 20 ++ lib/models/time_off.rb | 2 +- lib/models/time_off_reason.rb | 2 +- lib/models/user.rb | 6 +- .../item/replies/replies_request_builder.rb | 4 +- .../item/replies/replies_request_builder.rb | 4 +- lib/teamwork/deleted_teams/count/count.rb | 0 .../count/count_request_builder.rb | 118 +++++++ lib/teamwork/deleted_teams/deleted_teams.rb | 0 .../deleted_teams_request_builder.rb | 207 ++++++++++++ .../deleted_teams/item/channels/channels.rb | 0 .../item/channels/channels_request_builder.rb | 213 ++++++++++++ .../item/channels/count/count.rb | 0 .../channels/count/count_request_builder.rb | 124 +++++++ .../item/channel_item_request_builder.rb | 317 ++++++++++++++++++ .../item/files_folder/content/content.rb | 0 .../content/content_request_builder.rb | 144 ++++++++ .../item/files_folder/files_folder.rb | 0 .../files_folder_request_builder.rb | 134 ++++++++ ...f36aff175d061ca4996b8ebe6fa684c673ff88b.rb | 114 +++++++ ...2f09f0aa3c5ec4e2176790cca62f27819ff9897.rb | 97 ++++++ ...51b36baa914f57f3b0c51db1cfca75bc34f6227.rb | 1 + .../deleted_teams/item/channels/item/item.rb | 0 .../item/channels/item/members/count/count.rb | 0 .../members/count/count_request_builder.rb | 130 +++++++ ...onversation_member_item_request_builder.rb | 221 ++++++++++++ .../item/channels/item/members/item/item.rb | 0 .../item/channels/item/members/members.rb | 0 .../item/members/members_request_builder.rb | 219 ++++++++++++ .../add_post_request_body.rb | 101 ++++++ .../microsoft_graph_add/add_response.rb | 84 +++++ .../microsoft_graph_add.rb | 2 + .../microsoft_graph_add_request_builder.rb | 103 ++++++ .../channels/item/messages/count/count.rb | 0 .../messages/count/count_request_builder.rb | 130 +++++++ .../item/chat_message_item_request_builder.rb | 269 +++++++++++++++ .../item/hosted_contents/count/count.rb | 0 .../count/count_request_builder.rb | 136 ++++++++ .../item/hosted_contents/hosted_contents.rb | 0 .../hosted_contents_request_builder.rb | 219 ++++++++++++ ...age_hosted_content_item_request_builder.rb | 227 +++++++++++++ .../item/hosted_contents/item/item.rb | 0 .../item/channels/item/messages/item/item.rb | 0 .../microsoft_graph_soft_delete.rb | 0 ...osoft_graph_soft_delete_request_builder.rb | 100 ++++++ .../microsoft_graph_undo_soft_delete.rb | 0 ..._graph_undo_soft_delete_request_builder.rb | 100 ++++++ .../item/messages/item/replies/count/count.rb | 0 .../replies/count/count_request_builder.rb | 136 ++++++++ .../item/chat_message_item_request_builder.rb | 257 ++++++++++++++ .../item/hosted_contents/count/count.rb | 0 .../count/count_request_builder.rb | 142 ++++++++ .../item/hosted_contents/hosted_contents.rb | 0 .../hosted_contents_request_builder.rb | 225 +++++++++++++ ...age_hosted_content_item_request_builder.rb | 233 +++++++++++++ .../replies/item/hosted_contents/item/item.rb | 0 .../item/messages/item/replies/item/item.rb | 0 .../microsoft_graph_soft_delete.rb | 0 ...osoft_graph_soft_delete_request_builder.rb | 106 ++++++ .../microsoft_graph_undo_soft_delete.rb | 0 ..._graph_undo_soft_delete_request_builder.rb | 106 ++++++ .../microsoft_graph_delta/delta_response.rb | 90 +++++ .../microsoft_graph_delta.rb | 1 + .../microsoft_graph_delta_request_builder.rb | 161 +++++++++ .../item/messages/item/replies/replies.rb | 0 .../item/replies/replies_request_builder.rb | 225 +++++++++++++ .../item/channels/item/messages/messages.rb | 0 .../item/messages/messages_request_builder.rb | 219 ++++++++++++ .../microsoft_graph_delta/delta_response.rb | 84 +++++ .../microsoft_graph_delta.rb | 1 + .../microsoft_graph_delta_request_builder.rb | 155 +++++++++ .../microsoft_graph_complete_migration.rb | 0 ...raph_complete_migration_request_builder.rb | 94 ++++++ .../microsoft_graph_provision_email.rb | 0 ...t_graph_provision_email_request_builder.rb | 96 ++++++ .../microsoft_graph_remove_email.rb | 0 ...soft_graph_remove_email_request_builder.rb | 94 ++++++ .../item/shared_with_teams/count/count.rb | 0 .../count/count_request_builder.rb | 130 +++++++ .../item/allowed_members/allowed_members.rb | 0 .../allowed_members_request_builder.rb | 170 ++++++++++ .../item/allowed_members/count/count.rb | 0 .../count/count_request_builder.rb | 136 ++++++++ ...onversation_member_item_request_builder.rb | 137 ++++++++ .../item/allowed_members/item/item.rb | 0 .../item/shared_with_teams/item/item.rb | 0 ..._channel_team_info_item_request_builder.rb | 239 +++++++++++++ .../shared_with_teams/shared_with_teams.rb | 0 .../shared_with_teams_request_builder.rb | 213 ++++++++++++ .../item/channels/item/tabs/count/count.rb | 0 .../item/tabs/count/count_request_builder.rb | 130 +++++++ .../item/channels/item/tabs/item/item.rb | 0 .../item/tabs/item/teams_app/teams_app.rb | 0 .../teams_app/teams_app_request_builder.rb | 134 ++++++++ .../item/teams_tab_item_request_builder.rb | 227 +++++++++++++ .../item/channels/item/tabs/tabs.rb | 0 .../item/tabs/tabs_request_builder.rb | 213 ++++++++++++ .../get_all_messages_response.rb | 78 +++++ .../microsoft_graph_get_all_messages.rb | 1 + ..._graph_get_all_messages_request_builder.rb | 149 ++++++++ .../item/deleted_team_item_request_builder.rb | 227 +++++++++++++ lib/teamwork/deleted_teams/item/item.rb | 0 .../get_all_messages_response.rb | 72 ++++ .../microsoft_graph_get_all_messages.rb | 1 + ..._graph_get_all_messages_request_builder.rb | 143 ++++++++ lib/teamwork/teamwork_request_builder.rb | 18 + .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../item/replies/replies_request_builder.rb | 4 +- .../item/messages/messages_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../attachments_request_builder.rb | 4 +- .../item/replies/replies_request_builder.rb | 4 +- .../item/replies/replies_request_builder.rb | 4 +- .../item/messages/messages_request_builder.rb | 4 +- lib/version_information.rb | 3 +- 229 files changed, 8998 insertions(+), 318 deletions(-) create mode 100644 lib/models/azure_communication_services_user_conversation_member.rb create mode 100644 lib/models/azure_communication_services_user_conversation_member_collection_response.rb create mode 100644 lib/models/deleted_team.rb create mode 100644 lib/models/deleted_team_collection_response.rb delete mode 100644 lib/models/lobby_bypass_scope.rb delete mode 100644 lib/models/meeting_chat_mode.rb delete mode 100644 lib/models/online_meeting_presenters.rb create mode 100644 lib/models/search_content.rb create mode 100644 lib/models/share_point_one_drive_options.rb create mode 100644 lib/teamwork/deleted_teams/count/count.rb create mode 100644 lib/teamwork/deleted_teams/count/count_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/deleted_teams.rb create mode 100644 lib/teamwork/deleted_teams/deleted_teams_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/channels.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/channels_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/count/count.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/count/count_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/channel_item_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/files_folder/content/content.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/files_folder/content/content_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/files_folder/files_folder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/files_folder/files_folder_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/c1194251461b5b3c90c8db38ef36aff175d061ca4996b8ebe6fa684c673ff88b.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/item.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/members/count/count.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/members/count/count_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/members/item/conversation_member_item_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/members/item/item.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/members/members.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/members/members_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/add_post_request_body.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/add_response.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/microsoft_graph_add.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/microsoft_graph_add_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/count/count.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/count/count_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/chat_message_item_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/count/count.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/count/count_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/hosted_contents.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/hosted_contents_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/item/item.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/item.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/count/count.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/count/count_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/chat_message_item_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/count/count.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/count/count_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/hosted_contents.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/item/item.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/item.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/microsoft_graph_delta/delta_response.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/microsoft_graph_delta/microsoft_graph_delta.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/microsoft_graph_delta/microsoft_graph_delta_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/messages.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/microsoft_graph_delta/delta_response.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/microsoft_graph_delta/microsoft_graph_delta.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/messages/microsoft_graph_delta/microsoft_graph_delta_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_complete_migration/microsoft_graph_complete_migration.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_complete_migration/microsoft_graph_complete_migration_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_provision_email/microsoft_graph_provision_email.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_provision_email/microsoft_graph_provision_email_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_remove_email/microsoft_graph_remove_email.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_remove_email/microsoft_graph_remove_email_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/count/count.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/count/count_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/allowed_members.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/allowed_members_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/count/count.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/count/count_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/item/conversation_member_item_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/item/item.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/item.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/shared_with_channel_team_info_item_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/shared_with_teams.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/shared_with_teams_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/tabs/count/count.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/tabs/count/count_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/tabs/item/item.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/tabs/item/teams_app/teams_app.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/tabs/item/teams_app/teams_app_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/tabs/item/teams_tab_item_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/tabs/tabs.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/item/tabs/tabs_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/microsoft_graph_get_all_messages/get_all_messages_response.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages.rb create mode 100644 lib/teamwork/deleted_teams/item/channels/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/deleted_team_item_request_builder.rb create mode 100644 lib/teamwork/deleted_teams/item/item.rb create mode 100644 lib/teamwork/deleted_teams/microsoft_graph_get_all_messages/get_all_messages_response.rb create mode 100644 lib/teamwork/deleted_teams/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages.rb create mode 100644 lib/teamwork/deleted_teams/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages_request_builder.rb diff --git a/lib/chats/item/messages/item/replies/replies_request_builder.rb b/lib/chats/item/messages/item/replies/replies_request_builder.rb index 30ae385909..b029e6ef04 100644 --- a/lib/chats/item/messages/item/replies/replies_request_builder.rb +++ b/lib/chats/item/messages/item/replies/replies_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/chats/item/messages/messages_request_builder.rb b/lib/chats/item/messages/messages_request_builder.rb index c515542177..a7c5e59697 100644 --- a/lib/chats/item/messages/messages_request_builder.rb +++ b/lib/chats/item/messages/messages_request_builder.rb @@ -65,7 +65,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -99,7 +99,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/communications/calls/item/participants/microsoft_graph_invite/microsoft_graph_invite_request_builder.rb b/lib/communications/calls/item/participants/microsoft_graph_invite/microsoft_graph_invite_request_builder.rb index 7bd2de5f91..c14c89c012 100644 --- a/lib/communications/calls/item/participants/microsoft_graph_invite/microsoft_graph_invite_request_builder.rb +++ b/lib/communications/calls/item/participants/microsoft_graph_invite/microsoft_graph_invite_request_builder.rb @@ -42,7 +42,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Invite participants to the active call. For more information about how to handle operations, see commsOperation. + ## 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of invite_participants_operation @@ -58,7 +58,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::InviteParticipantsOperation.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invite participants to the active call. For more information about how to handle operations, see commsOperation. + ## 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/drives/item/items/item/workbook/names/item/microsoft_graph_range/microsoft_graph_range_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/microsoft_graph_range/microsoft_graph_range_request_builder.rb index 48f0067956..9e4c110534 100644 --- a/lib/drives/item/items/item/workbook/names/item/microsoft_graph_range/microsoft_graph_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/names/item/microsoft_graph_range/microsoft_graph_range_request_builder.rb @@ -48,7 +48,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Retrieve the properties and relationships of range object. + ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_range ## @@ -62,7 +62,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the properties and relationships of range object. + ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/microsoft_graph_range/microsoft_graph_range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/microsoft_graph_range/microsoft_graph_range_request_builder.rb index a4ac8442be..3296f33470 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/names/item/microsoft_graph_range/microsoft_graph_range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/microsoft_graph_range/microsoft_graph_range_request_builder.rb @@ -52,7 +52,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Retrieve the properties and relationships of range object. + ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_range ## @@ -66,7 +66,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the properties and relationships of range object. + ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## diff --git a/lib/groups/item/calendar/calendar_view/item/attachments/attachments_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/attachments/attachments_request_builder.rb index e7a2a281e6..7e83968348 100644 --- a/lib/groups/item/calendar/calendar_view/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/attachments/attachments_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb b/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb index 55ac0e8616..a3ca1cdfdc 100644 --- a/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/calendar/events/item/attachments/attachments_request_builder.rb b/lib/groups/item/calendar/events/item/attachments/attachments_request_builder.rb index bf0a3905fb..4fd00b92f3 100644 --- a/lib/groups/item/calendar/events/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/calendar/events/item/attachments/attachments_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/calendar/events/item/instances/item/attachments/attachments_request_builder.rb b/lib/groups/item/calendar/events/item/instances/item/attachments/attachments_request_builder.rb index a0cd5d17ee..f1814b789a 100644 --- a/lib/groups/item/calendar/events/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/calendar/events/item/instances/item/attachments/attachments_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/calendar_view/item/attachments/attachments_request_builder.rb b/lib/groups/item/calendar_view/item/attachments/attachments_request_builder.rb index 2d857350f0..d6e6771ae0 100644 --- a/lib/groups/item/calendar_view/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/calendar_view/item/attachments/attachments_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb b/lib/groups/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb index 586d88aa2f..9a2b57f8d7 100644 --- a/lib/groups/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/conversations/item/threads/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb b/lib/groups/item/conversations/item/threads/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb index bda5b13ad5..b22cc2cad9 100644 --- a/lib/groups/item/conversations/item/threads/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb @@ -45,7 +45,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## 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. + ## 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -61,7 +61,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## 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. + ## 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb index 28f862a6a9..9cfa0a1851 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb @@ -51,7 +51,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -67,7 +67,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb index 7a78551bf8..dc0c72164c 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb @@ -49,7 +49,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -65,7 +65,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/conversations/item/threads/item/posts/posts_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/posts_request_builder.rb index 685b4f0d80..8d9e8695c0 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/posts_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/posts_request_builder.rb @@ -52,7 +52,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the **post** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **post** instance. + ## Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of post_collection_response ## @@ -66,7 +66,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PostCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the **post** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **post** instance. + ## Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -85,7 +85,7 @@ def to_get_request_information(request_configuration=nil) end ## - # Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the **post** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **post** instance. + # Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. class PostsRequestBuilderGetQueryParameters ## diff --git a/lib/groups/item/events/item/attachments/attachments_request_builder.rb b/lib/groups/item/events/item/attachments/attachments_request_builder.rb index a8326bd4be..0eabf3c3f6 100644 --- a/lib/groups/item/events/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/events/item/attachments/attachments_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/events/item/instances/item/attachments/attachments_request_builder.rb b/lib/groups/item/events/item/instances/item/attachments/attachments_request_builder.rb index bc738d8948..1272ebab99 100644 --- a/lib/groups/item/events/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/groups/item/events/item/instances/item/attachments/attachments_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb index 24e09eaa0b..3610b8cc2f 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb index 39d64cf6a5..02b2d40fa8 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/threads/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb b/lib/groups/item/threads/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb index e9f95c480c..9256f4ad78 100644 --- a/lib/groups/item/threads/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb +++ b/lib/groups/item/threads/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb @@ -41,7 +41,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## 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. + ## 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -57,7 +57,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## 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. + ## 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb index 456ea25966..b973360989 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb @@ -47,7 +47,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -63,7 +63,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/threads/item/posts/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb b/lib/groups/item/threads/item/posts/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb index 7c3f0891fb..f696d981fd 100644 --- a/lib/groups/item/threads/item/posts/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/microsoft_graph_reply/microsoft_graph_reply_request_builder.rb @@ -45,7 +45,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -61,7 +61,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/threads/item/posts/posts_request_builder.rb b/lib/groups/item/threads/item/posts/posts_request_builder.rb index 12b32b854a..5c4617b43d 100644 --- a/lib/groups/item/threads/item/posts/posts_request_builder.rb +++ b/lib/groups/item/threads/item/posts/posts_request_builder.rb @@ -48,7 +48,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the **post** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **post** instance. + ## Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of post_collection_response ## @@ -62,7 +62,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PostCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the **post** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **post** instance. + ## Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -81,7 +81,7 @@ def to_get_request_information(request_configuration=nil) end ## - # Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the **post** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **post** instance. + # Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. class PostsRequestBuilderGetQueryParameters ## diff --git a/lib/identity_protection/risky_users/item/history/history_request_builder.rb b/lib/identity_protection/risky_users/item/history/history_request_builder.rb index 8a0bf33c3a..024c601312 100644 --- a/lib/identity_protection/risky_users/item/history/history_request_builder.rb +++ b/lib/identity_protection/risky_users/item/history/history_request_builder.rb @@ -47,7 +47,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Get the riskyUserHistoryItems from the history navigation property. + ## Read the properties and relationships of a riskyUserHistoryItem object. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of risky_user_history_item_collection_response ## @@ -77,7 +77,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RiskyUserHistoryItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the riskyUserHistoryItems from the history navigation property. + ## Read the properties and relationships of a riskyUserHistoryItem object. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -116,7 +116,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Get the riskyUserHistoryItems from the history navigation property. + # Read the properties and relationships of a riskyUserHistoryItem object. class HistoryRequestBuilderGetQueryParameters ## diff --git a/lib/kiota-lock.json b/lib/kiota-lock.json index 9032ffc44b..ea400f0aad 100644 --- a/lib/kiota-lock.json +++ b/lib/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "F09447D3A4D3A71169905A816CAAC91F5885861EF41FD2D7FB81C82FE4A5326C5C55E803569F9722F1FE370B79B7BA45C35121351D053E6874C951F954948D06", + "descriptionHash": "81C26A4735DE40A5AD0D1495BC283F6D9F922DD22B8614E2408DB27D235DF7C344F80C23054F7E5742D604D4D8A2FFFC9530EB2E06306E6F36784BD298E2320B", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "0.11.0-preview", + "kiotaVersion": "0.11.1-preview", "clientClassName": "GraphBaseServiceClient", "clientNamespaceName": "MicrosoftGraph", "language": "Ruby", diff --git a/lib/me/calendar/calendar_view/item/attachments/attachments_request_builder.rb b/lib/me/calendar/calendar_view/item/attachments/attachments_request_builder.rb index f0d711441d..d088bee14e 100644 --- a/lib/me/calendar/calendar_view/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendar/calendar_view/item/attachments/attachments_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb b/lib/me/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb index 9293721cb0..8e6231a389 100644 --- a/lib/me/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendar/events/item/attachments/attachments_request_builder.rb b/lib/me/calendar/events/item/attachments/attachments_request_builder.rb index 72642d1d74..25d9fcaddf 100644 --- a/lib/me/calendar/events/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendar/events/item/attachments/attachments_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendar/events/item/instances/item/attachments/attachments_request_builder.rb b/lib/me/calendar/events/item/instances/item/attachments/attachments_request_builder.rb index c633a441fa..7e7a88abd0 100644 --- a/lib/me/calendar/events/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendar/events/item/instances/item/attachments/attachments_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb b/lib/me/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb index 442a9b3785..cb01b81664 100644 --- a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb b/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb index 1dfcf12d5b..303a890559 100644 --- a/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb @@ -79,7 +79,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -113,7 +113,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/attachments/attachments_request_builder.rb b/lib/me/calendar_groups/item/calendars/item/events/item/attachments/attachments_request_builder.rb index e59794dac6..08eba0aaba 100644 --- a/lib/me/calendar_groups/item/calendars/item/events/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendar_groups/item/calendars/item/events/item/attachments/attachments_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb b/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb index adfa92e001..71dc45ad89 100644 --- a/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb @@ -79,7 +79,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -113,7 +113,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendar_view/item/attachments/attachments_request_builder.rb b/lib/me/calendar_view/item/attachments/attachments_request_builder.rb index 594f060961..8e380cb211 100644 --- a/lib/me/calendar_view/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendar_view/item/attachments/attachments_request_builder.rb @@ -67,7 +67,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -101,7 +101,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendar_view/item/instances/item/attachments/attachments_request_builder.rb b/lib/me/calendar_view/item/instances/item/attachments/attachments_request_builder.rb index cea250c0b4..688cbfbbda 100644 --- a/lib/me/calendar_view/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendar_view/item/instances/item/attachments/attachments_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb b/lib/me/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb index 836c31f621..2987b0d5a5 100644 --- a/lib/me/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb b/lib/me/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb index 5f589f139c..8ad6ed388b 100644 --- a/lib/me/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendars/item/events/item/attachments/attachments_request_builder.rb b/lib/me/calendars/item/events/item/attachments/attachments_request_builder.rb index ea581969de..67d4244994 100644 --- a/lib/me/calendars/item/events/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendars/item/events/item/attachments/attachments_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb b/lib/me/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb index 5e7e20f4d7..c92ae33d2c 100644 --- a/lib/me/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/me/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/chats/item/messages/item/replies/replies_request_builder.rb b/lib/me/chats/item/messages/item/replies/replies_request_builder.rb index e59474e719..d545d773ba 100644 --- a/lib/me/chats/item/messages/item/replies/replies_request_builder.rb +++ b/lib/me/chats/item/messages/item/replies/replies_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/chats/item/messages/messages_request_builder.rb b/lib/me/chats/item/messages/messages_request_builder.rb index 44666a127e..1335fc1062 100644 --- a/lib/me/chats/item/messages/messages_request_builder.rb +++ b/lib/me/chats/item/messages/messages_request_builder.rb @@ -67,7 +67,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -101,7 +101,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/events/item/attachments/attachments_request_builder.rb b/lib/me/events/item/attachments/attachments_request_builder.rb index f46f17b367..3b3c87f4db 100644 --- a/lib/me/events/item/attachments/attachments_request_builder.rb +++ b/lib/me/events/item/attachments/attachments_request_builder.rb @@ -67,7 +67,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -101,7 +101,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/events/item/instances/item/attachments/attachments_request_builder.rb b/lib/me/events/item/instances/item/attachments/attachments_request_builder.rb index 561ced6f7e..43bdca1764 100644 --- a/lib/me/events/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/me/events/item/instances/item/attachments/attachments_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb b/lib/me/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb index 83507c236a..a729a50d77 100644 --- a/lib/me/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb +++ b/lib/me/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb b/lib/me/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb index b7afc891b2..9c8237bcb7 100644 --- a/lib/me/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb +++ b/lib/me/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/messages/messages_request_builder.rb b/lib/me/messages/messages_request_builder.rb index 2e70be325a..077f6e5e53 100644 --- a/lib/me/messages/messages_request_builder.rb +++ b/lib/me/messages/messages_request_builder.rb @@ -63,7 +63,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the **message**.- Update the draft later to add content to the **body** or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in **base64** format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of message @@ -97,7 +97,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the **message**.- Update the draft later to add content to the **body** or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in **base64** format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/models/access_review_history_definition.rb b/lib/models/access_review_history_definition.rb index dfaabda190..3e2956b88e 100644 --- a/lib/models/access_review_history_definition.rb +++ b/lib/models/access_review_history_definition.rb @@ -38,7 +38,7 @@ class AccessReviewHistoryDefinition < MicrosoftGraph::Models::Entity # Represents the status of the review history data collection. The possible values are: done, inProgress, error, requested, unknownFutureValue. @status ## - ## Instantiates a new AccessReviewHistoryDefinition and sets the default values. + ## Instantiates a new accessReviewHistoryDefinition and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/access_review_instance.rb b/lib/models/access_review_instance.rb index 24dca6d33b..7f7b229e32 100644 --- a/lib/models/access_review_instance.rb +++ b/lib/models/access_review_instance.rb @@ -35,7 +35,7 @@ class AccessReviewInstance < MicrosoftGraph::Models::Entity # Specifies the status of an accessReview. Possible values: Initializing, NotStarted, Starting, InProgress, Completing, Completed, AutoReviewing, and AutoReviewed. Supports $select, $orderby, and $filter (eq only). Read-only. @status ## - ## Instantiates a new accessReviewInstance and sets the default values. + ## Instantiates a new AccessReviewInstance and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/administrative_unit.rb b/lib/models/administrative_unit.rb index f85012ae1a..22997de7b6 100644 --- a/lib/models/administrative_unit.rb +++ b/lib/models/administrative_unit.rb @@ -25,7 +25,7 @@ class AdministrativeUnit < MicrosoftGraph::Models::DirectoryObject # Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership. If not set (value is null), the default behavior is public. When set to HiddenMembership, only members of the administrative unit can list other members of the administrative unit. @visibility ## - ## Instantiates a new administrativeUnit and sets the default values. + ## Instantiates a new AdministrativeUnit and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/agreement_collection_response.rb b/lib/models/agreement_collection_response.rb index 156451d8bb..c96e5c5cb1 100644 --- a/lib/models/agreement_collection_response.rb +++ b/lib/models/agreement_collection_response.rb @@ -5,35 +5,16 @@ module MicrosoftGraph module Models class AgreementCollectionResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse - include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable - ## - # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - @additional_data + include MicrosoftKiotaAbstractions::Parsable ## # The value property @value ## - ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @return a i_dictionary - ## - def additional_data - return @additional_data - end - ## - ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - ## @param value Value to set for the AdditionalData property. - ## @return a void - ## - def additional_data=(value) - @additional_data = value - end - ## ## Instantiates a new AgreementCollectionResponse and sets the default values. ## @return a void ## def initialize() super - @additional_data = Hash.new end ## ## Creates a new instance of the appropriate class based on discriminator value @@ -62,7 +43,6 @@ def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("value", @value) - writer.write_additional_data(@additional_data) end ## ## Gets the value property value. The value property diff --git a/lib/models/anonymous_guest_conversation_member.rb b/lib/models/anonymous_guest_conversation_member.rb index bc8d5d76bd..e6be967045 100644 --- a/lib/models/anonymous_guest_conversation_member.rb +++ b/lib/models/anonymous_guest_conversation_member.rb @@ -7,17 +7,17 @@ module Models class AnonymousGuestConversationMember < MicrosoftGraph::Models::ConversationMember include MicrosoftKiotaAbstractions::Parsable ## - # The anonymousGuestId property + # Unique ID that represents the user. Note: This ID can change if the user leaves and rejoins the meeting, or joins from a different device. @anonymous_guest_id ## - ## Gets the anonymousGuestId property value. The anonymousGuestId property + ## Gets the anonymousGuestId property value. Unique ID that represents the user. Note: This ID can change if the user leaves and rejoins the meeting, or joins from a different device. ## @return a string ## def anonymous_guest_id return @anonymous_guest_id end ## - ## Sets the anonymousGuestId property value. The anonymousGuestId property + ## Sets the anonymousGuestId property value. Unique ID that represents the user. Note: This ID can change if the user leaves and rejoins the meeting, or joins from a different device. ## @param value Value to set for the anonymous_guest_id property. ## @return a void ## diff --git a/lib/models/app_role_assignment.rb b/lib/models/app_role_assignment.rb index 67299802a5..2a08524a82 100644 --- a/lib/models/app_role_assignment.rb +++ b/lib/models/app_role_assignment.rb @@ -44,7 +44,7 @@ def app_role_id=(value) @app_role_id = value end ## - ## Instantiates a new appRoleAssignment and sets the default values. + ## Instantiates a new AppRoleAssignment and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/app_scope.rb b/lib/models/app_scope.rb index 6ad20c3678..3125d8f077 100644 --- a/lib/models/app_scope.rb +++ b/lib/models/app_scope.rb @@ -13,7 +13,7 @@ class AppScope < MicrosoftGraph::Models::Entity # Describes the type of app-specific resource represented by the app scope. Provided for display purposes, so a user interface can convey to the user the kind of app specific resource represented by the app scope. Read-only. @type ## - ## Instantiates a new appScope and sets the default values. + ## Instantiates a new AppScope and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/application.rb b/lib/models/application.rb index 42cf4015a8..83a911a867 100644 --- a/lib/models/application.rb +++ b/lib/models/application.rb @@ -224,7 +224,7 @@ def certification=(value) @certification = value end ## - ## Instantiates a new application and sets the default values. + ## Instantiates a new Application and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/application_template.rb b/lib/models/application_template.rb index 6e8aee597a..4d3b553d61 100644 --- a/lib/models/application_template.rb +++ b/lib/models/application_template.rb @@ -46,7 +46,7 @@ def categories=(value) @categories = value end ## - ## Instantiates a new ApplicationTemplate and sets the default values. + ## Instantiates a new applicationTemplate and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/authentication_methods_policy.rb b/lib/models/authentication_methods_policy.rb index 8ac78f3ba0..f7467217dd 100644 --- a/lib/models/authentication_methods_policy.rb +++ b/lib/models/authentication_methods_policy.rb @@ -44,7 +44,7 @@ def authentication_method_configurations=(value) @authentication_method_configurations = value end ## - ## Instantiates a new AuthenticationMethodsPolicy and sets the default values. + ## Instantiates a new authenticationMethodsPolicy and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/azure_communication_services_user_conversation_member.rb b/lib/models/azure_communication_services_user_conversation_member.rb new file mode 100644 index 0000000000..f9f78ddfaa --- /dev/null +++ b/lib/models/azure_communication_services_user_conversation_member.rb @@ -0,0 +1,65 @@ +require 'microsoft_kiota_abstractions' +require_relative '../microsoft_graph' +require_relative './models' + +module MicrosoftGraph + module Models + class AzureCommunicationServicesUserConversationMember < MicrosoftGraph::Models::ConversationMember + include MicrosoftKiotaAbstractions::Parsable + ## + # The azureCommunicationServicesId property + @azure_communication_services_id + ## + ## Gets the azureCommunicationServicesId property value. The azureCommunicationServicesId property + ## @return a string + ## + def azure_communication_services_id + return @azure_communication_services_id + end + ## + ## Sets the azureCommunicationServicesId property value. The azureCommunicationServicesId property + ## @param value Value to set for the azure_communication_services_id property. + ## @return a void + ## + def azure_communication_services_id=(value) + @azure_communication_services_id = value + end + ## + ## Instantiates a new AzureCommunicationServicesUserConversationMember and sets the default values. + ## @return a void + ## + def initialize() + super + @odata_type = "#microsoft.graph.azureCommunicationServicesUserConversationMember" + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parseNode The parse node to use to read the discriminator value and create the object + ## @return a azure_communication_services_user_conversation_member + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AzureCommunicationServicesUserConversationMember.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "azureCommunicationServicesId" => lambda {|n| @azure_communication_services_id = n.get_string_value() }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_string_value("azureCommunicationServicesId", @azure_communication_services_id) + end + end + end +end diff --git a/lib/models/azure_communication_services_user_conversation_member_collection_response.rb b/lib/models/azure_communication_services_user_conversation_member_collection_response.rb new file mode 100644 index 0000000000..a863626a3f --- /dev/null +++ b/lib/models/azure_communication_services_user_conversation_member_collection_response.rb @@ -0,0 +1,64 @@ +require 'microsoft_kiota_abstractions' +require_relative '../microsoft_graph' +require_relative './models' + +module MicrosoftGraph + module Models + class AzureCommunicationServicesUserConversationMemberCollectionResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new AzureCommunicationServicesUserConversationMemberCollectionResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parseNode The parse node to use to read the discriminator value and create the object + ## @return a azure_communication_services_user_conversation_member_collection_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AzureCommunicationServicesUserConversationMemberCollectionResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AzureCommunicationServicesUserConversationMember.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a azure_communication_services_user_conversation_member + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end +end diff --git a/lib/models/cloud_communications.rb b/lib/models/cloud_communications.rb index 49d15a05b5..3543f00a37 100644 --- a/lib/models/cloud_communications.rb +++ b/lib/models/cloud_communications.rb @@ -50,7 +50,7 @@ def calls=(value) @calls = value end ## - ## Instantiates a new CloudCommunications and sets the default values. + ## Instantiates a new cloudCommunications and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/conversation_member.rb b/lib/models/conversation_member.rb index 236f0035ce..3f5b120c85 100644 --- a/lib/models/conversation_member.rb +++ b/lib/models/conversation_member.rb @@ -38,6 +38,8 @@ def self.create_from_discriminator_value(parse_node) return AadUserConversationMember.new when "#microsoft.graph.anonymousGuestConversationMember" return AnonymousGuestConversationMember.new + when "#microsoft.graph.azureCommunicationServicesUserConversationMember" + return AzureCommunicationServicesUserConversationMember.new when "#microsoft.graph.microsoftAccountUserConversationMember" return MicrosoftAccountUserConversationMember.new when "#microsoft.graph.skypeForBusinessUserConversationMember" diff --git a/lib/models/delegated_admin_customer.rb b/lib/models/delegated_admin_customer.rb index 92cb0ff2f8..ec3a0f768a 100644 --- a/lib/models/delegated_admin_customer.rb +++ b/lib/models/delegated_admin_customer.rb @@ -16,7 +16,7 @@ class DelegatedAdminCustomer < MicrosoftGraph::Models::Entity # The Azure AD-assigned tenant ID of the customer. Read-only. @tenant_id ## - ## Instantiates a new delegatedAdminCustomer and sets the default values. + ## Instantiates a new DelegatedAdminCustomer and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/delegated_admin_relationship.rb b/lib/models/delegated_admin_relationship.rb index d177ad95bf..16dad07e07 100644 --- a/lib/models/delegated_admin_relationship.rb +++ b/lib/models/delegated_admin_relationship.rb @@ -89,7 +89,7 @@ def activated_date_time=(value) @activated_date_time = value end ## - ## Instantiates a new delegatedAdminRelationship and sets the default values. + ## Instantiates a new DelegatedAdminRelationship and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/deleted_team.rb b/lib/models/deleted_team.rb new file mode 100644 index 0000000000..1d3f34fe00 --- /dev/null +++ b/lib/models/deleted_team.rb @@ -0,0 +1,64 @@ +require 'microsoft_kiota_abstractions' +require_relative '../microsoft_graph' +require_relative './models' + +module MicrosoftGraph + module Models + class DeletedTeam < MicrosoftGraph::Models::Entity + include MicrosoftKiotaAbstractions::Parsable + ## + # The channels property + @channels + ## + ## Gets the channels property value. The channels property + ## @return a channel + ## + def channels + return @channels + end + ## + ## Sets the channels property value. The channels property + ## @param value Value to set for the channels property. + ## @return a void + ## + def channels=(value) + @channels = value + end + ## + ## Instantiates a new DeletedTeam and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parseNode The parse node to use to read the discriminator value and create the object + ## @return a deleted_team + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletedTeam.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "channels" => lambda {|n| @channels = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("channels", @channels) + end + end + end +end diff --git a/lib/models/deleted_team_collection_response.rb b/lib/models/deleted_team_collection_response.rb new file mode 100644 index 0000000000..fb5ef9caef --- /dev/null +++ b/lib/models/deleted_team_collection_response.rb @@ -0,0 +1,64 @@ +require 'microsoft_kiota_abstractions' +require_relative '../microsoft_graph' +require_relative './models' + +module MicrosoftGraph + module Models + class DeletedTeamCollectionResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new DeletedTeamCollectionResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parseNode The parse node to use to read the discriminator value and create the object + ## @return a deleted_team_collection_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeletedTeamCollectionResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeletedTeam.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a deleted_team + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end +end diff --git a/lib/models/device.rb b/lib/models/device.rb index ee2f4cfef4..447efe6341 100644 --- a/lib/models/device.rb +++ b/lib/models/device.rb @@ -140,7 +140,7 @@ def compliance_expiration_date_time=(value) @compliance_expiration_date_time = value end ## - ## Instantiates a new device and sets the default values. + ## Instantiates a new Device and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/drive.rb b/lib/models/drive.rb index 3130a5d450..76d5f8caca 100644 --- a/lib/models/drive.rb +++ b/lib/models/drive.rb @@ -55,7 +55,7 @@ def bundles=(value) @bundles = value end ## - ## Instantiates a new Drive and sets the default values. + ## Instantiates a new drive and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/education_assignment.rb b/lib/models/education_assignment.rb index 5e085c5175..7401c1384c 100644 --- a/lib/models/education_assignment.rb +++ b/lib/models/education_assignment.rb @@ -236,7 +236,7 @@ def close_date_time=(value) @close_date_time = value end ## - ## Instantiates a new educationAssignment and sets the default values. + ## Instantiates a new EducationAssignment and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/education_assignment_defaults.rb b/lib/models/education_assignment_defaults.rb index 8cbe8a5efa..b9a50a2ba2 100644 --- a/lib/models/education_assignment_defaults.rb +++ b/lib/models/education_assignment_defaults.rb @@ -50,7 +50,7 @@ def added_student_action=(value) @added_student_action = value end ## - ## Instantiates a new educationAssignmentDefaults and sets the default values. + ## Instantiates a new EducationAssignmentDefaults and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/education_assignment_settings.rb b/lib/models/education_assignment_settings.rb index fbc1a98c27..4a464f7d8a 100644 --- a/lib/models/education_assignment_settings.rb +++ b/lib/models/education_assignment_settings.rb @@ -10,7 +10,7 @@ class EducationAssignmentSettings < MicrosoftGraph::Models::Entity # Indicates whether turn-in celebration animation will be shown. A value of true indicates that the animation will not be shown. Default value is false. @submission_animation_disabled ## - ## Instantiates a new educationAssignmentSettings and sets the default values. + ## Instantiates a new EducationAssignmentSettings and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/education_class.rb b/lib/models/education_class.rb index 9055ff8f1f..f38aed123c 100644 --- a/lib/models/education_class.rb +++ b/lib/models/education_class.rb @@ -142,7 +142,7 @@ def class_code=(value) @class_code = value end ## - ## Instantiates a new educationClass and sets the default values. + ## Instantiates a new EducationClass and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/entity.rb b/lib/models/entity.rb index 310aa23ec8..83862011f2 100644 --- a/lib/models/entity.rb +++ b/lib/models/entity.rb @@ -190,6 +190,8 @@ def self.create_from_discriminator_value(parse_node) return AuthoredNote.new when "#microsoft.graph.authorizationPolicy" return AuthorizationPolicy.new + when "#microsoft.graph.azureCommunicationServicesUserConversationMember" + return AzureCommunicationServicesUserConversationMember.new when "#microsoft.graph.b2xIdentityUserFlow" return B2xIdentityUserFlow.new when "#microsoft.graph.baseItem" @@ -308,6 +310,8 @@ def self.create_from_discriminator_value(parse_node) return DelegatedAdminServiceManagementDetail.new when "#microsoft.graph.delegatedPermissionClassification" return DelegatedPermissionClassification.new + when "#microsoft.graph.deletedTeam" + return DeletedTeam.new when "#microsoft.graph.detectedApp" return DetectedApp.new when "#microsoft.graph.device" diff --git a/lib/models/entity_type.rb b/lib/models/entity_type.rb index fc2a807002..e633e1f7b2 100644 --- a/lib/models/entity_type.rb +++ b/lib/models/entity_type.rb @@ -10,6 +10,7 @@ module Models ListItem: :ListItem, Drive: :Drive, UnknownFutureValue: :UnknownFutureValue, + ChatMessage: :ChatMessage, } end end diff --git a/lib/models/external_connectors/external_connection.rb b/lib/models/external_connectors/external_connection.rb index 3dbbd43a97..161a79245e 100644 --- a/lib/models/external_connectors/external_connection.rb +++ b/lib/models/external_connectors/external_connection.rb @@ -48,7 +48,7 @@ def configuration=(value) @configuration = value end ## - ## Instantiates a new ExternalConnection and sets the default values. + ## Instantiates a new externalConnection and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/group.rb b/lib/models/group.rb index cdfc2a52b1..88e7fe1144 100644 --- a/lib/models/group.rb +++ b/lib/models/group.rb @@ -38,7 +38,7 @@ class Group < MicrosoftGraph::Models::DirectoryObject # The group's conversations. @conversations ## - # Timestamp of when the group was created. The value cannot be modified and is automatically populated when the group is 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. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only. + # Timestamp of when the group was created. The value cannot be modified and is automatically populated when the group is 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. Returned by default. Read-only. @created_date_time ## # The user (or application) that created the group. NOTE: This is not set if the user is an administrator. Read-only. @@ -338,7 +338,7 @@ def classification=(value) @classification = value end ## - ## Instantiates a new group and sets the default values. + ## Instantiates a new Group and sets the default values. ## @return a void ## def initialize() @@ -361,14 +361,14 @@ def conversations=(value) @conversations = value end ## - ## Gets the createdDateTime property value. Timestamp of when the group was created. The value cannot be modified and is automatically populated when the group is 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. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only. + ## Gets the createdDateTime property value. Timestamp of when the group was created. The value cannot be modified and is automatically populated when the group is 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. Returned by default. Read-only. ## @return a date_time ## def created_date_time return @created_date_time end ## - ## Sets the createdDateTime property value. Timestamp of when the group was created. The value cannot be modified and is automatically populated when the group is 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. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only. + ## Sets the createdDateTime property value. Timestamp of when the group was created. The value cannot be modified and is automatically populated when the group is 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. Returned by default. Read-only. ## @param value Value to set for the created_date_time property. ## @return a void ## diff --git a/lib/models/identity_api_connector.rb b/lib/models/identity_api_connector.rb index d36faec88c..7a6184ba1a 100644 --- a/lib/models/identity_api_connector.rb +++ b/lib/models/identity_api_connector.rb @@ -31,7 +31,7 @@ def authentication_configuration=(value) @authentication_configuration = value end ## - ## Instantiates a new identityApiConnector and sets the default values. + ## Instantiates a new IdentityApiConnector and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/identity_provider_base.rb b/lib/models/identity_provider_base.rb index 5350001c0d..aa3b6b70dd 100644 --- a/lib/models/identity_provider_base.rb +++ b/lib/models/identity_provider_base.rb @@ -10,7 +10,7 @@ class IdentityProviderBase < MicrosoftGraph::Models::Entity # The display name of the identity provider. @display_name ## - ## Instantiates a new identityProviderBase and sets the default values. + ## Instantiates a new IdentityProviderBase and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/identity_user_flow.rb b/lib/models/identity_user_flow.rb index 5237f77a41..9c560be90f 100644 --- a/lib/models/identity_user_flow.rb +++ b/lib/models/identity_user_flow.rb @@ -13,7 +13,7 @@ class IdentityUserFlow < MicrosoftGraph::Models::Entity # The userFlowTypeVersion property @user_flow_type_version ## - ## Instantiates a new identityUserFlow and sets the default values. + ## Instantiates a new IdentityUserFlow and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/lobby_bypass_scope.rb b/lib/models/lobby_bypass_scope.rb deleted file mode 100644 index 1ef8738501..0000000000 --- a/lib/models/lobby_bypass_scope.rb +++ /dev/null @@ -1,13 +0,0 @@ -module MicrosoftGraph - module Models - LobbyBypassScope = { - Organizer: :Organizer, - Organization: :Organization, - OrganizationAndFederated: :OrganizationAndFederated, - Everyone: :Everyone, - UnknownFutureValue: :UnknownFutureValue, - Invited: :Invited, - OrganizationExcludingGuests: :OrganizationExcludingGuests, - } - end -end diff --git a/lib/models/lobby_bypass_settings.rb b/lib/models/lobby_bypass_settings.rb index 22fac9a06d..4b9bf3cc3d 100644 --- a/lib/models/lobby_bypass_settings.rb +++ b/lib/models/lobby_bypass_settings.rb @@ -16,9 +16,6 @@ class LobbyBypassSettings # The OdataType property @odata_type ## - # Specifies the type of participants that are automatically admitted into a meeting, bypassing the lobby. Optional. - @scope - ## ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. ## @return a i_dictionary ## @@ -57,7 +54,6 @@ def get_field_deserializers() return { "isDialInBypassEnabled" => lambda {|n| @is_dial_in_bypass_enabled = n.get_boolean_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, - "scope" => lambda {|n| @scope = n.get_enum_value(MicrosoftGraph::Models::LobbyBypassScope) }, } end ## @@ -91,21 +87,6 @@ def odata_type=(value) @odata_type = value end ## - ## Gets the scope property value. Specifies the type of participants that are automatically admitted into a meeting, bypassing the lobby. Optional. - ## @return a lobby_bypass_scope - ## - def scope - return @scope - end - ## - ## Sets the scope property value. Specifies the type of participants that are automatically admitted into a meeting, bypassing the lobby. Optional. - ## @param value Value to set for the scope property. - ## @return a void - ## - def scope=(value) - @scope = value - end - ## ## Serializes information the current object ## @param writer Serialization writer to use to serialize this model ## @return a void @@ -114,7 +95,6 @@ def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_boolean_value("isDialInBypassEnabled", @is_dial_in_bypass_enabled) writer.write_string_value("@odata.type", @odata_type) - writer.write_enum_value("scope", @scope) writer.write_additional_data(@additional_data) end end diff --git a/lib/models/meeting_chat_mode.rb b/lib/models/meeting_chat_mode.rb deleted file mode 100644 index 8b8c79f760..0000000000 --- a/lib/models/meeting_chat_mode.rb +++ /dev/null @@ -1,10 +0,0 @@ -module MicrosoftGraph - module Models - MeetingChatMode = { - Enabled: :Enabled, - Disabled: :Disabled, - Limited: :Limited, - UnknownFutureValue: :UnknownFutureValue, - } - end -end diff --git a/lib/models/microsoft_account_user_conversation_member.rb b/lib/models/microsoft_account_user_conversation_member.rb index dc9a7a36d3..29eca076e8 100644 --- a/lib/models/microsoft_account_user_conversation_member.rb +++ b/lib/models/microsoft_account_user_conversation_member.rb @@ -7,7 +7,7 @@ module Models class MicrosoftAccountUserConversationMember < MicrosoftGraph::Models::ConversationMember include MicrosoftKiotaAbstractions::Parsable ## - # The userId property + # Microsoft Account ID of the user. @user_id ## ## Instantiates a new MicrosoftAccountUserConversationMember and sets the default values. @@ -46,14 +46,14 @@ def serialize(writer) writer.write_string_value("userId", @user_id) end ## - ## Gets the userId property value. The userId property + ## Gets the userId property value. Microsoft Account ID of the user. ## @return a string ## def user_id return @user_id end ## - ## Sets the userId property value. The userId property + ## Sets the userId property value. Microsoft Account ID of the user. ## @param value Value to set for the user_id property. ## @return a void ## diff --git a/lib/models/models.rb b/lib/models/models.rb index 7397e69e55..dde51d9878 100644 --- a/lib/models/models.rb +++ b/lib/models/models.rb @@ -166,7 +166,6 @@ require_relative 'ios_notification_alert_type' require_relative 'ios_updates_install_status' require_relative 'lifecycle_event_type' -require_relative 'lobby_bypass_scope' require_relative 'location_type' require_relative 'location_unique_id_type' require_relative 'logon_type' @@ -188,7 +187,6 @@ require_relative 'mdm_authority' require_relative 'media_direction' require_relative 'media_state' -require_relative 'meeting_chat_mode' require_relative 'meeting_message_type' require_relative 'meeting_request_type' require_relative 'message_action_flag' @@ -205,7 +203,6 @@ require_relative 'onenote_patch_insert_position' require_relative 'onenote_source_service' require_relative 'onenote_user_role' -require_relative 'online_meeting_presenters' require_relative 'online_meeting_provider_type' require_relative 'online_meeting_role' require_relative 'operation_result' @@ -286,6 +283,7 @@ require_relative 'schedule_entity_theme' require_relative 'screen_sharing_role' require_relative 'search_alteration_type' +require_relative 'search_content' require_relative 'security_network_protocol' require_relative 'security_resource_type' require_relative 'selection_likelihood_info' @@ -818,6 +816,7 @@ require_relative 'shared' require_relative 'shared_p_c_account_manager_policy' require_relative 'sharepoint_ids' +require_relative 'share_point_one_drive_options' require_relative 'sharing_detail' require_relative 'sharing_invitation' require_relative 'sharing_link' @@ -1071,6 +1070,7 @@ require_relative 'availability_item_collection_response' require_relative 'average_comparative_score_collection_response' require_relative 'azure_active_directory_tenant' +require_relative 'azure_communication_services_user_conversation_member_collection_response' require_relative 'b2x_identity_user_flow_collection_response' require_relative 'base_item' require_relative 'base_item_collection_response' @@ -1219,6 +1219,8 @@ require_relative 'delegated_admin_service_management_detail_collection_response' require_relative 'delegated_permission_classification' require_relative 'delegated_permission_classification_collection_response' +require_relative 'deleted_team' +require_relative 'deleted_team_collection_response' require_relative 'delete_user_from_shared_apple_device_action_result' require_relative 'detected_app' require_relative 'detected_app_collection_response' @@ -2137,6 +2139,7 @@ require_relative 'app_role_assignment' require_relative 'associated_team_info' require_relative 'attendee' +require_relative 'azure_communication_services_user_conversation_member' require_relative 'b2x_identity_user_flow' require_relative 'booking_customer' require_relative 'booking_staff_member' diff --git a/lib/models/online_meeting.rb b/lib/models/online_meeting.rb index 8afbdb69a7..2af26fd3ba 100644 --- a/lib/models/online_meeting.rb +++ b/lib/models/online_meeting.rb @@ -14,15 +14,9 @@ class OnlineMeeting < MicrosoftGraph::Models::Entity # Indicates whether attendees can turn on their microphone. @allow_attendee_to_enable_mic ## - # Specifies the mode of meeting chat. - @allow_meeting_chat - ## # Indicates whether Teams reactions are enabled for the meeting. @allow_teamwork_reactions ## - # Specifies who can be a presenter in a meeting. Possible values are listed in the following table. - @allowed_presenters - ## # The attendance reports of an online meeting. Read-only. @attendance_reports ## @@ -110,21 +104,6 @@ def allow_attendee_to_enable_mic=(value) @allow_attendee_to_enable_mic = value end ## - ## Gets the allowMeetingChat property value. Specifies the mode of meeting chat. - ## @return a meeting_chat_mode - ## - def allow_meeting_chat - return @allow_meeting_chat - end - ## - ## Sets the allowMeetingChat property value. Specifies the mode of meeting chat. - ## @param value Value to set for the allow_meeting_chat property. - ## @return a void - ## - def allow_meeting_chat=(value) - @allow_meeting_chat = value - end - ## ## Gets the allowTeamworkReactions property value. Indicates whether Teams reactions are enabled for the meeting. ## @return a boolean ## @@ -140,21 +119,6 @@ def allow_teamwork_reactions=(value) @allow_teamwork_reactions = value end ## - ## Gets the allowedPresenters property value. Specifies who can be a presenter in a meeting. Possible values are listed in the following table. - ## @return a online_meeting_presenters - ## - def allowed_presenters - return @allowed_presenters - end - ## - ## Sets the allowedPresenters property value. Specifies who can be a presenter in a meeting. Possible values are listed in the following table. - ## @param value Value to set for the allowed_presenters property. - ## @return a void - ## - def allowed_presenters=(value) - @allowed_presenters = value - end - ## ## Gets the attendanceReports property value. The attendance reports of an online meeting. Read-only. ## @return a meeting_attendance_report ## @@ -298,9 +262,7 @@ def get_field_deserializers() return super.merge({ "allowAttendeeToEnableCamera" => lambda {|n| @allow_attendee_to_enable_camera = n.get_boolean_value() }, "allowAttendeeToEnableMic" => lambda {|n| @allow_attendee_to_enable_mic = n.get_boolean_value() }, - "allowMeetingChat" => lambda {|n| @allow_meeting_chat = n.get_enum_value(MicrosoftGraph::Models::MeetingChatMode) }, "allowTeamworkReactions" => lambda {|n| @allow_teamwork_reactions = n.get_boolean_value() }, - "allowedPresenters" => lambda {|n| @allowed_presenters = n.get_enum_value(MicrosoftGraph::Models::OnlineMeetingPresenters) }, "attendanceReports" => lambda {|n| @attendance_reports = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::MeetingAttendanceReport.create_from_discriminator_value(pn) }) }, "attendeeReport" => lambda {|n| @attendee_report = n.get_string_value() }, "audioConferencing" => lambda {|n| @audio_conferencing = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AudioConferencing.create_from_discriminator_value(pn) }) }, @@ -452,9 +414,7 @@ def serialize(writer) super writer.write_boolean_value("allowAttendeeToEnableCamera", @allow_attendee_to_enable_camera) writer.write_boolean_value("allowAttendeeToEnableMic", @allow_attendee_to_enable_mic) - writer.write_enum_value("allowMeetingChat", @allow_meeting_chat) writer.write_boolean_value("allowTeamworkReactions", @allow_teamwork_reactions) - writer.write_enum_value("allowedPresenters", @allowed_presenters) writer.write_collection_of_object_values("attendanceReports", @attendance_reports) writer.write_object_value("attendeeReport", @attendee_report) writer.write_object_value("audioConferencing", @audio_conferencing) diff --git a/lib/models/online_meeting_presenters.rb b/lib/models/online_meeting_presenters.rb deleted file mode 100644 index 66bc3e759e..0000000000 --- a/lib/models/online_meeting_presenters.rb +++ /dev/null @@ -1,11 +0,0 @@ -module MicrosoftGraph - module Models - OnlineMeetingPresenters = { - Everyone: :Everyone, - Organization: :Organization, - RoleIsPresenter: :RoleIsPresenter, - Organizer: :Organizer, - UnknownFutureValue: :UnknownFutureValue, - } - end -end diff --git a/lib/models/post.rb b/lib/models/post.rb index a81cd2cde7..e8efe46806 100644 --- a/lib/models/post.rb +++ b/lib/models/post.rb @@ -77,7 +77,7 @@ def body=(value) @body = value end ## - ## Instantiates a new Post and sets the default values. + ## Instantiates a new post and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/print_operation.rb b/lib/models/print_operation.rb index 9d4b7bcc84..f7fdd955e8 100644 --- a/lib/models/print_operation.rb +++ b/lib/models/print_operation.rb @@ -14,7 +14,7 @@ class PrintOperation < MicrosoftGraph::Models::Entity # The status property @status ## - ## Instantiates a new printOperation and sets the default values. + ## Instantiates a new PrintOperation and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/print_service.rb b/lib/models/print_service.rb index a99e962433..a1f347b2d3 100644 --- a/lib/models/print_service.rb +++ b/lib/models/print_service.rb @@ -10,7 +10,7 @@ class PrintService < MicrosoftGraph::Models::Entity # Endpoints that can be used to access the service. Read-only. Nullable. @endpoints ## - ## Instantiates a new printService and sets the default values. + ## Instantiates a new PrintService and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/risk_detection.rb b/lib/models/risk_detection.rb index 6ca6492dd9..704b3400b3 100644 --- a/lib/models/risk_detection.rb +++ b/lib/models/risk_detection.rb @@ -110,7 +110,7 @@ def additional_info=(value) @additional_info = value end ## - ## Instantiates a new riskDetection and sets the default values. + ## Instantiates a new RiskDetection and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/risky_service_principal.rb b/lib/models/risky_service_principal.rb index ca4e23960b..1864bff38c 100644 --- a/lib/models/risky_service_principal.rb +++ b/lib/models/risky_service_principal.rb @@ -53,7 +53,7 @@ def app_id=(value) @app_id = value end ## - ## Instantiates a new riskyServicePrincipal and sets the default values. + ## Instantiates a new RiskyServicePrincipal and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/risky_user.rb b/lib/models/risky_user.rb index 41b4c3320c..b39b729098 100644 --- a/lib/models/risky_user.rb +++ b/lib/models/risky_user.rb @@ -35,7 +35,7 @@ class RiskyUser < MicrosoftGraph::Models::Entity # Risky user principal name. @user_principal_name ## - ## Instantiates a new riskyUser and sets the default values. + ## Instantiates a new RiskyUser and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/role_definition.rb b/lib/models/role_definition.rb index aff4f08d42..5ddfea7913 100644 --- a/lib/models/role_definition.rb +++ b/lib/models/role_definition.rb @@ -4,6 +4,8 @@ module MicrosoftGraph module Models + ## + # The Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role. class RoleDefinition < MicrosoftGraph::Models::Entity include MicrosoftKiotaAbstractions::Parsable ## diff --git a/lib/models/scheduling_group.rb b/lib/models/scheduling_group.rb index 87202a20d0..236401bcd1 100644 --- a/lib/models/scheduling_group.rb +++ b/lib/models/scheduling_group.rb @@ -16,7 +16,7 @@ class SchedulingGroup < MicrosoftGraph::Models::ChangeTrackedEntity # The list of user IDs that are a member of the schedulingGroup. Required. @user_ids ## - ## Instantiates a new SchedulingGroup and sets the default values. + ## Instantiates a new schedulingGroup and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/search_content.rb b/lib/models/search_content.rb new file mode 100644 index 0000000000..d81bf39cd5 --- /dev/null +++ b/lib/models/search_content.rb @@ -0,0 +1,9 @@ +module MicrosoftGraph + module Models + SearchContent = { + SharedContent: :SharedContent, + PrivateContent: :PrivateContent, + UnknownFutureValue: :UnknownFutureValue, + } + end +end diff --git a/lib/models/search_request.rb b/lib/models/search_request.rb index f10090fab3..45a16123dd 100644 --- a/lib/models/search_request.rb +++ b/lib/models/search_request.rb @@ -40,9 +40,15 @@ class SearchRequest # The queryAlterationOptions property @query_alteration_options ## + # The region property + @region + ## # The resultTemplateOptions property @result_template_options ## + # The sharePointOneDriveOptions property + @share_point_one_drive_options + ## # The size property @size ## @@ -200,7 +206,9 @@ def get_field_deserializers() "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "query" => lambda {|n| @query = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SearchQuery.create_from_discriminator_value(pn) }) }, "queryAlterationOptions" => lambda {|n| @query_alteration_options = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SearchAlterationOptions.create_from_discriminator_value(pn) }) }, + "region" => lambda {|n| @region = n.get_string_value() }, "resultTemplateOptions" => lambda {|n| @result_template_options = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ResultTemplateOption.create_from_discriminator_value(pn) }) }, + "sharePointOneDriveOptions" => lambda {|n| @share_point_one_drive_options = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SharePointOneDriveOptions.create_from_discriminator_value(pn) }) }, "size" => lambda {|n| @size = n.get_number_value() }, "sortProperties" => lambda {|n| @sort_properties = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SortProperty.create_from_discriminator_value(pn) }) }, } @@ -251,6 +259,21 @@ def query_alteration_options=(value) @query_alteration_options = value end ## + ## Gets the region property value. The region property + ## @return a string + ## + def region + return @region + end + ## + ## Sets the region property value. The region property + ## @param value Value to set for the region property. + ## @return a void + ## + def region=(value) + @region = value + end + ## ## Gets the resultTemplateOptions property value. The resultTemplateOptions property ## @return a result_template_option ## @@ -282,12 +305,29 @@ def serialize(writer) writer.write_string_value("@odata.type", @odata_type) writer.write_object_value("query", @query) writer.write_object_value("queryAlterationOptions", @query_alteration_options) + writer.write_string_value("region", @region) writer.write_object_value("resultTemplateOptions", @result_template_options) + writer.write_object_value("sharePointOneDriveOptions", @share_point_one_drive_options) writer.write_number_value("size", @size) writer.write_collection_of_object_values("sortProperties", @sort_properties) writer.write_additional_data(@additional_data) end ## + ## Gets the sharePointOneDriveOptions property value. The sharePointOneDriveOptions property + ## @return a share_point_one_drive_options + ## + def share_point_one_drive_options + return @share_point_one_drive_options + end + ## + ## Sets the sharePointOneDriveOptions property value. The sharePointOneDriveOptions property + ## @param value Value to set for the share_point_one_drive_options property. + ## @return a void + ## + def share_point_one_drive_options=(value) + @share_point_one_drive_options = value + end + ## ## Gets the size property value. The size property ## @return a integer ## diff --git a/lib/models/security/ediscovery_noncustodial_data_source.rb b/lib/models/security/ediscovery_noncustodial_data_source.rb index 973be810c6..30dbc44bf3 100644 --- a/lib/models/security/ediscovery_noncustodial_data_source.rb +++ b/lib/models/security/ediscovery_noncustodial_data_source.rb @@ -15,7 +15,7 @@ class EdiscoveryNoncustodialDataSource < MicrosoftGraph::Models::Security::DataS # Operation entity that represents the latest indexing for the non-custodial data source. @last_index_operation ## - ## Instantiates a new ediscoveryNoncustodialDataSource and sets the default values. + ## Instantiates a new EdiscoveryNoncustodialDataSource and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/service_principal.rb b/lib/models/service_principal.rb index 8c0d49b60e..52807ff4f1 100644 --- a/lib/models/service_principal.rb +++ b/lib/models/service_principal.rb @@ -346,7 +346,7 @@ def claims_mapping_policies=(value) @claims_mapping_policies = value end ## - ## Instantiates a new servicePrincipal and sets the default values. + ## Instantiates a new ServicePrincipal and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/share_point_one_drive_options.rb b/lib/models/share_point_one_drive_options.rb new file mode 100644 index 0000000000..054f1055a0 --- /dev/null +++ b/lib/models/share_point_one_drive_options.rb @@ -0,0 +1,102 @@ +require 'microsoft_kiota_abstractions' +require_relative '../microsoft_graph' +require_relative './models' + +module MicrosoftGraph + module Models + class SharePointOneDriveOptions + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The includeContent property + @include_content + ## + # The OdataType property + @odata_type + ## + ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new sharePointOneDriveOptions and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parseNode The parse node to use to read the discriminator value and create the object + ## @return a share_point_one_drive_options + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return SharePointOneDriveOptions.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "includeContent" => lambda {|n| @include_content = n.get_enum_value(MicrosoftGraph::Models::SearchContent) }, + "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, + } + end + ## + ## Gets the includeContent property value. The includeContent property + ## @return a search_content + ## + def include_content + return @include_content + end + ## + ## Sets the includeContent property value. The includeContent property + ## @param value Value to set for the include_content property. + ## @return a void + ## + def include_content=(value) + @include_content = value + end + ## + ## Gets the @odata.type property value. The OdataType property + ## @return a string + ## + def odata_type + return @odata_type + end + ## + ## Sets the @odata.type property value. The OdataType property + ## @param value Value to set for the odata_type property. + ## @return a void + ## + def odata_type=(value) + @odata_type = value + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_enum_value("includeContent", @include_content) + writer.write_string_value("@odata.type", @odata_type) + writer.write_additional_data(@additional_data) + end + end + end +end diff --git a/lib/models/shift.rb b/lib/models/shift.rb index 185464e6f8..a0cf159025 100644 --- a/lib/models/shift.rb +++ b/lib/models/shift.rb @@ -19,7 +19,7 @@ class Shift < MicrosoftGraph::Models::ChangeTrackedEntity # ID of the user assigned to the shift. Required. @user_id ## - ## Instantiates a new Shift and sets the default values. + ## Instantiates a new shift and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/skype_for_business_user_conversation_member.rb b/lib/models/skype_for_business_user_conversation_member.rb index d50f5de1fc..e388aa6e87 100644 --- a/lib/models/skype_for_business_user_conversation_member.rb +++ b/lib/models/skype_for_business_user_conversation_member.rb @@ -7,10 +7,10 @@ module Models class SkypeForBusinessUserConversationMember < MicrosoftGraph::Models::ConversationMember include MicrosoftKiotaAbstractions::Parsable ## - # The tenantId property + # ID of the tenant that the user belongs to. @tenant_id ## - # The userId property + # Azure Active Directory ID of the user. @user_id ## ## Instantiates a new SkypeForBusinessUserConversationMember and sets the default values. @@ -51,14 +51,14 @@ def serialize(writer) writer.write_string_value("userId", @user_id) end ## - ## Gets the tenantId property value. The tenantId property + ## Gets the tenantId property value. ID of the tenant that the user belongs to. ## @return a string ## def tenant_id return @tenant_id end ## - ## Sets the tenantId property value. The tenantId property + ## Sets the tenantId property value. ID of the tenant that the user belongs to. ## @param value Value to set for the tenant_id property. ## @return a void ## @@ -66,14 +66,14 @@ def tenant_id=(value) @tenant_id = value end ## - ## Gets the userId property value. The userId property + ## Gets the userId property value. Azure Active Directory ID of the user. ## @return a string ## def user_id return @user_id end ## - ## Sets the userId property value. The userId property + ## Sets the userId property value. Azure Active Directory ID of the user. ## @param value Value to set for the user_id property. ## @return a void ## diff --git a/lib/models/skype_user_conversation_member.rb b/lib/models/skype_user_conversation_member.rb index 8f48fee1da..2581fbe764 100644 --- a/lib/models/skype_user_conversation_member.rb +++ b/lib/models/skype_user_conversation_member.rb @@ -7,7 +7,7 @@ module Models class SkypeUserConversationMember < MicrosoftGraph::Models::ConversationMember include MicrosoftKiotaAbstractions::Parsable ## - # The skypeId property + # Skype ID of the user. @skype_id ## ## Instantiates a new SkypeUserConversationMember and sets the default values. @@ -46,14 +46,14 @@ def serialize(writer) writer.write_string_value("skypeId", @skype_id) end ## - ## Gets the skypeId property value. The skypeId property + ## Gets the skypeId property value. Skype ID of the user. ## @return a string ## def skype_id return @skype_id end ## - ## Sets the skypeId property value. The skypeId property + ## Sets the skypeId property value. Skype ID of the user. ## @param value Value to set for the skype_id property. ## @return a void ## diff --git a/lib/models/subscription.rb b/lib/models/subscription.rb index 95d0eb47d7..f040080489 100644 --- a/lib/models/subscription.rb +++ b/lib/models/subscription.rb @@ -14,7 +14,7 @@ class Subscription < MicrosoftGraph::Models::Entity # Required. Indicates the type of change in the subscribed resource that will raise a change notification. The supported values are: created, updated, deleted. Multiple values can be combined using a comma-separated list. Note: Drive root item and list change notifications support only the updated changeType. User and group change notifications support updated and deleted changeType. Use updated to receive notifications when user or group is created, updated or soft deleted. Use deleted to receive notifications when user or group is permanently deleted. @change_type ## - # Optional. Specifies the value of the clientState property sent by the service in each change notification. The maximum length is 128 characters. The client can check that the change notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each change notification. + # Required. Specifies the value of the clientState property sent by the service in each change notification. The maximum length is 128 characters. The client can check that the change notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each change notification. @client_state ## # Optional. Identifier of the user or service principal that created the subscription. If the app used delegated permissions to create the subscription, this field contains the id of the signed-in user the app called on behalf of. If the app used application permissions, this field contains the id of the service principal corresponding to the app. Read-only. @@ -80,14 +80,14 @@ def change_type=(value) @change_type = value end ## - ## Gets the clientState property value. Optional. Specifies the value of the clientState property sent by the service in each change notification. The maximum length is 128 characters. The client can check that the change notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each change notification. + ## Gets the clientState property value. Required. Specifies the value of the clientState property sent by the service in each change notification. The maximum length is 128 characters. The client can check that the change notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each change notification. ## @return a string ## def client_state return @client_state end ## - ## Sets the clientState property value. Optional. Specifies the value of the clientState property sent by the service in each change notification. The maximum length is 128 characters. The client can check that the change notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each change notification. + ## Sets the clientState property value. Required. Specifies the value of the clientState property sent by the service in each change notification. The maximum length is 128 characters. The client can check that the change notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each change notification. ## @param value Value to set for the client_state property. ## @return a void ## diff --git a/lib/models/teamwork.rb b/lib/models/teamwork.rb index fec792b078..c3e9bbd257 100644 --- a/lib/models/teamwork.rb +++ b/lib/models/teamwork.rb @@ -7,6 +7,9 @@ module Models class Teamwork < MicrosoftGraph::Models::Entity include MicrosoftKiotaAbstractions::Parsable ## + # The deletedTeams property + @deleted_teams + ## # The workforceIntegrations property @workforce_integrations ## @@ -26,11 +29,27 @@ def self.create_from_discriminator_value(parse_node) return Teamwork.new end ## + ## Gets the deletedTeams property value. The deletedTeams property + ## @return a deleted_team + ## + def deleted_teams + return @deleted_teams + end + ## + ## Sets the deletedTeams property value. The deletedTeams property + ## @param value Value to set for the deleted_teams property. + ## @return a void + ## + def deleted_teams=(value) + @deleted_teams = value + end + ## ## The deserialization information for the current model ## @return a i_dictionary ## def get_field_deserializers() return super.merge({ + "deletedTeams" => lambda {|n| @deleted_teams = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeletedTeam.create_from_discriminator_value(pn) }) }, "workforceIntegrations" => lambda {|n| @workforce_integrations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkforceIntegration.create_from_discriminator_value(pn) }) }, }) end @@ -42,6 +61,7 @@ def get_field_deserializers() def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super + writer.write_collection_of_object_values("deletedTeams", @deleted_teams) writer.write_collection_of_object_values("workforceIntegrations", @workforce_integrations) end ## diff --git a/lib/models/time_off.rb b/lib/models/time_off.rb index f2972c6dad..4d2696ea22 100644 --- a/lib/models/time_off.rb +++ b/lib/models/time_off.rb @@ -16,7 +16,7 @@ class TimeOff < MicrosoftGraph::Models::ChangeTrackedEntity # ID of the user assigned to the timeOff. Required. @user_id ## - ## Instantiates a new TimeOff and sets the default values. + ## Instantiates a new timeOff and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/time_off_reason.rb b/lib/models/time_off_reason.rb index 91bc94714c..6322172c54 100644 --- a/lib/models/time_off_reason.rb +++ b/lib/models/time_off_reason.rb @@ -16,7 +16,7 @@ class TimeOffReason < MicrosoftGraph::Models::ChangeTrackedEntity # Indicates whether the timeOffReason can be used when creating new entities or updating existing ones. Required. @is_active ## - ## Instantiates a new TimeOffReason and sets the default values. + ## Instantiates a new timeOffReason and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/user.rb b/lib/models/user.rb index 2dea9413bf..094fbef0e5 100644 --- a/lib/models/user.rb +++ b/lib/models/user.rb @@ -77,7 +77,7 @@ class User < MicrosoftGraph::Models::DirectoryObject # The country/region in which the user is located; for example, US or UK. Maximum length is 128 characters. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values). @country ## - # The date and time the user was created, in ISO 8601 format and in UTC time. The value cannot be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Azure AD. Property is null for some users created before June 2018 and on-premises users that were synced to Azure AD before June 2018. Read-only. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in). + # The date and time the user was created, in ISO 8601 format and in UTC time. The value cannot be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Azure AD. Property is null for some users created before June 2018 and on-premises users that were synced to Azure AD before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in). @created_date_time ## # Directory objects that were created by the user. Read-only. Nullable. @@ -718,14 +718,14 @@ def country=(value) @country = value end ## - ## Gets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and in UTC time. The value cannot be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Azure AD. Property is null for some users created before June 2018 and on-premises users that were synced to Azure AD before June 2018. Read-only. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in). + ## Gets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and in UTC time. The value cannot be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Azure AD. Property is null for some users created before June 2018 and on-premises users that were synced to Azure AD before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in). ## @return a date_time ## def created_date_time return @created_date_time end ## - ## Sets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and in UTC time. The value cannot be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Azure AD. Property is null for some users created before June 2018 and on-premises users that were synced to Azure AD before June 2018. Read-only. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in). + ## Sets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and in UTC time. The value cannot be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Azure AD. Property is null for some users created before June 2018 and on-premises users that were synced to Azure AD before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in). ## @param value Value to set for the created_date_time property. ## @return a void ## diff --git a/lib/teams/item/channels/item/messages/item/replies/replies_request_builder.rb b/lib/teams/item/channels/item/messages/item/replies/replies_request_builder.rb index 13ee9995a4..a67c54ff4d 100644 --- a/lib/teams/item/channels/item/messages/item/replies/replies_request_builder.rb +++ b/lib/teams/item/channels/item/messages/item/replies/replies_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/teams/item/primary_channel/messages/item/replies/replies_request_builder.rb b/lib/teams/item/primary_channel/messages/item/replies/replies_request_builder.rb index acea2b8545..1450e1f253 100644 --- a/lib/teams/item/primary_channel/messages/item/replies/replies_request_builder.rb +++ b/lib/teams/item/primary_channel/messages/item/replies/replies_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/teamwork/deleted_teams/count/count.rb b/lib/teamwork/deleted_teams/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/count/count_request_builder.rb b/lib/teamwork/deleted_teams/count/count_request_builder.rb new file mode 100644 index 0000000000..9b074f4a3d --- /dev/null +++ b/lib/teamwork/deleted_teams/count/count_request_builder.rb @@ -0,0 +1,118 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors/o_data_error' +require_relative '../../teamwork' +require_relative '../deleted_teams' +require_relative './count' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'text/plain') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/deleted_teams.rb b/lib/teamwork/deleted_teams/deleted_teams.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/deleted_teams_request_builder.rb b/lib/teamwork/deleted_teams/deleted_teams_request_builder.rb new file mode 100644 index 0000000000..c00395217d --- /dev/null +++ b/lib/teamwork/deleted_teams/deleted_teams_request_builder.rb @@ -0,0 +1,207 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../microsoft_graph' +require_relative '../../models/deleted_team' +require_relative '../../models/deleted_team_collection_response' +require_relative '../../models/o_data_errors/o_data_error' +require_relative '../teamwork' +require_relative './count/count_request_builder' +require_relative './deleted_teams' +require_relative './microsoft_graph_get_all_messages/microsoft_graph_get_all_messages_request_builder' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + ## + # Provides operations to manage the deletedTeams property of the microsoft.graph.teamwork entity. + class DeletedTeamsRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Teamwork::DeletedTeams::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the getAllMessages method. + def microsoft_graph_get_all_messages() + return MicrosoftGraph::Teamwork::DeletedTeams::MicrosoftGraphGetAllMessages::MicrosoftGraphGetAllMessagesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new DeletedTeamsRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get deletedTeams from teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of deleted_team_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeletedTeamCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to deletedTeams for teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of deleted_team + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeletedTeam.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get deletedTeams from teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Create new navigation property to deletedTeams for teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Get deletedTeams from teamwork + class DeletedTeamsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class DeletedTeamsRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class DeletedTeamsRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/channels.rb b/lib/teamwork/deleted_teams/item/channels/channels.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/channels_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/channels_request_builder.rb new file mode 100644 index 0000000000..83f566c3b9 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/channels_request_builder.rb @@ -0,0 +1,213 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/channel' +require_relative '../../../../models/channel_collection_response' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../teamwork' +require_relative '../../deleted_teams' +require_relative '../item' +require_relative './channels' +require_relative './count/count_request_builder' +require_relative './microsoft_graph_get_all_messages/microsoft_graph_get_all_messages_request_builder' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + ## + # Provides operations to manage the channels property of the microsoft.graph.deletedTeam entity. + class ChannelsRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the getAllMessages method. + def microsoft_graph_get_all_messages() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::MicrosoftGraphGetAllMessages::MicrosoftGraphGetAllMessagesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new ChannelsRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get channels from teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of channel_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChannelCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to channels for teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of channel + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get channels from teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Create new navigation property to channels for teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Get channels from teamwork + class ChannelsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChannelsRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChannelsRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/count/count.rb b/lib/teamwork/deleted_teams/item/channels/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/count/count_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/count/count_request_builder.rb new file mode 100644 index 0000000000..3f523133e9 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/count/count_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../teamwork' +require_relative '../../../deleted_teams' +require_relative '../../item' +require_relative '../channels' +require_relative './count' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'text/plain') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/channel_item_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/channel_item_request_builder.rb new file mode 100644 index 0000000000..94b8511431 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/channel_item_request_builder.rb @@ -0,0 +1,317 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/channel' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../teamwork' +require_relative '../../../deleted_teams' +require_relative '../../item' +require_relative '../channels' +require_relative './files_folder/files_folder_request_builder' +require_relative './i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/c1194251461b5b3c90c8db38ef36aff175d061ca4996b8ebe6fa684c673ff88b' +require_relative './item' +require_relative './members/item/conversation_member_item_request_builder' +require_relative './members/members_request_builder' +require_relative './messages/item/chat_message_item_request_builder' +require_relative './messages/messages_request_builder' +require_relative './microsoft_graph_complete_migration/microsoft_graph_complete_migration_request_builder' +require_relative './microsoft_graph_provision_email/microsoft_graph_provision_email_request_builder' +require_relative './microsoft_graph_remove_email/microsoft_graph_remove_email_request_builder' +require_relative './shared_with_teams/item/shared_with_channel_team_info_item_request_builder' +require_relative './shared_with_teams/shared_with_teams_request_builder' +require_relative './tabs/item/teams_tab_item_request_builder' +require_relative './tabs/tabs_request_builder' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + ## + # Provides operations to manage the channels property of the microsoft.graph.deletedTeam entity. + class ChannelItemRequestBuilder + + ## + # Provides operations to manage the filesFolder property of the microsoft.graph.channel entity. + def files_folder() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::FilesFolder::FilesFolderRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the members property of the microsoft.graph.channel entity. + def members() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Members::MembersRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the messages property of the microsoft.graph.channel entity. + def messages() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::MessagesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the completeMigration method. + def microsoft_graph_complete_migration() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::MicrosoftGraphCompleteMigration::MicrosoftGraphCompleteMigrationRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the doesUserHaveAccess method. + def microsoft_graph_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::I36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227::MicrosoftGraphDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the provisionEmail method. + def microsoft_graph_provision_email() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::MicrosoftGraphProvisionEmail::MicrosoftGraphProvisionEmailRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the removeEmail method. + def microsoft_graph_remove_email() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::MicrosoftGraphRemoveEmail::MicrosoftGraphRemoveEmailRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity. + def shared_with_teams() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::SharedWithTeams::SharedWithTeamsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to manage the tabs property of the microsoft.graph.channel entity. + def tabs() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Tabs::TabsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new ChannelItemRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Delete navigation property channels for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get channels from teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of channel + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Provides operations to manage the members property of the microsoft.graph.channel entity. + ## @param id Unique identifier of the item + ## @return a conversation_member_item_request_builder + ## + def members_by_id(id) + raise StandardError, 'id cannot be null' if id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["conversationMember%2Did"] = id + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Members::Item::ConversationMemberItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Provides operations to manage the messages property of the microsoft.graph.channel entity. + ## @param id Unique identifier of the item + ## @return a chat_message_item_request_builder + ## + def messages_by_id(id) + raise StandardError, 'id cannot be null' if id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["chatMessage%2Did"] = id + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::ChatMessageItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Update the navigation property channels in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of channel + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity. + ## @param id Unique identifier of the item + ## @return a shared_with_channel_team_info_item_request_builder + ## + def shared_with_teams_by_id(id) + raise StandardError, 'id cannot be null' if id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["sharedWithChannelTeamInfo%2Did"] = id + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::SharedWithTeams::Item::SharedWithChannelTeamInfoItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Provides operations to manage the tabs property of the microsoft.graph.channel entity. + ## @param id Unique identifier of the item + ## @return a teams_tab_item_request_builder + ## + def tabs_by_id(id) + raise StandardError, 'id cannot be null' if id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["teamsTab%2Did"] = id + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Tabs::Item::TeamsTabItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Delete navigation property channels for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Get channels from teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Update the navigation property channels in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChannelItemRequestBuilderDeleteRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + + ## + # Get channels from teamwork + class ChannelItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChannelItemRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChannelItemRequestBuilderPatchRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/files_folder/content/content.rb b/lib/teamwork/deleted_teams/item/channels/item/files_folder/content/content.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/files_folder/content/content_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/files_folder/content/content_request_builder.rb new file mode 100644 index 0000000000..b31c613897 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/files_folder/content/content_request_builder.rb @@ -0,0 +1,144 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../files_folder' +require_relative './content' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module FilesFolder + module Content + ## + # Provides operations to manage the media for the teamwork entity. + class ContentRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new ContentRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/filesFolder/content" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## The content stream, if the item represents a file. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of binary + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, Binary, error_mapping) + end + ## + ## The content stream, if the item represents a file. + ## @param body Binary request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def put(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_put_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## The content stream, if the item represents a file. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## The content stream, if the item represents a file. + ## @param body Binary request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_put_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PUT + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "", body) + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ContentRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ContentRequestBuilderPutRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/files_folder/files_folder.rb b/lib/teamwork/deleted_teams/item/channels/item/files_folder/files_folder.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/files_folder/files_folder_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/files_folder/files_folder_request_builder.rb new file mode 100644 index 0000000000..b1028e36d2 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/files_folder/files_folder_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/drive_item' +require_relative '../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../teamwork' +require_relative '../../../../deleted_teams' +require_relative '../../../item' +require_relative '../../channels' +require_relative '../item' +require_relative './content/content_request_builder' +require_relative './files_folder' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module FilesFolder + ## + # Provides operations to manage the filesFolder property of the microsoft.graph.channel entity. + class FilesFolderRequestBuilder + + ## + # Provides operations to manage the media for the teamwork entity. + def content() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::FilesFolder::Content::ContentRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new FilesFolderRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/filesFolder{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the metadata for the location where the files of a channel are stored. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of drive_item + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the metadata for the location where the files of a channel are stored. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the metadata for the location where the files of a channel are stored. + class FilesFolderRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class FilesFolderRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/c1194251461b5b3c90c8db38ef36aff175d061ca4996b8ebe6fa684c673ff88b.rb b/lib/teamwork/deleted_teams/item/channels/item/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/c1194251461b5b3c90c8db38ef36aff175d061ca4996b8ebe6fa684c673ff88b.rb new file mode 100644 index 0000000000..c7758f3589 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/c1194251461b5b3c90c8db38ef36aff175d061ca4996b8ebe6fa684c673ff88b.rb @@ -0,0 +1,114 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../teamwork' +require_relative '../../../../deleted_teams' +require_relative '../../../item' +require_relative '../../channels' +require_relative '../item' +require_relative './i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module I36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227 + ## + # Provides operations to call the doesUserHaveAccess method. + class MicrosoftGraphDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/microsoft.graph.doesUserHaveAccess(userId='@userId',tenantId='@tenantId',userPrincipalName='@userPrincipalName'){?userId*,tenantId*,userPrincipalName*}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Invoke function doesUserHaveAccess + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::I36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227::DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function doesUserHaveAccess + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Invoke function doesUserHaveAccess + class MicrosoftGraphDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters + + ## + # Usage: tenantId='@tenantId' + attr_accessor :tenant_id + ## + # Usage: userId='@userId' + attr_accessor :user_id + ## + # Usage: userPrincipalName='@userPrincipalName' + attr_accessor :user_principal_name + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897.rb b/lib/teamwork/deleted_teams/item/channels/item/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897.rb new file mode 100644 index 0000000000..02cfed9aa2 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897.rb @@ -0,0 +1,97 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../teamwork' +require_relative '../../../../deleted_teams' +require_relative '../../../item' +require_relative '../../channels' +require_relative '../item' +require_relative './i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module I36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227 + class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The value property + @value + ## + ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parseNode The parse node to use to read the discriminator value and create the object + ## @return a does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "value" => lambda {|n| @value = n.get_boolean_value() }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_boolean_value("value", @value) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the value property value. The value property + ## @return a boolean + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227.rb b/lib/teamwork/deleted_teams/item/channels/item/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227.rb new file mode 100644 index 0000000000..47cf3e707f --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227/i36f5b8477c6e0b8381f1fe57d51b36baa914f57f3b0c51db1cfca75bc34f6227.rb @@ -0,0 +1 @@ +require_relative 'c41596d4fbffe103bb724f3952f09f0aa3c5ec4e2176790cca62f27819ff9897' diff --git a/lib/teamwork/deleted_teams/item/channels/item/item.rb b/lib/teamwork/deleted_teams/item/channels/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/members/count/count.rb b/lib/teamwork/deleted_teams/item/channels/item/members/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/members/count/count_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/members/count/count_request_builder.rb new file mode 100644 index 0000000000..cf538ea394 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/members/count/count_request_builder.rb @@ -0,0 +1,130 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../members' +require_relative './count' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Members + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'text/plain') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/members/item/conversation_member_item_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/members/item/conversation_member_item_request_builder.rb new file mode 100644 index 0000000000..df085394a8 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/members/item/conversation_member_item_request_builder.rb @@ -0,0 +1,221 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/conversation_member' +require_relative '../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../members' +require_relative './item' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Members + module Item + ## + # Provides operations to manage the members property of the microsoft.graph.channel entity. + class ConversationMemberItemRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new ConversationMemberItemRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Delete navigation property members for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## A collection of membership records associated with the channel. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property members in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property members for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## A collection of membership records associated with the channel. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Update the navigation property members in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ConversationMemberItemRequestBuilderDeleteRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + + ## + # A collection of membership records associated with the channel. + class ConversationMemberItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ConversationMemberItemRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ConversationMemberItemRequestBuilderPatchRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/members/item/item.rb b/lib/teamwork/deleted_teams/item/channels/item/members/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/members/members.rb b/lib/teamwork/deleted_teams/item/channels/item/members/members.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/members/members_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/members/members_request_builder.rb new file mode 100644 index 0000000000..ed00d4faaa --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/members/members_request_builder.rb @@ -0,0 +1,219 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/conversation_member' +require_relative '../../../../../../models/conversation_member_collection_response' +require_relative '../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../teamwork' +require_relative '../../../../deleted_teams' +require_relative '../../../item' +require_relative '../../channels' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './members' +require_relative './microsoft_graph_add/microsoft_graph_add_request_builder' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Members + ## + # Provides operations to manage the members property of the microsoft.graph.channel entity. + class MembersRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Members::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the add method. + def microsoft_graph_add() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Members::MicrosoftGraphAdd::MicrosoftGraphAddRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MembersRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMemberCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Add a conversationMember to a channel. + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Add a conversationMember to a channel. + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + class MembersRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MembersRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MembersRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/add_post_request_body.rb b/lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/add_post_request_body.rb new file mode 100644 index 0000000000..788e3a6cdb --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/add_post_request_body.rb @@ -0,0 +1,101 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/conversation_member' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../members' +require_relative './microsoft_graph_add' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Members + module MicrosoftGraphAdd + class AddPostRequestBody + include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable + ## + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + @additional_data + ## + # The values property + @values + ## + ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @return a i_dictionary + ## + def additional_data + return @additional_data + end + ## + ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + ## @param value Value to set for the AdditionalData property. + ## @return a void + ## + def additional_data=(value) + @additional_data = value + end + ## + ## Instantiates a new addPostRequestBody and sets the default values. + ## @return a void + ## + def initialize() + @additional_data = Hash.new + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parseNode The parse node to use to read the discriminator value and create the object + ## @return a add_post_request_body + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddPostRequestBody.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return { + "values" => lambda {|n| @values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }) }, + } + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + writer.write_collection_of_object_values("values", @values) + writer.write_additional_data(@additional_data) + end + ## + ## Gets the values property value. The values property + ## @return a conversation_member + ## + def values + return @values + end + ## + ## Sets the values property value. The values property + ## @param value Value to set for the values property. + ## @return a void + ## + def values=(value) + @values = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/add_response.rb b/lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/add_response.rb new file mode 100644 index 0000000000..07a222ab75 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/add_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/action_result_part' +require_relative '../../../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../members' +require_relative './microsoft_graph_add' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Members + module MicrosoftGraphAdd + class AddResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new addResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parseNode The parse node to use to read the discriminator value and create the object + ## @return a add_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return AddResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ActionResultPart.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a action_result_part + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/microsoft_graph_add.rb b/lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/microsoft_graph_add.rb new file mode 100644 index 0000000000..629ad98abe --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/microsoft_graph_add.rb @@ -0,0 +1,2 @@ +require_relative 'add_post_request_body' +require_relative 'add_response' diff --git a/lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/microsoft_graph_add_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/microsoft_graph_add_request_builder.rb new file mode 100644 index 0000000000..922f79e1bf --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/members/microsoft_graph_add/microsoft_graph_add_request_builder.rb @@ -0,0 +1,103 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../members' +require_relative './microsoft_graph_add' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Members + module MicrosoftGraphAdd + ## + # Provides operations to call the add method. + class MicrosoftGraphAddRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphAddRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members/microsoft.graph.add" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of add_response + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Members::MicrosoftGraphAdd::AddResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphAddRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/count/count.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/count/count_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/count/count_request_builder.rb new file mode 100644 index 0000000000..38cc560c1e --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/count/count_request_builder.rb @@ -0,0 +1,130 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../messages' +require_relative './count' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'text/plain') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/chat_message_item_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/chat_message_item_request_builder.rb new file mode 100644 index 0000000000..a0f60c642b --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/chat_message_item_request_builder.rb @@ -0,0 +1,269 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/chat_message' +require_relative '../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../messages' +require_relative './hosted_contents/hosted_contents_request_builder' +require_relative './hosted_contents/item/chat_message_hosted_content_item_request_builder' +require_relative './item' +require_relative './microsoft_graph_soft_delete/microsoft_graph_soft_delete_request_builder' +require_relative './microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete_request_builder' +require_relative './replies/item/chat_message_item_request_builder' +require_relative './replies/replies_request_builder' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + ## + # Provides operations to manage the messages property of the microsoft.graph.channel entity. + class ChatMessageItemRequestBuilder + + ## + # Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. + def hosted_contents() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::HostedContents::HostedContentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the softDelete method. + def microsoft_graph_soft_delete() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::MicrosoftGraphSoftDelete::MicrosoftGraphSoftDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the undoSoftDelete method. + def microsoft_graph_undo_soft_delete() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::MicrosoftGraphUndoSoftDelete::MicrosoftGraphUndoSoftDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. + def replies() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::Replies::RepliesRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new ChatMessageItemRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Delete navigation property messages for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## A collection of all the messages in the channel. A navigation property. Nullable. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. + ## @param id Unique identifier of the item + ## @return a chat_message_hosted_content_item_request_builder + ## + def hosted_contents_by_id(id) + raise StandardError, 'id cannot be null' if id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["chatMessageHostedContent%2Did"] = id + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::HostedContents::Item::ChatMessageHostedContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Update the navigation property messages in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. + ## @param id Unique identifier of the item + ## @return a chat_message_item_request_builder + ## + def replies_by_id(id) + raise StandardError, 'id cannot be null' if id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["chatMessage%2Did1"] = id + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::Replies::Item::ChatMessageItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Delete navigation property messages for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## A collection of all the messages in the channel. A navigation property. Nullable. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Update the navigation property messages in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChatMessageItemRequestBuilderDeleteRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + + ## + # A collection of all the messages in the channel. A navigation property. Nullable. + class ChatMessageItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChatMessageItemRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChatMessageItemRequestBuilderPatchRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/count/count.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/count/count_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/count/count_request_builder.rb new file mode 100644 index 0000000000..58db472c55 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/count/count_request_builder.rb @@ -0,0 +1,136 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../teamwork' +require_relative '../../../../../../../deleted_teams' +require_relative '../../../../../../item' +require_relative '../../../../../channels' +require_relative '../../../../item' +require_relative '../../../messages' +require_relative '../../item' +require_relative '../hosted_contents' +require_relative './count' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module HostedContents + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'text/plain') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/hosted_contents.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/hosted_contents.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/hosted_contents_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/hosted_contents_request_builder.rb new file mode 100644 index 0000000000..7aad76202a --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/hosted_contents_request_builder.rb @@ -0,0 +1,219 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/chat_message_hosted_content' +require_relative '../../../../../../../../models/chat_message_hosted_content_collection_response' +require_relative '../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../teamwork' +require_relative '../../../../../../deleted_teams' +require_relative '../../../../../item' +require_relative '../../../../channels' +require_relative '../../../item' +require_relative '../../messages' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './hosted_contents' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module HostedContents + ## + # Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. + class HostedContentsRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::HostedContents::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new HostedContentsRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message_hosted_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to hostedContents for teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message_hosted_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Create new navigation property to hostedContents for teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + class HostedContentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class HostedContentsRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class HostedContentsRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb new file mode 100644 index 0000000000..bdb92cce5d --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb @@ -0,0 +1,227 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/chat_message_hosted_content' +require_relative '../../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../teamwork' +require_relative '../../../../../../../deleted_teams' +require_relative '../../../../../../item' +require_relative '../../../../../channels' +require_relative '../../../../item' +require_relative '../../../messages' +require_relative '../../item' +require_relative '../hosted_contents' +require_relative './item' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module HostedContents + module Item + ## + # Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. + class ChatMessageHostedContentItemRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new ChatMessageHostedContentItemRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Delete navigation property hostedContents for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message_hosted_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property hostedContents in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message_hosted_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property hostedContents for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Update the navigation property hostedContents in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + + ## + # Content in a message hosted by Microsoft Teams - for example, images or code snippets. + class ChatMessageHostedContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/item/item.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/hosted_contents/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/item.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete_request_builder.rb new file mode 100644 index 0000000000..67ec7b945b --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../teamwork' +require_relative '../../../../../../deleted_teams' +require_relative '../../../../../item' +require_relative '../../../../channels' +require_relative '../../../item' +require_relative '../../messages' +require_relative '../item' +require_relative './microsoft_graph_soft_delete' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module MicrosoftGraphSoftDelete + ## + # Provides operations to call the softDelete method. + class MicrosoftGraphSoftDeleteRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphSoftDeleteRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/microsoft.graph.softDelete" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Invoke action softDelete + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action softDelete + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphSoftDeleteRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete_request_builder.rb new file mode 100644 index 0000000000..c0dd8d7746 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete_request_builder.rb @@ -0,0 +1,100 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../teamwork' +require_relative '../../../../../../deleted_teams' +require_relative '../../../../../item' +require_relative '../../../../channels' +require_relative '../../../item' +require_relative '../../messages' +require_relative '../item' +require_relative './microsoft_graph_undo_soft_delete' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module MicrosoftGraphUndoSoftDelete + ## + # Provides operations to call the undoSoftDelete method. + class MicrosoftGraphUndoSoftDeleteRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphUndoSoftDeleteRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/microsoft.graph.undoSoftDelete" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Invoke action undoSoftDelete + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action undoSoftDelete + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphUndoSoftDeleteRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/count/count.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/count/count_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/count/count_request_builder.rb new file mode 100644 index 0000000000..8dd0c7c0cf --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/count/count_request_builder.rb @@ -0,0 +1,136 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../teamwork' +require_relative '../../../../../../../deleted_teams' +require_relative '../../../../../../item' +require_relative '../../../../../channels' +require_relative '../../../../item' +require_relative '../../../messages' +require_relative '../../item' +require_relative '../replies' +require_relative './count' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module Replies + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'text/plain') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/chat_message_item_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/chat_message_item_request_builder.rb new file mode 100644 index 0000000000..ce47a05752 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/chat_message_item_request_builder.rb @@ -0,0 +1,257 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/chat_message' +require_relative '../../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../teamwork' +require_relative '../../../../../../../deleted_teams' +require_relative '../../../../../../item' +require_relative '../../../../../channels' +require_relative '../../../../item' +require_relative '../../../messages' +require_relative '../../item' +require_relative '../replies' +require_relative './hosted_contents/hosted_contents_request_builder' +require_relative './hosted_contents/item/chat_message_hosted_content_item_request_builder' +require_relative './item' +require_relative './microsoft_graph_soft_delete/microsoft_graph_soft_delete_request_builder' +require_relative './microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete_request_builder' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module Replies + module Item + ## + # Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. + class ChatMessageItemRequestBuilder + + ## + # Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. + def hosted_contents() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::Replies::Item::HostedContents::HostedContentsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the softDelete method. + def microsoft_graph_soft_delete() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::Replies::Item::MicrosoftGraphSoftDelete::MicrosoftGraphSoftDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the undoSoftDelete method. + def microsoft_graph_undo_soft_delete() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::Replies::Item::MicrosoftGraphUndoSoftDelete::MicrosoftGraphUndoSoftDeleteRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new ChatMessageItemRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Delete navigation property replies for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Replies for a specified message. Supports $expand for channel messages. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. + ## @param id Unique identifier of the item + ## @return a chat_message_hosted_content_item_request_builder + ## + def hosted_contents_by_id(id) + raise StandardError, 'id cannot be null' if id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["chatMessageHostedContent%2Did"] = id + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::Replies::Item::HostedContents::Item::ChatMessageHostedContentItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Update the navigation property replies in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property replies for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Replies for a specified message. Supports $expand for channel messages. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Update the navigation property replies in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChatMessageItemRequestBuilderDeleteRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + + ## + # Replies for a specified message. Supports $expand for channel messages. + class ChatMessageItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChatMessageItemRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChatMessageItemRequestBuilderPatchRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/count/count.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/count/count_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/count/count_request_builder.rb new file mode 100644 index 0000000000..1ed17ebf15 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/count/count_request_builder.rb @@ -0,0 +1,142 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../../../teamwork' +require_relative '../../../../../../../../../deleted_teams' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../channels' +require_relative '../../../../../../item' +require_relative '../../../../../messages' +require_relative '../../../../item' +require_relative '../../../replies' +require_relative '../../item' +require_relative '../hosted_contents' +require_relative './count' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module Replies + module Item + module HostedContents + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'text/plain') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/hosted_contents.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/hosted_contents.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb new file mode 100644 index 0000000000..9345e8ae3d --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.rb @@ -0,0 +1,225 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/chat_message_hosted_content' +require_relative '../../../../../../../../../../models/chat_message_hosted_content_collection_response' +require_relative '../../../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../../teamwork' +require_relative '../../../../../../../../deleted_teams' +require_relative '../../../../../../../item' +require_relative '../../../../../../channels' +require_relative '../../../../../item' +require_relative '../../../../messages' +require_relative '../../../item' +require_relative '../../replies' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './hosted_contents' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module Replies + module Item + module HostedContents + ## + # Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. + class HostedContentsRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::Replies::Item::HostedContents::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new HostedContentsRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message_hosted_content_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to hostedContents for teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message_hosted_content + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Create new navigation property to hostedContents for teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + class HostedContentsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class HostedContentsRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class HostedContentsRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb new file mode 100644 index 0000000000..be51cd8051 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/item/chat_message_hosted_content_item_request_builder.rb @@ -0,0 +1,233 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../../models/chat_message_hosted_content' +require_relative '../../../../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../../../teamwork' +require_relative '../../../../../../../../../deleted_teams' +require_relative '../../../../../../../../item' +require_relative '../../../../../../../channels' +require_relative '../../../../../../item' +require_relative '../../../../../messages' +require_relative '../../../../item' +require_relative '../../../replies' +require_relative '../../item' +require_relative '../hosted_contents' +require_relative './item' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module Replies + module Item + module HostedContents + module Item + ## + # Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. + class ChatMessageHostedContentItemRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new ChatMessageHostedContentItemRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Delete navigation property hostedContents for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message_hosted_content + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property hostedContents in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message_hosted_content + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageHostedContent.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property hostedContents for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Content in a message hosted by Microsoft Teams - for example, images or code snippets. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Update the navigation property hostedContents in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + + ## + # Content in a message hosted by Microsoft Teams - for example, images or code snippets. + class ChatMessageHostedContentItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/item/item.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/hosted_contents/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/item.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete_request_builder.rb new file mode 100644 index 0000000000..61e07926fc --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_soft_delete/microsoft_graph_soft_delete_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../../teamwork' +require_relative '../../../../../../../../deleted_teams' +require_relative '../../../../../../../item' +require_relative '../../../../../../channels' +require_relative '../../../../../item' +require_relative '../../../../messages' +require_relative '../../../item' +require_relative '../../replies' +require_relative '../item' +require_relative './microsoft_graph_soft_delete' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module Replies + module Item + module MicrosoftGraphSoftDelete + ## + # Provides operations to call the softDelete method. + class MicrosoftGraphSoftDeleteRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphSoftDeleteRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/microsoft.graph.softDelete" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Invoke action softDelete + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action softDelete + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphSoftDeleteRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete_request_builder.rb new file mode 100644 index 0000000000..2ab3679ca0 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/microsoft_graph_undo_soft_delete/microsoft_graph_undo_soft_delete_request_builder.rb @@ -0,0 +1,106 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../../teamwork' +require_relative '../../../../../../../../deleted_teams' +require_relative '../../../../../../../item' +require_relative '../../../../../../channels' +require_relative '../../../../../item' +require_relative '../../../../messages' +require_relative '../../../item' +require_relative '../../replies' +require_relative '../item' +require_relative './microsoft_graph_undo_soft_delete' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module Replies + module Item + module MicrosoftGraphUndoSoftDelete + ## + # Provides operations to call the undoSoftDelete method. + class MicrosoftGraphUndoSoftDeleteRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphUndoSoftDeleteRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/microsoft.graph.undoSoftDelete" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Invoke action undoSoftDelete + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Invoke action undoSoftDelete + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphUndoSoftDeleteRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/microsoft_graph_delta/delta_response.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/microsoft_graph_delta/delta_response.rb new file mode 100644 index 0000000000..8f7e311ddb --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/microsoft_graph_delta/delta_response.rb @@ -0,0 +1,90 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/base_delta_function_response' +require_relative '../../../../../../../../../models/chat_message' +require_relative '../../../../../../../../teamwork' +require_relative '../../../../../../../deleted_teams' +require_relative '../../../../../../item' +require_relative '../../../../../channels' +require_relative '../../../../item' +require_relative '../../../messages' +require_relative '../../item' +require_relative '../replies' +require_relative './microsoft_graph_delta' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module Replies + module MicrosoftGraphDelta + class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new deltaResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parseNode The parse node to use to read the discriminator value and create the object + ## @return a delta_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/microsoft_graph_delta/microsoft_graph_delta.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/microsoft_graph_delta/microsoft_graph_delta.rb new file mode 100644 index 0000000000..0c348d20cb --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/microsoft_graph_delta/microsoft_graph_delta.rb @@ -0,0 +1 @@ +require_relative 'delta_response' diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/microsoft_graph_delta/microsoft_graph_delta_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/microsoft_graph_delta/microsoft_graph_delta_request_builder.rb new file mode 100644 index 0000000000..8999d38307 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/microsoft_graph_delta/microsoft_graph_delta_request_builder.rb @@ -0,0 +1,161 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../teamwork' +require_relative '../../../../../../../deleted_teams' +require_relative '../../../../../../item' +require_relative '../../../../../channels' +require_relative '../../../../item' +require_relative '../../../messages' +require_relative '../../item' +require_relative '../replies' +require_relative './microsoft_graph_delta' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module Replies + module MicrosoftGraphDelta + ## + # Provides operations to call the delta method. + class MicrosoftGraphDeltaRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphDeltaRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/microsoft.graph.delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Invoke function delta + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of delta_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::Replies::MicrosoftGraphDelta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function delta + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Invoke function delta + class MicrosoftGraphDeltaRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphDeltaRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.rb new file mode 100644 index 0000000000..fc6be7f7b5 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.rb @@ -0,0 +1,225 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/chat_message' +require_relative '../../../../../../../../models/chat_message_collection_response' +require_relative '../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../teamwork' +require_relative '../../../../../../deleted_teams' +require_relative '../../../../../item' +require_relative '../../../../channels' +require_relative '../../../item' +require_relative '../../messages' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './microsoft_graph_delta/microsoft_graph_delta_request_builder' +require_relative './replies' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module Item + module Replies + ## + # Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. + class RepliesRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::Replies::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delta method. + def microsoft_graph_delta() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Item::Replies::MicrosoftGraphDelta::MicrosoftGraphDeltaRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new RepliesRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create a new reply to a chatMessage in a specified channel. + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Create a new reply to a chatMessage in a specified channel. + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + class RepliesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class RepliesRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class RepliesRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/messages.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/messages.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.rb new file mode 100644 index 0000000000..9f553fe862 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.rb @@ -0,0 +1,219 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/chat_message' +require_relative '../../../../../../models/chat_message_collection_response' +require_relative '../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../teamwork' +require_relative '../../../../deleted_teams' +require_relative '../../../item' +require_relative '../../channels' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './messages' +require_relative './microsoft_graph_delta/microsoft_graph_delta_request_builder' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + ## + # Provides operations to manage the messages property of the microsoft.graph.channel entity. + class MessagesRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Provides operations to call the delta method. + def microsoft_graph_delta() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::MicrosoftGraphDelta::MicrosoftGraphDeltaRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MessagesRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the **tenantId** property on the channel). + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Send a new chatMessage in the specified channel. + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of chat_message + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the **tenantId** property on the channel). + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Send a new chatMessage in the specified channel. + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the **tenantId** property on the channel). + class MessagesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MessagesRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MessagesRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/microsoft_graph_delta/delta_response.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/microsoft_graph_delta/delta_response.rb new file mode 100644 index 0000000000..7e34c46762 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/microsoft_graph_delta/delta_response.rb @@ -0,0 +1,84 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/base_delta_function_response' +require_relative '../../../../../../../models/chat_message' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../messages' +require_relative './microsoft_graph_delta' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module MicrosoftGraphDelta + class DeltaResponse < MicrosoftGraph::Models::BaseDeltaFunctionResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new deltaResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parseNode The parse node to use to read the discriminator value and create the object + ## @return a delta_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return DeltaResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/microsoft_graph_delta/microsoft_graph_delta.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/microsoft_graph_delta/microsoft_graph_delta.rb new file mode 100644 index 0000000000..0c348d20cb --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/microsoft_graph_delta/microsoft_graph_delta.rb @@ -0,0 +1 @@ +require_relative 'delta_response' diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/microsoft_graph_delta/microsoft_graph_delta_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/microsoft_graph_delta/microsoft_graph_delta_request_builder.rb new file mode 100644 index 0000000000..8b914c70d6 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/microsoft_graph_delta/microsoft_graph_delta_request_builder.rb @@ -0,0 +1,155 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../messages' +require_relative './microsoft_graph_delta' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Messages + module MicrosoftGraphDelta + ## + # Provides operations to call the delta method. + class MicrosoftGraphDeltaRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphDeltaRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/microsoft.graph.delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Invoke function delta + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of delta_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Messages::MicrosoftGraphDelta::DeltaResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function delta + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Invoke function delta + class MicrosoftGraphDeltaRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphDeltaRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_complete_migration/microsoft_graph_complete_migration.rb b/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_complete_migration/microsoft_graph_complete_migration.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_complete_migration/microsoft_graph_complete_migration_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_complete_migration/microsoft_graph_complete_migration_request_builder.rb new file mode 100644 index 0000000000..5bb3f36ea5 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_complete_migration/microsoft_graph_complete_migration_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../teamwork' +require_relative '../../../../deleted_teams' +require_relative '../../../item' +require_relative '../../channels' +require_relative '../item' +require_relative './microsoft_graph_complete_migration' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module MicrosoftGraphCompleteMigration + ## + # Provides operations to call the completeMigration method. + class MicrosoftGraphCompleteMigrationRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphCompleteMigrationRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/microsoft.graph.completeMigration" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Complete the message migration process by removing `migration mode` from a channel in a team. `Migration mode` is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a **completeMigration** request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Complete the message migration process by removing `migration mode` from a channel in a team. `Migration mode` is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a **completeMigration** request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphCompleteMigrationRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_provision_email/microsoft_graph_provision_email.rb b/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_provision_email/microsoft_graph_provision_email.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_provision_email/microsoft_graph_provision_email_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_provision_email/microsoft_graph_provision_email_request_builder.rb new file mode 100644 index 0000000000..62d9c67316 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_provision_email/microsoft_graph_provision_email_request_builder.rb @@ -0,0 +1,96 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../models/provision_channel_email_result' +require_relative '../../../../../teamwork' +require_relative '../../../../deleted_teams' +require_relative '../../../item' +require_relative '../../channels' +require_relative '../item' +require_relative './microsoft_graph_provision_email' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module MicrosoftGraphProvisionEmail + ## + # Provides operations to call the provisionEmail method. + class MicrosoftGraphProvisionEmailRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphProvisionEmailRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/microsoft.graph.provisionEmail" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a **channel** by default. To have Teams provision an email address, you can call **provisionEmail**, or through the Teams user interface, select **Get email address**, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a **channel**, use the removeEmail method. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of provision_channel_email_result + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ProvisionChannelEmailResult.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a **channel** by default. To have Teams provision an email address, you can call **provisionEmail**, or through the Teams user interface, select **Get email address**, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a **channel**, use the removeEmail method. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphProvisionEmailRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_remove_email/microsoft_graph_remove_email.rb b/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_remove_email/microsoft_graph_remove_email.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_remove_email/microsoft_graph_remove_email_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_remove_email/microsoft_graph_remove_email_request_builder.rb new file mode 100644 index 0000000000..507a0fde7c --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/microsoft_graph_remove_email/microsoft_graph_remove_email_request_builder.rb @@ -0,0 +1,94 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../teamwork' +require_relative '../../../../deleted_teams' +require_relative '../../../item' +require_relative '../../channels' +require_relative '../item' +require_relative './microsoft_graph_remove_email' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module MicrosoftGraphRemoveEmail + ## + # Provides operations to call the removeEmail method. + class MicrosoftGraphRemoveEmailRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphRemoveEmailRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/microsoft.graph.removeEmail" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def post(request_configuration=nil) + request_info = self.to_post_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphRemoveEmailRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/count/count.rb b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/count/count_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/count/count_request_builder.rb new file mode 100644 index 0000000000..86c36d0b9f --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/count/count_request_builder.rb @@ -0,0 +1,130 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../shared_with_teams' +require_relative './count' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module SharedWithTeams + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/sharedWithTeams/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'text/plain') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/allowed_members.rb b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/allowed_members.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/allowed_members_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/allowed_members_request_builder.rb new file mode 100644 index 0000000000..365e05f157 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/allowed_members_request_builder.rb @@ -0,0 +1,170 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/conversation_member_collection_response' +require_relative '../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../teamwork' +require_relative '../../../../../../deleted_teams' +require_relative '../../../../../item' +require_relative '../../../../channels' +require_relative '../../../item' +require_relative '../../shared_with_teams' +require_relative '../item' +require_relative './allowed_members' +require_relative './count/count_request_builder' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module SharedWithTeams + module Item + module AllowedMembers + ## + # Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity. + class AllowedMembersRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::SharedWithTeams::Item::AllowedMembers::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new AllowedMembersRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with `Guest` role- Users who are externally authenticated in the tenant + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMemberCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with `Guest` role- Users who are externally authenticated in the tenant + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with `Guest` role- Users who are externally authenticated in the tenant + class AllowedMembersRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class AllowedMembersRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/count/count.rb b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/count/count_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/count/count_request_builder.rb new file mode 100644 index 0000000000..95bebfd263 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/count/count_request_builder.rb @@ -0,0 +1,136 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../teamwork' +require_relative '../../../../../../../deleted_teams' +require_relative '../../../../../../item' +require_relative '../../../../../channels' +require_relative '../../../../item' +require_relative '../../../shared_with_teams' +require_relative '../../item' +require_relative '../allowed_members' +require_relative './count' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module SharedWithTeams + module Item + module AllowedMembers + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'text/plain') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/item/conversation_member_item_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/item/conversation_member_item_request_builder.rb new file mode 100644 index 0000000000..76a17dadd3 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/item/conversation_member_item_request_builder.rb @@ -0,0 +1,137 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../../models/conversation_member' +require_relative '../../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../teamwork' +require_relative '../../../../../../../deleted_teams' +require_relative '../../../../../../item' +require_relative '../../../../../channels' +require_relative '../../../../item' +require_relative '../../../shared_with_teams' +require_relative '../../item' +require_relative '../allowed_members' +require_relative './item' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module SharedWithTeams + module Item + module AllowedMembers + module Item + ## + # Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity. + class ConversationMemberItemRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new ConversationMemberItemRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/{conversationMember%2Did}{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## A collection of team members who have access to the shared channel. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of conversation_member + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## A collection of team members who have access to the shared channel. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # A collection of team members who have access to the shared channel. + class ConversationMemberItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class ConversationMemberItemRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/item/item.rb b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/allowed_members/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/item.rb b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/shared_with_channel_team_info_item_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/shared_with_channel_team_info_item_request_builder.rb new file mode 100644 index 0000000000..e644ff962e --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/item/shared_with_channel_team_info_item_request_builder.rb @@ -0,0 +1,239 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../models/shared_with_channel_team_info' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../shared_with_teams' +require_relative './allowed_members/allowed_members_request_builder' +require_relative './allowed_members/item/conversation_member_item_request_builder' +require_relative './item' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module SharedWithTeams + module Item + ## + # Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity. + class SharedWithChannelTeamInfoItemRequestBuilder + + ## + # Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity. + def allowed_members() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::SharedWithTeams::Item::AllowedMembers::AllowedMembersRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity. + ## @param id Unique identifier of the item + ## @return a conversation_member_item_request_builder + ## + def allowed_members_by_id(id) + raise StandardError, 'id cannot be null' if id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["conversationMember%2Did"] = id + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::SharedWithTeams::Item::AllowedMembers::Item::ConversationMemberItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new SharedWithChannelTeamInfoItemRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Delete navigation property sharedWithTeams for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## A collection of teams with which a channel is shared. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of shared_with_channel_team_info + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharedWithChannelTeamInfo.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property sharedWithTeams in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of shared_with_channel_team_info + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharedWithChannelTeamInfo.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property sharedWithTeams for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## A collection of teams with which a channel is shared. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Update the navigation property sharedWithTeams in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + + ## + # A collection of teams with which a channel is shared. + class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class SharedWithChannelTeamInfoItemRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class SharedWithChannelTeamInfoItemRequestBuilderPatchRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/shared_with_teams.rb b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/shared_with_teams.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/shared_with_teams_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/shared_with_teams_request_builder.rb new file mode 100644 index 0000000000..d5a4e3224f --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/shared_with_teams/shared_with_teams_request_builder.rb @@ -0,0 +1,213 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../models/shared_with_channel_team_info' +require_relative '../../../../../../models/shared_with_channel_team_info_collection_response' +require_relative '../../../../../teamwork' +require_relative '../../../../deleted_teams' +require_relative '../../../item' +require_relative '../../channels' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './shared_with_teams' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module SharedWithTeams + ## + # Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity. + class SharedWithTeamsRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::SharedWithTeams::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new SharedWithTeamsRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/sharedWithTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a **membershipType** value of `shared`. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of shared_with_channel_team_info_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharedWithChannelTeamInfoCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to sharedWithTeams for teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of shared_with_channel_team_info + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SharedWithChannelTeamInfo.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a **membershipType** value of `shared`. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Create new navigation property to sharedWithTeams for teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a **membershipType** value of `shared`. + class SharedWithTeamsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class SharedWithTeamsRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class SharedWithTeamsRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/tabs/count/count.rb b/lib/teamwork/deleted_teams/item/channels/item/tabs/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/tabs/count/count_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/tabs/count/count_request_builder.rb new file mode 100644 index 0000000000..de86793a97 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/tabs/count/count_request_builder.rb @@ -0,0 +1,130 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../tabs' +require_relative './count' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Tabs + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/tabs/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'text/plain') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/tabs/item/item.rb b/lib/teamwork/deleted_teams/item/channels/item/tabs/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/tabs/item/teams_app/teams_app.rb b/lib/teamwork/deleted_teams/item/channels/item/tabs/item/teams_app/teams_app.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/tabs/item/teams_app/teams_app_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/tabs/item/teams_app/teams_app_request_builder.rb new file mode 100644 index 0000000000..8e1affac2f --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/tabs/item/teams_app/teams_app_request_builder.rb @@ -0,0 +1,134 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../../microsoft_graph' +require_relative '../../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../../models/teams_app' +require_relative '../../../../../../../teamwork' +require_relative '../../../../../../deleted_teams' +require_relative '../../../../../item' +require_relative '../../../../channels' +require_relative '../../../item' +require_relative '../../tabs' +require_relative '../item' +require_relative './teams_app' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Tabs + module Item + module TeamsApp + ## + # Provides operations to manage the teamsApp property of the microsoft.graph.teamsTab entity. + class TeamsAppRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new TeamsAppRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## The application that is linked to the tab. This cannot be changed after tab creation. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of teams_app + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsApp.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## The application that is linked to the tab. This cannot be changed after tab creation. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # The application that is linked to the tab. This cannot be changed after tab creation. + class TeamsAppRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class TeamsAppRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/tabs/item/teams_tab_item_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/tabs/item/teams_tab_item_request_builder.rb new file mode 100644 index 0000000000..36578afeef --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/tabs/item/teams_tab_item_request_builder.rb @@ -0,0 +1,227 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../../microsoft_graph' +require_relative '../../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../../models/teams_tab' +require_relative '../../../../../../teamwork' +require_relative '../../../../../deleted_teams' +require_relative '../../../../item' +require_relative '../../../channels' +require_relative '../../item' +require_relative '../tabs' +require_relative './item' +require_relative './teams_app/teams_app_request_builder' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Tabs + module Item + ## + # Provides operations to manage the tabs property of the microsoft.graph.channel entity. + class TeamsTabItemRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Provides operations to manage the teamsApp property of the microsoft.graph.teamsTab entity. + def teams_app() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Tabs::Item::TeamsApp::TeamsAppRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new TeamsTabItemRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/tabs/{teamsTab%2Did}{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Delete navigation property tabs for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## A collection of all the tabs in the channel. A navigation property. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of teams_tab + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTab.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property tabs in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of teams_tab + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTab.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property tabs for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## A collection of all the tabs in the channel. A navigation property. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Update the navigation property tabs in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class TeamsTabItemRequestBuilderDeleteRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + + ## + # A collection of all the tabs in the channel. A navigation property. + class TeamsTabItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class TeamsTabItemRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class TeamsTabItemRequestBuilderPatchRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/item/tabs/tabs.rb b/lib/teamwork/deleted_teams/item/channels/item/tabs/tabs.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/item/channels/item/tabs/tabs_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/tabs/tabs_request_builder.rb new file mode 100644 index 0000000000..e05b3d15d1 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/item/tabs/tabs_request_builder.rb @@ -0,0 +1,213 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../../microsoft_graph' +require_relative '../../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../../../models/teams_tab' +require_relative '../../../../../../models/teams_tab_collection_response' +require_relative '../../../../../teamwork' +require_relative '../../../../deleted_teams' +require_relative '../../../item' +require_relative '../../channels' +require_relative '../item' +require_relative './count/count_request_builder' +require_relative './tabs' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module Item + module Tabs + ## + # Provides operations to manage the tabs property of the microsoft.graph.channel entity. + class TabsRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::Tabs::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new TabsRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Retrieve the list of tabs in the specified channel within a team. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of teams_tab_collection_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTabCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Create new navigation property to tabs for teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of teams_tab + ## + def post(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_post_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::TeamsTab.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Retrieve the list of tabs in the specified channel within a team. + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Create new navigation property to tabs for teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_post_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :POST + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Retrieve the list of tabs in the specified channel within a team. + class TabsRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class TabsRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class TabsRequestBuilderPostRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/microsoft_graph_get_all_messages/get_all_messages_response.rb b/lib/teamwork/deleted_teams/item/channels/microsoft_graph_get_all_messages/get_all_messages_response.rb new file mode 100644 index 0000000000..4b52aecfb9 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/microsoft_graph_get_all_messages/get_all_messages_response.rb @@ -0,0 +1,78 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/base_collection_pagination_count_response' +require_relative '../../../../../models/chat_message' +require_relative '../../../../teamwork' +require_relative '../../../deleted_teams' +require_relative '../../item' +require_relative '../channels' +require_relative './microsoft_graph_get_all_messages' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module MicrosoftGraphGetAllMessages + class GetAllMessagesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new getAllMessagesResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parseNode The parse node to use to read the discriminator value and create the object + ## @return a get_all_messages_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAllMessagesResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/channels/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages.rb b/lib/teamwork/deleted_teams/item/channels/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages.rb new file mode 100644 index 0000000000..4ce2619319 --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages.rb @@ -0,0 +1 @@ +require_relative 'get_all_messages_response' diff --git a/lib/teamwork/deleted_teams/item/channels/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages_request_builder.rb new file mode 100644 index 0000000000..b1384c56ae --- /dev/null +++ b/lib/teamwork/deleted_teams/item/channels/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages_request_builder.rb @@ -0,0 +1,149 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../teamwork' +require_relative '../../../deleted_teams' +require_relative '../../item' +require_relative '../channels' +require_relative './microsoft_graph_get_all_messages' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + module Channels + module MicrosoftGraphGetAllMessages + ## + # Provides operations to call the getAllMessages method. + class MicrosoftGraphGetAllMessagesRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphGetAllMessagesRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/microsoft.graph.getAllMessages(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Invoke function getAllMessages + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of get_all_messages_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::MicrosoftGraphGetAllMessages::GetAllMessagesResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function getAllMessages + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Invoke function getAllMessages + class MicrosoftGraphGetAllMessagesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphGetAllMessagesRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/deleted_team_item_request_builder.rb b/lib/teamwork/deleted_teams/item/deleted_team_item_request_builder.rb new file mode 100644 index 0000000000..83cf3eeb0e --- /dev/null +++ b/lib/teamwork/deleted_teams/item/deleted_team_item_request_builder.rb @@ -0,0 +1,227 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/deleted_team' +require_relative '../../../models/o_data_errors/o_data_error' +require_relative '../../teamwork' +require_relative '../deleted_teams' +require_relative './channels/channels_request_builder' +require_relative './channels/item/channel_item_request_builder' +require_relative './item' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module Item + ## + # Provides operations to manage the deletedTeams property of the microsoft.graph.teamwork entity. + class DeletedTeamItemRequestBuilder + + ## + # Provides operations to manage the channels property of the microsoft.graph.deletedTeam entity. + def channels() + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::ChannelsRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Provides operations to manage the channels property of the microsoft.graph.deletedTeam entity. + ## @param id Unique identifier of the item + ## @return a channel_item_request_builder + ## + def channels_by_id(id) + raise StandardError, 'id cannot be null' if id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["channel%2Did"] = id + return MicrosoftGraph::Teamwork::DeletedTeams::Item::Channels::Item::ChannelItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## + ## Instantiates a new DeletedTeamItemRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Delete navigation property deletedTeams for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of void + ## + def delete(request_configuration=nil) + request_info = self.to_delete_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, nil, error_mapping) + end + ## + ## Get deletedTeams from teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of deleted_team + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeletedTeam.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Update the navigation property deletedTeams in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of deleted_team + ## + def patch(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = self.to_patch_request_information( + body, request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeletedTeam.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Delete navigation property deletedTeams for teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_delete_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :DELETE + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Get deletedTeams from teamwork + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + ## + ## Update the navigation property deletedTeams in teamwork + ## @param body The request body + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_patch_request_information(body, request_configuration=nil) + raise StandardError, 'body cannot be null' if body.nil? + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :PATCH + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.add_request_options(request_configuration.options) + end + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class DeletedTeamItemRequestBuilderDeleteRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + + ## + # Get deletedTeams from teamwork + class DeletedTeamItemRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class DeletedTeamItemRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class DeletedTeamItemRequestBuilderPatchRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/item/item.rb b/lib/teamwork/deleted_teams/item/item.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/teamwork/deleted_teams/microsoft_graph_get_all_messages/get_all_messages_response.rb b/lib/teamwork/deleted_teams/microsoft_graph_get_all_messages/get_all_messages_response.rb new file mode 100644 index 0000000000..45cdf3073d --- /dev/null +++ b/lib/teamwork/deleted_teams/microsoft_graph_get_all_messages/get_all_messages_response.rb @@ -0,0 +1,72 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/base_collection_pagination_count_response' +require_relative '../../../models/chat_message' +require_relative '../../teamwork' +require_relative '../deleted_teams' +require_relative './microsoft_graph_get_all_messages' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module MicrosoftGraphGetAllMessages + class GetAllMessagesResponse < MicrosoftGraph::Models::BaseCollectionPaginationCountResponse + include MicrosoftKiotaAbstractions::Parsable + ## + # The value property + @value + ## + ## Instantiates a new getAllMessagesResponse and sets the default values. + ## @return a void + ## + def initialize() + super + end + ## + ## Creates a new instance of the appropriate class based on discriminator value + ## @param parseNode The parse node to use to read the discriminator value and create the object + ## @return a get_all_messages_response + ## + def self.create_from_discriminator_value(parse_node) + raise StandardError, 'parse_node cannot be null' if parse_node.nil? + return GetAllMessagesResponse.new + end + ## + ## The deserialization information for the current model + ## @return a i_dictionary + ## + def get_field_deserializers() + return super.merge({ + "value" => lambda {|n| @value = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ChatMessage.create_from_discriminator_value(pn) }) }, + }) + end + ## + ## Serializes information the current object + ## @param writer Serialization writer to use to serialize this model + ## @return a void + ## + def serialize(writer) + raise StandardError, 'writer cannot be null' if writer.nil? + super + writer.write_collection_of_object_values("value", @value) + end + ## + ## Gets the value property value. The value property + ## @return a chat_message + ## + def value + return @value + end + ## + ## Sets the value property value. The value property + ## @param value Value to set for the value property. + ## @return a void + ## + def value=(value) + @value = value + end + end + end + end + end +end diff --git a/lib/teamwork/deleted_teams/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages.rb b/lib/teamwork/deleted_teams/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages.rb new file mode 100644 index 0000000000..4ce2619319 --- /dev/null +++ b/lib/teamwork/deleted_teams/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages.rb @@ -0,0 +1 @@ +require_relative 'get_all_messages_response' diff --git a/lib/teamwork/deleted_teams/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages_request_builder.rb b/lib/teamwork/deleted_teams/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages_request_builder.rb new file mode 100644 index 0000000000..38ac3ad9f3 --- /dev/null +++ b/lib/teamwork/deleted_teams/microsoft_graph_get_all_messages/microsoft_graph_get_all_messages_request_builder.rb @@ -0,0 +1,143 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/o_data_errors/o_data_error' +require_relative '../../teamwork' +require_relative '../deleted_teams' +require_relative './microsoft_graph_get_all_messages' + +module MicrosoftGraph + module Teamwork + module DeletedTeams + module MicrosoftGraphGetAllMessages + ## + # Provides operations to call the getAllMessages method. + class MicrosoftGraphGetAllMessagesRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new MicrosoftGraphGetAllMessagesRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/teamwork/deletedTeams/microsoft.graph.getAllMessages(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Invoke function getAllMessages + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of get_all_messages_response + ## + def get(request_configuration=nil) + request_info = self.to_get_request_information( + request_configuration + ) + error_mapping = Hash.new + error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Teamwork::DeletedTeams::MicrosoftGraphGetAllMessages::GetAllMessagesResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Invoke function getAllMessages + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + def to_get_request_information(request_configuration=nil) + request_info = MicrosoftKiotaAbstractions::RequestInformation.new() + request_info.url_template = @url_template + request_info.path_parameters = @path_parameters + request_info.http_method = :GET + request_info.headers.add('Accept', 'application/json') + unless request_configuration.nil? + request_info.add_headers_from_raw_object(request_configuration.headers) + request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) + request_info.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Invoke function getAllMessages + class MicrosoftGraphGetAllMessagesRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class MicrosoftGraphGetAllMessagesRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end +end diff --git a/lib/teamwork/teamwork_request_builder.rb b/lib/teamwork/teamwork_request_builder.rb index e4b3d326f2..dc8a3957ff 100644 --- a/lib/teamwork/teamwork_request_builder.rb +++ b/lib/teamwork/teamwork_request_builder.rb @@ -2,6 +2,8 @@ require_relative '../microsoft_graph' require_relative '../models/o_data_errors/o_data_error' require_relative '../models/teamwork' +require_relative './deleted_teams/deleted_teams_request_builder' +require_relative './deleted_teams/item/deleted_team_item_request_builder' require_relative './microsoft_graph_send_activity_notification_to_recipients/microsoft_graph_send_activity_notification_to_recipients_request_builder' require_relative './teamwork' require_relative './workforce_integrations/item/workforce_integration_item_request_builder' @@ -13,6 +15,11 @@ module Teamwork # Provides operations to manage the teamwork singleton. class TeamworkRequestBuilder + ## + # Provides operations to manage the deletedTeams property of the microsoft.graph.teamwork entity. + def deleted_teams() + return MicrosoftGraph::Teamwork::DeletedTeams::DeletedTeamsRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Provides operations to call the sendActivityNotificationToRecipients method. def microsoft_graph_send_activity_notification_to_recipients() @@ -47,6 +54,17 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## + ## Provides operations to manage the deletedTeams property of the microsoft.graph.teamwork entity. + ## @param id Unique identifier of the item + ## @return a deleted_team_item_request_builder + ## + def deleted_teams_by_id(id) + raise StandardError, 'id cannot be null' if id.nil? + url_tpl_params = @path_parameters.clone + url_tpl_params["deletedTeam%2Did"] = id + return MicrosoftGraph::Teamwork::DeletedTeams::Item::DeletedTeamItemRequestBuilder.new(url_tpl_params, @request_adapter) + end + ## ## Get teamwork ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of teamwork diff --git a/lib/users/item/calendar/calendar_view/item/attachments/attachments_request_builder.rb b/lib/users/item/calendar/calendar_view/item/attachments/attachments_request_builder.rb index d5d37004c0..3872876d27 100644 --- a/lib/users/item/calendar/calendar_view/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendar/calendar_view/item/attachments/attachments_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb b/lib/users/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb index b09f348e97..28a8772fbf 100644 --- a/lib/users/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendar/events/item/attachments/attachments_request_builder.rb b/lib/users/item/calendar/events/item/attachments/attachments_request_builder.rb index 90000eb7f4..74fb7e6faf 100644 --- a/lib/users/item/calendar/events/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendar/events/item/attachments/attachments_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendar/events/item/instances/item/attachments/attachments_request_builder.rb b/lib/users/item/calendar/events/item/instances/item/attachments/attachments_request_builder.rb index c56ee99d50..20e320b258 100644 --- a/lib/users/item/calendar/events/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendar/events/item/instances/item/attachments/attachments_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb b/lib/users/item/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb index 7c9d19e84e..d3df54dac3 100644 --- a/lib/users/item/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb @@ -77,7 +77,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -111,7 +111,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb b/lib/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb index fccd912c9b..485fe589a2 100644 --- a/lib/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb @@ -81,7 +81,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -115,7 +115,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendar_groups/item/calendars/item/events/item/attachments/attachments_request_builder.rb b/lib/users/item/calendar_groups/item/calendars/item/events/item/attachments/attachments_request_builder.rb index 56581375e3..c5aa24faef 100644 --- a/lib/users/item/calendar_groups/item/calendars/item/events/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendar_groups/item/calendars/item/events/item/attachments/attachments_request_builder.rb @@ -77,7 +77,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -111,7 +111,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb b/lib/users/item/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb index 8d2db432ea..7d530865cd 100644 --- a/lib/users/item/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb @@ -81,7 +81,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -115,7 +115,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendar_view/item/attachments/attachments_request_builder.rb b/lib/users/item/calendar_view/item/attachments/attachments_request_builder.rb index e40551011c..2c3d5d78e8 100644 --- a/lib/users/item/calendar_view/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendar_view/item/attachments/attachments_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb b/lib/users/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb index 9b961ef1bc..81b0312968 100644 --- a/lib/users/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb b/lib/users/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb index b928f1ed0f..aaedcadd5b 100644 --- a/lib/users/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb b/lib/users/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb index e2bd68bce4..f26a225a57 100644 --- a/lib/users/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.rb @@ -77,7 +77,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -111,7 +111,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendars/item/events/item/attachments/attachments_request_builder.rb b/lib/users/item/calendars/item/events/item/attachments/attachments_request_builder.rb index 08919c2a19..8cde1bbe10 100644 --- a/lib/users/item/calendars/item/events/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendars/item/events/item/attachments/attachments_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb b/lib/users/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb index 4231b2f504..4a432acdb0 100644 --- a/lib/users/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.rb @@ -77,7 +77,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -111,7 +111,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/chats/item/messages/item/replies/replies_request_builder.rb b/lib/users/item/chats/item/messages/item/replies/replies_request_builder.rb index 6b60d7cc93..440ab3708f 100644 --- a/lib/users/item/chats/item/messages/item/replies/replies_request_builder.rb +++ b/lib/users/item/chats/item/messages/item/replies/replies_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/chats/item/messages/messages_request_builder.rb b/lib/users/item/chats/item/messages/messages_request_builder.rb index 9f65108482..6fb105dea8 100644 --- a/lib/users/item/chats/item/messages/messages_request_builder.rb +++ b/lib/users/item/chats/item/messages/messages_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/events/item/attachments/attachments_request_builder.rb b/lib/users/item/events/item/attachments/attachments_request_builder.rb index b5bd930b3a..813a0bd77d 100644 --- a/lib/users/item/events/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/events/item/attachments/attachments_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/events/item/instances/item/attachments/attachments_request_builder.rb b/lib/users/item/events/item/instances/item/attachments/attachments_request_builder.rb index d188bdf23c..691a37b760 100644 --- a/lib/users/item/events/item/instances/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/events/item/instances/item/attachments/attachments_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AttachmentCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb b/lib/users/item/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb index cad87428df..99b103f6f4 100644 --- a/lib/users/item/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb +++ b/lib/users/item/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb @@ -77,7 +77,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -111,7 +111,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb b/lib/users/item/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb index 1ff03e7880..57e8b7cbb0 100644 --- a/lib/users/item/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb +++ b/lib/users/item/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new reply to a chatMessage in a specified channel. + ## Create a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/messages/messages_request_builder.rb b/lib/users/item/messages/messages_request_builder.rb index 3f4f735e2c..956f0e3cb5 100644 --- a/lib/users/item/messages/messages_request_builder.rb +++ b/lib/users/item/messages/messages_request_builder.rb @@ -65,7 +65,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::MessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the **message**.- Update the draft later to add content to the **body** or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in **base64** format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of message @@ -99,7 +99,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the **message**.- Update the draft later to add content to the **body** or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in **base64** format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You 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. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/version_information.rb b/lib/version_information.rb index a735d57ece..6acbd18ece 100644 --- a/lib/version_information.rb +++ b/lib/version_information.rb @@ -1,6 +1,6 @@ module MicrosoftGraph class VersionInformation - VERSION = "0.15.0" + VERSION = "0.16.0" end end @@ -8,3 +8,4 @@ class VersionInformation + From 5b851a74c46e4eca7c2b55b0f21b4317c19701d1 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 21 Feb 2023 10:45:52 -0500 Subject: [PATCH 2/2] - adds changelog entry for weekly generation --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba717adc1c..65bf674042 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.16.0] - 2023-02-21 + +### Changed + +- Weekly generation. + ## [0.15.0] - 2023-02-09 ### Changed