From 26d0aed9651c46bf0582935f4c88c37cb89e4418 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Thu, 13 Oct 2022 08:56:05 +0000 Subject: [PATCH 1/2] Update generated files with build 88770 --- .../Applications/Delta/DeltaResponse.cs | 27 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../Applications/GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- .../GetAllMessages/GetAllMessagesResponse.cs | 27 +--- .../Chats/Item/Members/Add/AddResponse.cs | 27 +--- .../Item/Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Replies/Delta/DeltaResponse.cs | 27 +--- .../CallRecords/CallRecordsRequestBuilder.cs | 8 +- ...romDateTimeWithToDateTimeRequestBuilder.cs | 8 +- ...sWithFromDateTimeWithToDateTimeResponse.cs | 28 +--- ...romDateTimeWithToDateTimeRequestBuilder.cs | 8 +- ...sWithFromDateTimeWithToDateTimeResponse.cs | 28 +--- .../GetPresencesByUserIdResponse.cs | 27 +--- .../Generated/Contacts/Delta/DeltaResponse.cs | 27 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../Contacts/GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../Contracts/GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- ...erIdsWithFlaggedAppRegistrationResponse.cs | 28 +--- .../Item/Assign/AssignResponse.cs | 27 +--- .../Item/Assign/AssignResponse.cs | 27 +--- ...etEffectivePermissionsWithScopeResponse.cs | 27 +--- .../Import/ImportResponse.cs | 27 +--- .../Item/ManagedDeviceItemRequestBuilder.cs | 5 + .../Item/Users/UsersRequestBuilder.cs | 125 ++++++++++++++++++ .../Generated/Devices/Delta/DeltaResponse.cs | 27 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../Devices/GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- .../Delta/DeltaResponse.cs | 27 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../DeletedItems/GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- .../AvailableProviderTypesResponse.cs | 28 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- .../DirectoryRoles/Delta/DeltaResponse.cs | 27 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- .../Drive/Items/Item/Delta/DeltaResponse.cs | 27 +--- .../DeltaWithToken/DeltaWithTokenResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Drive/Items/Item/Invite/InviteResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Item/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../GetCompatibleHubContentTypesResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Generated/Drive/Recent/RecentResponse.cs | 27 +--- .../Drive/Root/Delta/DeltaResponse.cs | 27 +--- .../DeltaWithToken/DeltaWithTokenResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Drive/Root/Invite/InviteResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Root/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../Drive/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../SharedWithMe/SharedWithMeResponse.cs | 27 +--- .../Item/Items/Item/Delta/DeltaResponse.cs | 27 +--- .../DeltaWithToken/DeltaWithTokenResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Item/Items/Item/Invite/InviteResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Item/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../GetCompatibleHubContentTypesResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Drives/Item/Recent/RecentResponse.cs | 27 +--- .../Drives/Item/Root/Delta/DeltaResponse.cs | 27 +--- .../DeltaWithToken/DeltaWithTokenResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Drives/Item/Root/Invite/InviteResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Root/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../Item/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../Item/SharedWithMe/SharedWithMeResponse.cs | 27 +--- .../Education/Classes/Delta/DeltaResponse.cs | 27 +--- .../Delta/DeltaResponse.cs | 27 +--- .../Item/Assignments/Delta/DeltaResponse.cs | 27 +--- .../Item/Categories/Delta/DeltaResponse.cs | 27 +--- .../Me/Assignments/Delta/DeltaResponse.cs | 27 +--- .../Item/Categories/Delta/DeltaResponse.cs | 27 +--- .../Education/Schools/Delta/DeltaResponse.cs | 27 +--- .../AdministrativeUnitRequestBuilder.cs | 52 ++++++++ .../Education/Users/Delta/DeltaResponse.cs | 27 +--- .../Item/Assignments/Delta/DeltaResponse.cs | 27 +--- .../Item/Categories/Delta/DeltaResponse.cs | 27 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- .../Generated/Groups/Delta/DeltaResponse.cs | 27 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../Groups/GetByIds/GetByIdsResponse.cs | 27 +--- ...wedCalendarSharingRolesWithUserResponse.cs | 27 +--- .../Item/Calendar/CalendarRequestBuilder.cs | 52 -------- .../CalendarView/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Calendar/Events/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../GetSchedule/GetScheduleResponse.cs | 27 +--- .../Item/CalendarView/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../CheckGrantedPermissionsForAppResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../Item/InReplyTo/InReplyToRequestBuilder.cs | 52 -------- .../Item/Items/Item/Delta/DeltaResponse.cs | 27 +--- .../DeltaWithToken/DeltaWithTokenResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Item/Items/Item/Invite/InviteResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Item/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../GetCompatibleHubContentTypesResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Item/Drives/Item/Recent/RecentResponse.cs | 27 +--- .../Drives/Item/Root/Delta/DeltaResponse.cs | 27 +--- .../DeltaWithToken/DeltaWithTokenResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Drives/Item/Root/Invite/InviteResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Root/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../Item/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../Item/SharedWithMe/SharedWithMeResponse.cs | 27 +--- .../Groups/Item/Events/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- ...oksWithIncludePersonalNotebooksResponse.cs | 27 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- .../Groups/Item/Sites/Add/AddResponse.cs | 27 +--- .../GetCompatibleHubContentTypesResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- ...leContentTypesForListWithListIdResponse.cs | 27 +--- .../GetCompatibleHubContentTypesResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- ...oksWithIncludePersonalNotebooksResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Item/Sites/Remove/RemoveResponse.cs | 27 +--- .../GetAllMessages/GetAllMessagesResponse.cs | 27 +--- .../Channels/Item/Members/Add/AddResponse.cs | 27 +--- .../Item/Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Replies/Delta/DeltaResponse.cs | 27 +--- .../Item/Team/Members/Add/AddResponse.cs | 27 +--- .../PrimaryChannel/Members/Add/AddResponse.cs | 27 +--- .../Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Replies/Delta/DeltaResponse.cs | 27 +--- .../Team/Schedule/ScheduleRequestBuilder.cs | 16 +-- .../TeamworkTagMemberItemRequestBuilder.cs | 6 +- .../Item/Members/MembersRequestBuilder.cs | 10 +- .../Item/TeamworkTagItemRequestBuilder.cs | 6 +- .../Item/Team/Tags/TagsRequestBuilder.cs | 10 +- .../Item/InReplyTo/InReplyToRequestBuilder.cs | 52 -------- .../AvailableProviderTypesResponse.cs | 28 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- ...sPackagesIncompatibleWithRequestBuilder.cs | 6 +- .../Item/AccessPackageItemRequestBuilder.cs | 6 +- ...GetApplicablePolicyRequirementsResponse.cs | 27 +--- ...ncompatibleAccessPackagesRequestBuilder.cs | 6 +- .../Ref/RefRequestBuilder.cs | 6 +- .../IncompatibleGroupsRequestBuilder.cs | 6 +- .../Ref/RefRequestBuilder.cs | 6 +- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../AdditionalAccessResponse.cs | 27 +--- ...WithIncompatibleAccessPackageIdResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- ...sPackagesIncompatibleWithRequestBuilder.cs | 6 +- .../Item/AccessPackageItemRequestBuilder.cs | 6 +- ...GetApplicablePolicyRequirementsResponse.cs | 27 +--- ...ncompatibleAccessPackagesRequestBuilder.cs | 6 +- .../Ref/RefRequestBuilder.cs | 6 +- .../IncompatibleGroupsRequestBuilder.cs | 6 +- .../Ref/RefRequestBuilder.cs | 6 +- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../GetByIds/GetByIdsResponse.cs | 27 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../GetByIds/GetByIdsResponse.cs | 27 +--- .../AvailableProviderTypesResponse.cs | 28 +--- .../Bitlocker/BitlockerRequestBuilder.cs | 52 -------- .../Me/Activities/Recent/RecentResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- ...wedCalendarSharingRolesWithUserResponse.cs | 27 +--- .../CalendarView/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Me/Calendar/Events/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../GetSchedule/GetScheduleResponse.cs | 27 +--- ...wedCalendarSharingRolesWithUserResponse.cs | 27 +--- .../Item/CalendarView/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Item/Events/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Item/GetSchedule/GetScheduleResponse.cs | 27 +--- .../Me/CalendarView/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- ...wedCalendarSharingRolesWithUserResponse.cs | 27 +--- .../Item/CalendarView/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Item/Events/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Item/GetSchedule/GetScheduleResponse.cs | 27 +--- .../GetAllMessages/GetAllMessagesResponse.cs | 27 +--- .../Me/Chats/Item/Members/Add/AddResponse.cs | 27 +--- .../Item/Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Replies/Delta/DeltaResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../Me/ContactFolders/Delta/DeltaResponse.cs | 27 +--- .../Item/ChildFolders/Delta/DeltaResponse.cs | 27 +--- .../Item/Contacts/Delta/DeltaResponse.cs | 27 +--- .../Item/Contacts/Delta/DeltaResponse.cs | 27 +--- .../Me/Contacts/Delta/DeltaResponse.cs | 27 +--- .../Item/Items/Item/Delta/DeltaResponse.cs | 27 +--- .../DeltaWithToken/DeltaWithTokenResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Item/Items/Item/Invite/InviteResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Item/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../GetCompatibleHubContentTypesResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Me/Drives/Item/Recent/RecentResponse.cs | 27 +--- .../Drives/Item/Root/Delta/DeltaResponse.cs | 27 +--- .../DeltaWithToken/DeltaWithTokenResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Drives/Item/Root/Invite/InviteResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Root/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../Item/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../Item/SharedWithMe/SharedWithMeResponse.cs | 27 +--- .../Me/Events/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Me/GetMailTips/GetMailTipsResponse.cs | 27 +--- ...GetManagedAppDiagnosticStatusesResponse.cs | 27 +--- .../GetManagedAppPoliciesResponse.cs | 27 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- .../GetAllMessages/GetAllMessagesResponse.cs | 27 +--- .../GetAllMessages/GetAllMessagesResponse.cs | 27 +--- .../Channels/Item/Members/Add/AddResponse.cs | 27 +--- .../Item/Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Replies/Delta/DeltaResponse.cs | 27 +--- .../Item/Members/Add/AddResponse.cs | 27 +--- .../PrimaryChannel/Members/Add/AddResponse.cs | 27 +--- .../Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Replies/Delta/DeltaResponse.cs | 27 +--- .../Item/Schedule/ScheduleRequestBuilder.cs | 16 +-- .../TeamworkTagMemberItemRequestBuilder.cs | 6 +- .../Item/Members/MembersRequestBuilder.cs | 10 +- .../Item/TeamworkTagItemRequestBuilder.cs | 6 +- .../Item/Tags/TagsRequestBuilder.cs | 10 +- .../Me/MailFolders/Delta/DeltaResponse.cs | 27 +--- .../Item/ChildFolders/Delta/DeltaResponse.cs | 27 +--- .../Item/Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/ManagedDeviceItemRequestBuilder.cs | 5 + .../Item/Users/UsersRequestBuilder.cs | 125 ++++++++++++++++++ .../Me/Messages/Delta/DeltaResponse.cs | 27 +--- ...oksWithIncludePersonalNotebooksResponse.cs | 27 +--- .../Me/Outlook/OutlookRequestBuilder.cs | 52 -------- .../SupportedLanguagesResponse.cs | 27 +--- .../SupportedTimeZonesResponse.cs | 27 +--- ...edTimeZonesWithTimeZoneStandardResponse.cs | 27 +--- ...ithStartDateTimeWithEndDateTimeResponse.cs | 27 +--- .../Me/Todo/Lists/Delta/DeltaResponse.cs | 27 +--- .../Lists/Item/Tasks/Delta/DeltaResponse.cs | 27 +--- .../TranslateExchangeIdsResponse.cs | 27 +--- .../Generated/Models/AccessPackage.cs | 7 +- .../Models/AccessPackageAssignment.cs | 1 + ...ccessPackageExternalUserLifecycleAction.cs | 2 +- .../Models/AccessReviewHistoryDefinition.cs | 3 +- .../Generated/Models/AccessReviewInstance.cs | 3 +- .../AccessReviewInstanceDecisionItem.cs | 2 +- .../Generated/Models/ActionState.cs | 2 +- .../Generated/Models/ActivityHistoryItem.cs | 2 +- .../Generated/Models/ActivityType.cs | 2 +- .../Generated/Models/AdministrativeUnit.cs | 2 +- .../Generated/Models/AdvancedConfigState.cs | 2 +- .../Generated/Models/Agreement.cs | 2 +- .../Generated/Models/AgreementAcceptance.cs | 2 +- .../AgreementAcceptanceCollectionResponse.cs | 2 +- .../Models/AgreementAcceptanceState.cs | 2 +- .../Models/AgreementCollectionResponse.cs | 1 - .../Models/AgreementFileProperties.cs | 1 + .../AgreementFileVersionCollectionResponse.cs | 1 - .../Generated/Models/AllowInvitesFrom.cs | 2 +- .../Models/AndroidMinimumOperatingSystem.cs | 42 ++++++ .../Models/AndroidRequiredPasswordType.cs | 2 +- ...dWorkProfileCrossProfileDataSharingType.cs | 2 +- ...rkProfileDefaultAppPermissionPolicyType.cs | 2 +- .../AndroidWorkProfileRequiredPasswordType.cs | 2 +- .../Generated/Models/AppConsentRequest.cs | 2 +- .../Generated/Models/AppListType.cs | 2 +- .../Models/AppLockerApplicationControlType.cs | 2 +- .../Generated/Models/AppRoleAssignment.cs | 2 +- .../Generated/Models/AppScope.cs | 2 +- .../ApplePushNotificationCertificate.cs | 14 ++ ...plicationGuardBlockClipboardSharingType.cs | 2 +- .../ApplicationGuardBlockFileTransferType.cs | 2 +- .../AppliedConditionalAccessPolicyResult.cs | 2 +- .../Generated/Models/ApprovalStage.cs | 2 +- .../Generated/Models/Attachment.cs | 2 +- .../Generated/Models/AttachmentBase.cs | 2 +- .../Generated/Models/AttachmentSession.cs | 2 +- .../Generated/Models/AttendanceRecord.cs | 2 +- .../Generated/Models/AttendeeType.cs | 2 +- .../Generated/Models/AttestationLevel.cs | 2 +- .../Generated/Models/AudioRoutingGroup.cs | 2 +- .../AuthenticationContextClassReference.cs | 2 +- .../Generated/Models/AuthenticationMethod.cs | 2 +- ...onMethodConfigurationCollectionResponse.cs | 1 + .../Models/AuthenticationMethodKeyStrength.cs | 2 +- .../Models/AuthenticationMethodSignInState.cs | 2 +- .../Models/AuthenticationMethodState.cs | 2 +- .../Models/AuthenticationPhoneType.cs | 2 +- .../Models/AuthenticationProtocol.cs | 2 +- .../AutoRestartNotificationDismissalMethod.cs | 2 +- .../Models/AutomaticRepliesStatus.cs | 2 +- .../Generated/Models/AutomaticUpdateMode.cs | 2 +- .../Models/BaseDeltaFunctionResponse.cs | 61 +++++++++ .../Generated/Models/BaseItem.cs | 1 - .../Generated/Models/BaseItemVersion.cs | 2 +- .../Models/BitLockerEncryptionMethod.cs | 2 +- .../Generated/Models/BitlockerRecoveryKey.cs | 2 +- .../Generated/Models/BookingAppointment.cs | 7 + .../Generated/Models/BookingBusiness.cs | 7 + .../Generated/Models/BookingPriceType.cs | 2 +- .../Models/BookingReminderRecipients.cs | 2 +- .../Generated/Models/BookingService.cs | 14 ++ .../Generated/Models/BookingStaffMember.cs | 7 + .../Generated/Models/BookingStaffRole.cs | 2 + .../Generated/Models/BookingType.cs | 2 +- .../Models/BookingsAvailabilityStatus.cs | 2 +- .../Models/BroadcastMeetingAudience.cs | 2 +- .../Models/BucketAggregationSortProperty.cs | 2 +- .../Generated/Models/CalendarColor.cs | 2 +- .../Generated/Models/CalendarGroup.cs | 2 +- .../Generated/Models/CalendarPermission.cs | 2 +- .../Generated/Models/CalendarRoleType.cs | 2 +- .../Generated/Models/CalendarSharingAction.cs | 2 +- .../Models/CalendarSharingActionImportance.cs | 2 +- .../Models/CalendarSharingActionType.cs | 2 +- src/Microsoft.Graph/Generated/Models/Call.cs | 2 +- .../Generated/Models/CallDirection.cs | 2 +- .../Generated/Models/CallRecordingStatus.cs | 2 +- .../Models/CallRecords/CallRecord.cs | 2 +- .../CallRecordCollectionResponse.cs | 1 + .../Generated/Models/CallRecords/CallType.cs | 2 +- .../Generated/Models/CallRecords/Modality.cs | 2 +- .../Generated/Models/CallRecords/Session.cs | 2 +- .../Generated/Models/CallState.cs | 2 +- .../Models/CallTranscriptionState.cs | 2 +- .../Generated/Models/CategoryColor.cs | 2 +- .../CertificateBasedAuthConfiguration.cs | 2 +- .../Generated/Models/ChangeTrackedEntity.cs | 1 - .../Generated/Models/ChangeType.cs | 2 +- .../Generated/Models/Channel.cs | 2 +- .../Generated/Models/ChannelMembershipType.cs | 2 +- .../Models/ChatCollectionResponse.cs | 1 + .../Generated/Models/ChatMessage.cs | 2 +- .../Generated/Models/ChatMessageImportance.cs | 2 +- ...hatMessagePolicyViolationDlpActionTypes.cs | 2 +- ...atMessagePolicyViolationUserActionTypes.cs | 2 +- ...ssagePolicyViolationVerdictDetailsTypes.cs | 2 +- .../Generated/Models/ChatMessageType.cs | 2 +- .../Generated/Models/ChatType.cs | 2 +- .../Generated/Models/ChecklistItem.cs | 2 +- .../CloudAppSecuritySessionControlType.cs | 2 +- .../Generated/Models/ColumnDefinition.cs | 2 +- .../Generated/Models/ColumnLink.cs | 2 +- .../Generated/Models/ColumnTypes.cs | 2 +- .../Generated/Models/CommsOperation.cs | 2 +- .../Generated/Models/ComplianceState.cs | 2 +- .../Generated/Models/ComplianceStatus.cs | 2 +- .../Models/ConditionalAccessClientApp.cs | 2 +- .../Models/ConditionalAccessDevicePlatform.cs | 2 +- .../Models/ConditionalAccessGrantControl.cs | 2 +- .../Models/ConditionalAccessPolicy.cs | 2 +- .../Models/ConditionalAccessPolicyState.cs | 2 +- .../Models/ConditionalAccessStatus.cs | 2 +- .../Generated/Models/ContactFolder.cs | 2 +- .../Generated/Models/ContentSharingSession.cs | 2 +- .../Generated/Models/ContentType.cs | 2 +- .../Generated/Models/Conversation.cs | 2 +- .../Generated/Models/ConversationMember.cs | 2 +- .../ConversationMemberCollectionResponse.cs | 1 + .../Generated/Models/ConversationThread.cs | 2 +- ...cessPolicyTargetConfigurationAccessType.cs | 2 +- .../CrossTenantAccessPolicyTargetType.cs | 2 +- .../Generated/Models/DataPolicyOperation.cs | 3 +- .../Generated/Models/DataSubjectType.cs | 2 +- .../Generated/Models/DayOfWeek.cs | 2 +- .../Models/DefenderCloudBlockLevelType.cs | 2 +- .../Models/DefenderMonitorFileActivity.cs | 2 +- .../DefenderPromptForSampleSubmission.cs | 2 +- .../Generated/Models/DefenderScanType.cs | 2 +- .../Generated/Models/DefenderThreatAction.cs | 2 +- .../DelegateMeetingMessageDeliveryOptions.cs | 2 +- .../DelegatedPermissionClassification.cs | 2 +- .../Models/DetectedAppPlatformType.cs | 2 +- .../Models/DeviceComplianceActionType.cs | 2 +- .../Models/DeviceComplianceDeviceStatus.cs | 2 +- .../Models/DeviceComplianceUserStatus.cs | 2 +- .../Models/DeviceConfigurationDeviceStatus.cs | 2 +- .../Models/DeviceConfigurationUserStatus.cs | 2 +- .../Models/DeviceEnrollmentFailureReason.cs | 2 +- .../Generated/Models/DeviceEnrollmentType.cs | 2 +- .../DeviceManagementExchangeAccessState.cs | 2 +- ...viceManagementExchangeAccessStateReason.cs | 2 +- ...DeviceManagementExchangeConnectorStatus.cs | 2 +- .../DeviceManagementExchangeConnectorType.cs | 2 +- .../Models/DeviceManagementPartnerAppType.cs | 2 +- .../DeviceManagementSubscriptionState.cs | 2 +- .../Models/DeviceOperatingSystemSummary.cs | 42 ++++++ .../Models/DeviceRegistrationState.cs | 2 +- .../Models/DeviceThreatProtectionLevel.cs | 2 +- .../Models/DiagnosticDataSubmissionMode.cs | 2 +- .../Generated/Models/DirectoryAudit.cs | 4 +- .../DirectoryAuditCollectionResponse.cs | 1 + .../Generated/Models/DirectoryObject.cs | 64 +++++---- .../DirectoryObjectCollectionResponse.cs | 1 - .../Generated/Models/DiskType.cs | 2 +- .../Generated/Models/Domain.cs | 3 +- .../Generated/Models/DomainDnsRecord.cs | 2 +- .../Generated/Models/EdgeCookiePolicy.cs | 2 +- .../Generated/Models/EdgeSearchEngineType.cs | 2 +- .../Models/EditionUpgradeLicenseType.cs | 2 +- .../Generated/Models/EducationAssignment.cs | 3 +- .../Models/EducationAssignmentDefaults.cs | 2 +- .../Models/EducationAssignmentResource.cs | 2 +- .../Models/EducationAssignmentSettings.cs | 2 +- .../Generated/Models/EducationCategory.cs | 2 +- .../Generated/Models/EducationClass.cs | 3 +- .../Generated/Models/EducationOutcome.cs | 2 +- .../Generated/Models/Enablement.cs | 2 +- .../Generated/Models/Endpoint.cs | 2 +- .../Generated/Models/EndpointType.cs | 2 +- .../Generated/Models/EnrollmentState.cs | 2 +- .../Generated/Models/EventType.cs | 2 +- .../Generated/Models/Extension.cs | 2 +- .../Generated/Models/ExtensionProperty.cs | 2 +- .../Generated/Models/ExternalAudienceScope.cs | 2 +- .../Models/ExternalConnectors/AccessType.cs | 2 +- .../Models/ExternalConnectors/AclType.cs | 2 +- .../ConnectionOperationStatus.cs | 2 +- .../ExternalConnectors/ConnectionState.cs | 2 +- .../ExternalConnectionCollectionResponse.cs | 1 + .../ExternalConnectors/ExternalGroup.cs | 2 +- .../Models/ExternalConnectors/ExternalItem.cs | 2 +- .../ExternalItemContentType.cs | 2 +- .../Models/ExternalConnectors/Label.cs | 2 +- .../Models/ExternalConnectors/PropertyType.cs | 2 +- .../Generated/Models/ExternalDomainName.cs | 2 +- .../Generated/Models/ExternalEmailOtpState.cs | 2 +- .../Generated/Models/FeatureRolloutPolicy.cs | 2 +- .../Models/FederatedIdentityCredential.cs | 2 +- ...tedIdentityCredentialCollectionResponse.cs | 1 + .../Models/FederatedIdpMfaBehavior.cs | 2 +- .../Models/Fido2RestrictionEnforcementType.cs | 2 +- .../Generated/Models/FileHashType.cs | 2 +- .../Generated/Models/FilterMode.cs | 2 +- ...ertificateRevocationListCheckMethodType.cs | 2 +- .../FirewallPacketQueueingMethodType.cs | 2 +- .../FirewallPreSharedKeyEncodingMethodType.cs | 2 +- .../Generated/Models/FollowupFlagStatus.cs | 2 +- .../Generated/Models/FreeBusyStatus.cs | 2 +- .../Generated/Models/GiphyRatingType.cs | 2 +- src/Microsoft.Graph/Generated/Models/Group.cs | 4 +- .../Generated/Models/GroupLifecyclePolicy.cs | 2 +- .../Generated/Models/GroupSetting.cs | 2 +- .../Generated/Models/GroupType.cs | 2 +- .../Generated/Models/IdentityProvider.cs | 2 +- .../Generated/Models/IdentityProviderBase.cs | 2 +- .../Models/IdentityUserFlowAttribute.cs | 2 +- .../IdentityUserFlowAttributeAssignment.cs | 2 +- .../IdentityUserFlowAttributeDataType.cs | 2 +- .../IdentityUserFlowAttributeInputType.cs | 2 +- .../Models/IdentityUserFlowAttributeType.cs | 2 +- .../Generated/Models/Importance.cs | 2 +- ...dowsAutopilotDeviceIdentityUploadStatus.cs | 2 +- .../Models/InferenceClassificationOverride.cs | 2 +- .../Models/InferenceClassificationType.cs | 2 +- .../Generated/Models/InitiatorType.cs | 2 +- .../Generated/Models/InstallIntent.cs | 2 +- .../Models/InternetSiteSecurityLevel.cs | 2 +- .../Models/IosNotificationAlertType.cs | 2 +- .../Generated/Models/IosUpdateDeviceStatus.cs | 2 +- .../Models/IosUpdatesInstallStatus.cs | 2 +- .../Generated/Models/ItemActivity.cs | 2 +- .../Generated/Models/LicenseDetails.cs | 2 +- .../Generated/Models/LifecycleEventType.cs | 2 +- .../Generated/Models/LinkedResource.cs | 2 +- src/Microsoft.Graph/Generated/Models/List.cs | 1 + .../Generated/Models/ListItem.cs | 1 + .../Generated/Models/ListItemVersion.cs | 3 +- .../Generated/Models/LobbyBypassScope.cs | 2 +- .../Generated/Models/LocationType.cs | 2 +- .../Generated/Models/LocationUniqueIdType.cs | 2 +- .../Generated/Models/LongRunningOperation.cs | 2 +- .../Models/LongRunningOperationStatus.cs | 2 +- .../Models/MailDestinationRoutingReason.cs | 2 +- .../Generated/Models/MailFolder.cs | 2 +- .../Models/ManagedAppAvailability.cs | 2 +- .../Models/ManagedAppClipboardSharingLevel.cs | 2 +- .../Models/ManagedAppDataEncryptionType.cs | 2 +- .../Models/ManagedAppDataStorageLocation.cs | 2 +- .../Models/ManagedAppDataTransferLevel.cs | 2 +- .../Models/ManagedAppFlaggedReason.cs | 2 +- .../Models/ManagedAppPinCharacterSet.cs | 2 +- .../Generated/Models/ManagedBrowserType.cs | 2 +- .../Generated/Models/ManagedDevice.cs | 19 +++ .../Models/ManagedDeviceOwnerType.cs | 2 +- ...ManagedDevicePartnerReportedHealthState.cs | 2 +- .../Generated/Models/ManagementAgentType.cs | 2 +- .../Generated/Models/MdmAuthority.cs | 2 +- .../Generated/Models/MediaDirection.cs | 2 +- .../Generated/Models/MediaState.cs | 2 +- .../Models/MeetingAttendanceReport.cs | 2 +- .../Generated/Models/MeetingChatMode.cs | 2 +- .../Generated/Models/MeetingMessageType.cs | 2 +- .../Generated/Models/MeetingRequestType.cs | 2 +- .../Generated/Models/MessageActionFlag.cs | 2 +- .../Generated/Models/MessageRule.cs | 2 +- .../MicrosoftStoreForBusinessLicenseType.cs | 2 +- .../Generated/Models/MiracastChannel.cs | 2 +- .../Models/MobileAppContentFileUploadState.cs | 2 +- .../Models/MobileAppPublishingState.cs | 2 +- .../Models/MobileThreatPartnerTenantState.cs | 2 +- .../Generated/Models/Modality.cs | 2 +- .../MultiValueLegacyExtendedProperty.cs | 2 +- .../Generated/Models/OAuth2PermissionGrant.cs | 2 +- .../Generated/Models/OnlineMeeting.cs | 2 +- .../Models/OnlineMeetingPresenters.cs | 2 +- .../Models/OnlineMeetingProviderType.cs | 2 +- .../Generated/Models/OperationResult.cs | 2 +- .../OrganizationalBrandingLocalization.cs | 2 +- .../Generated/Models/OutlookCategory.cs | 2 +- .../Generated/Models/OutlookItem.cs | 2 +- .../Generated/Models/Participant.cs | 2 +- .../Models/PayloadDeliveryPlatform.cs | 2 +- .../Models/PermissionClassificationType.cs | 2 +- .../Models/PermissionGrantConditionSet.cs | 2 +- .../Generated/Models/PermissionType.cs | 2 +- .../Models/PersistentBrowserSessionMode.cs | 2 +- .../Generated/Models/Person.cs | 2 +- .../Generated/Models/PhoneType.cs | 2 +- .../Generated/Models/PinnedChatMessageInfo.cs | 2 +- .../Generated/Models/PlannerBucket.cs | 2 +- .../Generated/Models/PlannerContainerType.cs | 2 +- .../Generated/Models/PlannerPlan.cs | 2 +- .../Generated/Models/PlannerPreviewType.cs | 2 +- .../Generated/Models/PlannerTask.cs | 2 +- .../Generated/Models/PolicyBase.cs | 2 +- .../Generated/Models/PolicyPlatformType.cs | 2 +- .../Generated/Models/PrereleaseFeatures.cs | 2 +- .../Generated/Models/PrintConnector.cs | 3 +- .../Generated/Models/PrintEvent.cs | 2 +- .../Generated/Models/PrintOperation.cs | 3 +- .../Generated/Models/PrintTask.cs | 2 +- .../Generated/Models/PrintTaskDefinition.cs | 2 +- .../Models/PrintTaskProcessingState.cs | 2 +- .../Generated/Models/PrintTaskTrigger.cs | 2 +- .../Generated/Models/PrintUsage.cs | 2 +- .../Generated/Models/ProcessIntegrityLevel.cs | 2 +- .../Generated/Models/PromptLoginBehavior.cs | 2 +- .../Generated/Models/ProvisioningAction.cs | 2 +- .../Models/ProvisioningObjectSummary.cs | 2 +- ...isioningObjectSummaryCollectionResponse.cs | 1 + .../Generated/Models/ProvisioningResult.cs | 2 +- .../Models/ProvisioningStatusErrorCategory.cs | 2 +- .../Generated/Models/ProvisioningStepType.cs | 2 +- .../Generated/Models/RatingAppsType.cs | 2 +- .../Models/RatingAustraliaMoviesType.cs | 2 +- .../Models/RatingAustraliaTelevisionType.cs | 2 +- .../Models/RatingCanadaMoviesType.cs | 2 +- .../Models/RatingCanadaTelevisionType.cs | 2 +- .../Models/RatingFranceMoviesType.cs | 2 +- .../Models/RatingFranceTelevisionType.cs | 2 +- .../Models/RatingGermanyMoviesType.cs | 2 +- .../Models/RatingGermanyTelevisionType.cs | 2 +- .../Models/RatingIrelandMoviesType.cs | 2 +- .../Models/RatingIrelandTelevisionType.cs | 2 +- .../Generated/Models/RatingJapanMoviesType.cs | 2 +- .../Models/RatingJapanTelevisionType.cs | 2 +- .../Models/RatingNewZealandMoviesType.cs | 2 +- .../Models/RatingNewZealandTelevisionType.cs | 2 +- .../Models/RatingUnitedKingdomMoviesType.cs | 2 +- .../RatingUnitedKingdomTelevisionType.cs | 2 +- .../Models/RatingUnitedStatesMoviesType.cs | 2 +- .../RatingUnitedStatesTelevisionType.cs | 2 +- .../Generated/Models/RecordingStatus.cs | 2 +- .../Generated/Models/RecurrencePatternType.cs | 2 +- .../Generated/Models/RecurrenceRangeType.cs | 2 +- .../RemoteAssistanceOnboardingStatus.cs | 2 +- .../Generated/Models/Request.cs | 2 +- .../Generated/Models/RequiredPasswordType.cs | 2 +- .../Models/ResourceSpecificPermissionGrant.cs | 2 +- .../Generated/Models/ResponseType.cs | 2 +- .../Generated/Models/RiskDetail.cs | 2 +- .../Models/RiskDetectionTimingType.cs | 2 +- .../Generated/Models/RiskEventType.cs | 2 +- .../Generated/Models/RiskLevel.cs | 2 +- .../Generated/Models/RiskState.cs | 2 +- .../Generated/Models/RiskyUserHistoryItem.cs | 2 +- .../Generated/Models/RoleDefinition.cs | 1 + .../Generated/Models/RoutingMode.cs | 2 +- .../Generated/Models/RoutingType.cs | 2 +- .../Generated/Models/RunAsAccountType.cs | 2 +- .../Generated/Models/SafeSearchFilterType.cs | 2 +- .../Generated/Models/ScopedRoleMembership.cs | 2 +- .../Generated/Models/SecureScore.cs | 2 +- .../Models/SecureScoreControlProfile.cs | 2 +- .../Generated/Models/Security/Case.cs | 2 +- .../Generated/Models/Security/CaseAction.cs | 2 +- .../Models/Security/CaseOperationStatus.cs | 2 +- .../Generated/Models/Security/CaseStatus.cs | 2 +- .../Models/Security/ChildSelectability.cs | 2 +- .../Generated/Models/Security/DataSource.cs | 2 +- .../Models/Security/DataSourceContainer.cs | 2 +- .../Security/DataSourceContainerStatus.cs | 2 +- .../Models/Security/DataSourceHoldStatus.cs | 2 +- .../Models/Security/DataSourceScopes.cs | 2 +- .../EdiscoveryNoncustodialDataSource.cs | 2 +- .../Generated/Models/Security/Search.cs | 2 +- .../Generated/Models/Security/SourceType.cs | 2 +- .../Generated/Models/Security/Tag.cs | 2 +- .../Models/SelectionLikelihoodInfo.cs | 2 +- .../Generated/Models/Sensitivity.cs | 2 +- .../ServiceHealthIssueCollectionResponse.cs | 1 + .../ServicePrincipalCollectionResponse.cs | 1 + .../ServiceUpdateMessageCollectionResponse.cs | 1 + .../Generated/Models/SettingSourceType.cs | 2 +- .../Generated/Models/SharedInsight.cs | 2 +- .../SharedPCAccountDeletionPolicyType.cs | 2 +- .../Models/SharedPCAllowedAccountType.cs | 2 +- .../Generated/Models/SignIn.cs | 2 +- .../Models/SignInCollectionResponse.cs | 1 + .../SignInFrequencyAuthenticationType.cs | 2 +- .../Models/SignInFrequencyInterval.cs | 2 +- .../Generated/Models/SigninFrequencyType.cs | 2 +- .../Generated/Models/Simulation.cs | 2 +- .../Models/SimulationAttackTechnique.cs | 2 +- .../Generated/Models/SimulationAttackType.cs | 2 +- .../Generated/Models/SimulationAutomation.cs | 2 +- .../Models/SimulationAutomationRun.cs | 2 +- .../Models/SimulationAutomationRunStatus.cs | 2 +- .../Models/SimulationAutomationStatus.cs | 2 +- .../Generated/Models/SimulationStatus.cs | 2 +- .../SingleValueLegacyExtendedProperty.cs | 2 +- .../Generated/Models/SiteSecurityLevel.cs | 2 +- .../Generated/Models/StagedFeatureName.cs | 2 +- .../Models/StateManagementSetting.cs | 2 +- .../Generated/Models/Status.cs | 2 +- .../Models/StringCollectionResponse.cs | 1 + .../Models/SubjectRightsRequestStage.cs | 2 +- .../Models/SubjectRightsRequestStageStatus.cs | 2 +- .../Models/SubjectRightsRequestStatus.cs | 2 +- .../Models/SubjectRightsRequestType.cs | 2 +- .../Generated/Models/Subscription.cs | 2 +- .../Generated/Models/TaskStatus.cs | 2 +- src/Microsoft.Graph/Generated/Models/Team.cs | 2 +- .../Generated/Models/TeamInfo.cs | 2 +- .../Generated/Models/TeamSpecialization.cs | 2 +- .../Generated/Models/TeamVisibilityType.cs | 2 +- .../Models/TeamsAppCollectionResponse.cs | 1 + .../Generated/Models/TeamsAppDefinition.cs | 2 +- .../Models/TeamsAppDistributionMethod.cs | 2 +- .../Generated/Models/TeamsAppInstallation.cs | 2 +- .../TeamsAppInstallationCollectionResponse.cs | 1 + .../Models/TeamsAppPublishingState.cs | 2 +- .../Generated/Models/TeamsAsyncOperation.cs | 2 +- .../Models/TeamsAsyncOperationStatus.cs | 2 +- .../Models/TeamsAsyncOperationType.cs | 2 +- .../Generated/Models/TeamsTab.cs | 2 +- .../Models/TeamworkApplicationIdentityType.cs | 2 +- .../Generated/Models/TeamworkCallEventType.cs | 2 +- .../TeamworkConversationIdentityType.cs | 2 +- .../Generated/Models/TeamworkHostedContent.cs | 2 +- .../Generated/Models/TeamworkTag.cs | 14 +- .../Generated/Models/TeamworkTagMember.cs | 8 +- .../Generated/Models/TeamworkTagType.cs | 2 +- .../Models/TeamworkUserIdentityType.cs | 2 +- .../Generated/Models/TermStore/Group.cs | 2 +- .../Generated/Models/TermStore/Relation.cs | 2 +- .../Models/TermStore/RelationType.cs | 2 +- .../Models/TermStore/TermGroupScope.cs | 2 +- .../Generated/Models/TermsAndConditions.cs | 1 - .../Models/ThreatAssessmentContentType.cs | 2 +- .../Models/ThreatAssessmentRequest.cs | 2 +- .../Models/ThreatAssessmentRequestSource.cs | 2 +- .../Models/ThreatAssessmentResult.cs | 2 +- .../Models/ThreatAssessmentResultType.cs | 2 +- .../Models/ThreatAssessmentStatus.cs | 2 +- .../Generated/Models/ThreatCategory.cs | 2 +- .../Models/ThreatExpectedAssessment.cs | 2 +- .../Generated/Models/TodoTask.cs | 2 +- .../Generated/Models/TodoTaskList.cs | 2 +- .../Generated/Models/TokenIssuerType.cs | 2 +- .../TokenLifetimePolicyCollectionResponse.cs | 1 + src/Microsoft.Graph/Generated/Models/Tone.cs | 2 +- .../Generated/Models/Trending.cs | 2 +- .../Generated/Models/UnifiedRoleAssignment.cs | 2 +- .../Models/UnifiedRoleManagementPolicy.cs | 2 +- .../UnifiedRoleManagementPolicyAssignment.cs | 2 +- .../Models/UnifiedRoleManagementPolicyRule.cs | 2 +- ...oleManagementPolicyRuleTargetOperations.cs | 2 +- .../Models/UnifiedRoleScheduleBase.cs | 1 + .../Models/UnifiedRoleScheduleInstanceBase.cs | 2 +- .../UnifiedRoleScheduleRequestActions.cs | 2 +- .../Generated/Models/UsedInsight.cs | 2 +- .../Generated/Models/UserActivity.cs | 2 +- .../Models/UserCollectionResponse.cs | 1 + ...serExperienceAnalyticsDevicePerformance.cs | 8 +- .../UserExperienceAnalyticsHealthState.cs | 2 +- .../Models/UserFlowLanguageConfiguration.cs | 2 +- .../Generated/Models/UserFlowLanguagePage.cs | 2 +- .../Generated/Models/UserFlowType.cs | 2 +- .../Generated/Models/UserPurpose.cs | 2 +- .../Generated/Models/VisibilitySetting.cs | 2 +- .../Generated/Models/VolumeType.cs | 2 +- .../Generated/Models/VppTokenAccountType.cs | 2 +- .../Generated/Models/VppTokenState.cs | 2 +- .../Generated/Models/VppTokenSyncStatus.cs | 2 +- .../Models/WebBrowserCookieSettings.cs | 2 +- .../Generated/Models/WebsiteType.cs | 2 +- .../Generated/Models/WeekIndex.cs | 2 +- .../Generated/Models/WeeklySchedule.cs | 2 +- .../Models/WelcomeScreenMeetingInformation.cs | 2 +- .../Generated/Models/WellknownListName.cs | 2 +- ...Win32LobAppDeliveryOptimizationPriority.cs | 2 +- .../Win32LobAppFileSystemOperationType.cs | 2 +- .../Models/Win32LobAppMsiPackageType.cs | 2 +- .../Models/Win32LobAppNotification.cs | 2 +- ...LobAppPowerShellScriptRuleOperationType.cs | 2 +- .../Win32LobAppRegistryRuleOperationType.cs | 2 +- .../Models/Win32LobAppRestartBehavior.cs | 2 +- .../Models/Win32LobAppReturnCodeType.cs | 2 +- .../Models/Win32LobAppRuleOperator.cs | 2 +- .../Generated/Models/Win32LobAppRuleType.cs | 2 +- .../Generated/Models/Windows10EditionType.cs | 2 +- .../Generated/Models/WindowsArchitecture.cs | 2 +- .../Models/WindowsDeliveryOptimizationMode.cs | 2 +- .../Generated/Models/WindowsDeviceType.cs | 2 +- .../Models/WindowsHelloForBusinessPinUsage.cs | 2 +- ...wsInformationProtectionEnforcementLevel.cs | 2 +- ...ationProtectionPinCharacterRequirements.cs | 2 +- .../WindowsSpotlightEnablementSettings.cs | 2 +- .../WindowsStartMenuAppListVisibilityType.cs | 2 +- .../Models/WindowsStartMenuModeType.cs | 2 +- .../WindowsUpdateForBusinessUpdateWeeks.cs | 2 +- .../WindowsUpdateNotificationDisplayOption.cs | 2 +- .../Generated/Models/WindowsUpdateType.cs | 2 +- .../WindowsUserAccountControlSettings.cs | 2 +- .../Generated/Models/WorkbookChart.cs | 2 +- .../Generated/Models/WorkbookChartPoint.cs | 2 +- .../Generated/Models/WorkbookChartSeries.cs | 2 +- .../Generated/Models/WorkbookNamedItem.cs | 2 +- .../Generated/Models/WorkbookPivotTable.cs | 2 +- .../Generated/Models/WorkbookRangeBorder.cs | 2 +- .../Generated/Models/WorkbookTable.cs | 2 +- .../Generated/Models/WorkbookTableColumn.cs | 2 +- .../Generated/Models/WorkbookTableRow.cs | 2 +- .../X509CertificateAuthenticationMode.cs | 2 +- .../Models/X509CertificateRuleType.cs | 2 +- .../Delta/DeltaResponse.cs | 27 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../Organization/GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../AppliesTo/GetByIds/GetByIdsResponse.cs | 27 +--- ...rtDateTimeWithEndDateTimeRequestBuilder.cs | 8 +- ...ithStartDateTimeWithEndDateTimeResponse.cs | 27 +--- ...tformUserCountsWithPeriodRequestBuilder.cs | 95 +++++++++++++ ...65AppUserCountsWithPeriodRequestBuilder.cs | 95 +++++++++++++ ...M365AppUserDetailWithDateRequestBuilder.cs | 95 +++++++++++++ ...65AppUserDetailWithPeriodRequestBuilder.cs | 95 +++++++++++++ ...rtDateTimeWithEndDateTimeRequestBuilder.cs | 8 +- ...ithStartDateTimeWithEndDateTimeResponse.cs | 27 +--- ...rtDateTimeWithEndDateTimeRequestBuilder.cs | 8 +- ...ithStartDateTimeWithEndDateTimeResponse.cs | 27 +--- .../Reports/ReportsRequestBuilder.cs | 48 ++++++- ...AttackSimulationRepeatOffendersResponse.cs | 27 +--- ...imulationSimulationUserCoverageResponse.cs | 27 +--- ...kSimulationTrainingUserCoverageResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../FilterByCurrentUserWithOnResponse.cs | 27 +--- .../Generated/Search/Query/QueryResponse.cs | 27 +--- .../Tags/AsHierarchy/AsHierarchyResponse.cs | 28 +--- .../ServicePrincipals/Delta/DeltaResponse.cs | 27 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../GetByIds/GetByIdsResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- .../GetCompatibleHubContentTypesResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Item/Permission/Grant/GrantResponse.cs | 27 +--- .../Generated/Sites/Add/AddResponse.cs | 27 +--- .../GetCompatibleHubContentTypesResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- ...leContentTypesForListWithListIdResponse.cs | 27 +--- .../GetCompatibleHubContentTypesResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- ...oksWithIncludePersonalNotebooksResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Generated/Sites/Remove/RemoveResponse.cs | 27 +--- .../GetStaffAvailabilityResponse.cs | 27 +--- .../GetAllMessages/GetAllMessagesResponse.cs | 27 +--- .../GetAllMessages/GetAllMessagesResponse.cs | 27 +--- .../Channels/Item/Members/Add/AddResponse.cs | 27 +--- .../Item/Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Replies/Delta/DeltaResponse.cs | 27 +--- .../Teams/Item/Members/Add/AddResponse.cs | 27 +--- .../PrimaryChannel/Members/Add/AddResponse.cs | 27 +--- .../Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Replies/Delta/DeltaResponse.cs | 27 +--- .../Item/Schedule/ScheduleRequestBuilder.cs | 16 +-- .../TeamworkTagMemberItemRequestBuilder.cs | 6 +- .../Item/Members/MembersRequestBuilder.cs | 10 +- .../Item/TeamworkTagItemRequestBuilder.cs | 6 +- .../Teams/Item/Tags/TagsRequestBuilder.cs | 10 +- ...NotificationToRecipientsPostRequestBody.cs | 98 ++++++++++++++ ...yNotificationToRecipientsRequestBuilder.cs | 98 ++++++++++++++ .../Teamwork/TeamworkRequestBuilder.cs | 5 + .../Generated/Users/Delta/DeltaResponse.cs | 27 +--- ...GetAvailableExtensionPropertiesResponse.cs | 27 +--- .../Users/GetByIds/GetByIdsResponse.cs | 27 +--- .../Item/Activities/Recent/RecentResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- ...wedCalendarSharingRolesWithUserResponse.cs | 27 +--- .../CalendarView/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Calendar/Events/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../GetSchedule/GetScheduleResponse.cs | 27 +--- ...wedCalendarSharingRolesWithUserResponse.cs | 27 +--- .../Item/CalendarView/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Item/Events/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Item/GetSchedule/GetScheduleResponse.cs | 27 +--- .../Item/CalendarView/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- ...wedCalendarSharingRolesWithUserResponse.cs | 27 +--- .../Item/CalendarView/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Item/Events/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Item/GetSchedule/GetScheduleResponse.cs | 27 +--- .../GetAllMessages/GetAllMessagesResponse.cs | 27 +--- .../Chats/Item/Members/Add/AddResponse.cs | 27 +--- .../Item/Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Replies/Delta/DeltaResponse.cs | 27 +--- .../CheckMemberGroupsResponse.cs | 28 +--- .../CheckMemberObjectsResponse.cs | 28 +--- .../ContactFolders/Delta/DeltaResponse.cs | 27 +--- .../Item/ChildFolders/Delta/DeltaResponse.cs | 27 +--- .../Item/Contacts/Delta/DeltaResponse.cs | 27 +--- .../Item/Contacts/Delta/DeltaResponse.cs | 27 +--- .../Item/Contacts/Delta/DeltaResponse.cs | 27 +--- .../Item/Items/Item/Delta/DeltaResponse.cs | 27 +--- .../DeltaWithToken/DeltaWithTokenResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Item/Items/Item/Invite/InviteResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Item/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../GetCompatibleHubContentTypesResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Item/Drives/Item/Recent/RecentResponse.cs | 27 +--- .../Drives/Item/Root/Delta/DeltaResponse.cs | 27 +--- .../DeltaWithToken/DeltaWithTokenResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Drives/Item/Root/Invite/InviteResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Root/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../Item/SearchWithQ/SearchWithQResponse.cs | 27 +--- .../Item/SharedWithMe/SharedWithMeResponse.cs | 27 +--- .../Users/Item/Events/Delta/DeltaResponse.cs | 27 +--- .../Item/Instances/Delta/DeltaResponse.cs | 27 +--- .../Item/GetMailTips/GetMailTipsResponse.cs | 27 +--- ...GetManagedAppDiagnosticStatusesResponse.cs | 27 +--- .../GetManagedAppPoliciesResponse.cs | 27 +--- .../GetMemberGroupsResponse.cs | 28 +--- .../GetMemberObjectsResponse.cs | 28 +--- .../GetAllMessages/GetAllMessagesResponse.cs | 27 +--- .../GetAllMessages/GetAllMessagesResponse.cs | 27 +--- .../Channels/Item/Members/Add/AddResponse.cs | 27 +--- .../Item/Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Replies/Delta/DeltaResponse.cs | 27 +--- .../Item/Members/Add/AddResponse.cs | 27 +--- .../PrimaryChannel/Members/Add/AddResponse.cs | 27 +--- .../Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Replies/Delta/DeltaResponse.cs | 27 +--- .../Item/Schedule/ScheduleRequestBuilder.cs | 16 +-- .../TeamworkTagMemberItemRequestBuilder.cs | 6 +- .../Item/Members/MembersRequestBuilder.cs | 10 +- .../Item/TeamworkTagItemRequestBuilder.cs | 6 +- .../Item/Tags/TagsRequestBuilder.cs | 10 +- .../Item/MailFolders/Delta/DeltaResponse.cs | 27 +--- .../Item/ChildFolders/Delta/DeltaResponse.cs | 27 +--- .../Item/Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/Messages/Delta/DeltaResponse.cs | 27 +--- .../Item/ManagedDeviceItemRequestBuilder.cs | 5 + .../Item/Users/UsersRequestBuilder.cs | 125 ++++++++++++++++++ .../Item/Messages/Delta/DeltaResponse.cs | 27 +--- ...oksWithIncludePersonalNotebooksResponse.cs | 27 +--- .../Item/Outlook/OutlookRequestBuilder.cs | 52 -------- .../SupportedLanguagesResponse.cs | 27 +--- .../SupportedTimeZonesResponse.cs | 27 +--- ...edTimeZonesWithTimeZoneStandardResponse.cs | 27 +--- ...ithStartDateTimeWithEndDateTimeResponse.cs | 27 +--- .../Item/Todo/Lists/Delta/DeltaResponse.cs | 27 +--- .../Lists/Item/Tasks/Delta/DeltaResponse.cs | 27 +--- .../TranslateExchangeIdsResponse.cs | 27 +--- .../Workbooks/Item/Delta/DeltaResponse.cs | 27 +--- .../DeltaWithToken/DeltaWithTokenResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Workbooks/Item/Invite/InviteResponse.cs | 27 +--- .../GetActivitiesByIntervalResponse.cs | 27 +--- ...TimeWithEndDateTimeWithIntervalResponse.cs | 27 +--- .../Permissions/Item/Grant/GrantResponse.cs | 27 +--- .../Item/SearchWithQ/SearchWithQResponse.cs | 27 +--- 1043 files changed, 4988 insertions(+), 11207 deletions(-) create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Users/UsersRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Models/BaseDeltaFunctionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Reports/GetM365AppPlatformUserCountsWithPeriod/GetM365AppPlatformUserCountsWithPeriodRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Reports/GetM365AppUserCountsWithPeriod/GetM365AppUserCountsWithPeriodRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithDate/GetM365AppUserDetailWithDateRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithPeriod/GetM365AppUserDetailWithPeriodRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsPostRequestBody.cs create mode 100644 src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Users/UsersRequestBuilder.cs diff --git a/src/Microsoft.Graph/Generated/Applications/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Applications/Delta/DeltaResponse.cs index ee7c5a0a2a0..e18655f9f40 100644 --- a/src/Microsoft.Graph/Generated/Applications/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Applications.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 64e8a404e83..9df1510ade2 100644 --- a/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Applications.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsResponse.cs index 0698b70477a..d8f65d02dcd 100644 --- a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Applications.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index eeffe2a68e5..3c602d11b38 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Applications.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 3eeaee98aeb..587ee4a57f1 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Applications.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsResponse.cs index cde042d42c5..28b1166a163 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Applications.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 8dc8dcbaadf..8bfa6f09651 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Applications.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesResponse.cs index 1712fccc0e3..679e4d3a72a 100644 --- a/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Chats.GetAllMessages { /// Provides operations to call the getAllMessages method. - public class GetAllMessagesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAllMessagesResponse and sets the default values. - /// - public GetAllMessagesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddResponse.cs index cf001315e8a..b2852f3c512 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Chats.Item.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaResponse.cs index 01dd07eff4a..eda137660fd 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Chats.Item.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index 2cfe4cf56b9..00472ab8817 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Chats.Item.Messages.Item.Replies.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/CallRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/CallRecordsRequestBuilder.cs index a55a30f94d7..fcaf4fd6043 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/CallRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/CallRecordsRequestBuilder.cs @@ -116,8 +116,8 @@ public async Task GetAsync(Action /// Provides operations to call the getDirectRoutingCalls method. - /// Usage: fromDateTime='{fromDateTime}' - /// Usage: toDateTime='{toDateTime}' + /// Usage: fromDateTime={fromDateTime} + /// Usage: toDateTime={toDateTime} /// public GetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder GetDirectRoutingCallsWithFromDateTimeWithToDateTime(DateTimeOffset? fromDateTime, DateTimeOffset? toDateTime) { _ = fromDateTime ?? throw new ArgumentNullException(nameof(fromDateTime)); @@ -126,8 +126,8 @@ public GetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder GetDire } /// /// Provides operations to call the getPstnCalls method. - /// Usage: fromDateTime='{fromDateTime}' - /// Usage: toDateTime='{toDateTime}' + /// Usage: fromDateTime={fromDateTime} + /// Usage: toDateTime={toDateTime} /// public GetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder GetPstnCallsWithFromDateTimeWithToDateTime(DateTimeOffset? fromDateTime, DateTimeOffset? toDateTime) { _ = fromDateTime ?? throw new ArgumentNullException(nameof(fromDateTime)); diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/GetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/GetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs index cced1ff81c5..42418b70acb 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/GetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/GetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs @@ -18,15 +18,15 @@ public class GetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder { private string UrlTemplate { get; set; } /// /// Instantiates a new GetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder and sets the default values. - /// Usage: fromDateTime='{fromDateTime}' + /// Usage: fromDateTime={fromDateTime} /// Path parameters for the request /// The request adapter to use to execute the requests. - /// Usage: toDateTime='{toDateTime}' + /// Usage: toDateTime={toDateTime} /// public GetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, DateTimeOffset? fromDateTime = default, DateTimeOffset? toDateTime = default) { _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime='{fromDateTime}',toDateTime='{toDateTime}'){?%24top,%24skip,%24search,%24filter,%24count}"; + UrlTemplate = "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24top,%24skip,%24search,%24filter,%24count}"; var urlTplParams = new Dictionary(pathParameters); urlTplParams.Add("fromDateTime", fromDateTime); urlTplParams.Add("toDateTime", toDateTime); @@ -41,7 +41,7 @@ public GetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(Diction public GetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime='{fromDateTime}',toDateTime='{toDateTime}'){?%24top,%24skip,%24search,%24filter,%24count}"; + UrlTemplate = "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24top,%24skip,%24search,%24filter,%24count}"; var urlTplParams = new Dictionary(); urlTplParams.Add("request-raw-url", rawUrl); PathParameters = urlTplParams; diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/GetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/GetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.cs index b3bd321d401..23fd4655b02 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/GetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/GetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.cs @@ -1,45 +1,31 @@ +using Microsoft.Graph.Models; using Microsoft.Graph.Models.CallRecords; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Communications.CallRecords.GetDirectRoutingCallsWithFromDateTimeWithToDateTime { /// Provides operations to call the getDirectRoutingCalls method. - public class GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse and sets the default values. - /// - public GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectRoutingLogRow.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +33,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/GetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/GetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs index 33c1a542cac..5e61a18ac67 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/GetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/GetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs @@ -18,15 +18,15 @@ public class GetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder { private string UrlTemplate { get; set; } /// /// Instantiates a new GetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder and sets the default values. - /// Usage: fromDateTime='{fromDateTime}' + /// Usage: fromDateTime={fromDateTime} /// Path parameters for the request /// The request adapter to use to execute the requests. - /// Usage: toDateTime='{toDateTime}' + /// Usage: toDateTime={toDateTime} /// public GetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, DateTimeOffset? fromDateTime = default, DateTimeOffset? toDateTime = default) { _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getPstnCalls(fromDateTime='{fromDateTime}',toDateTime='{toDateTime}'){?%24top,%24skip,%24search,%24filter,%24count}"; + UrlTemplate = "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getPstnCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24top,%24skip,%24search,%24filter,%24count}"; var urlTplParams = new Dictionary(pathParameters); urlTplParams.Add("fromDateTime", fromDateTime); urlTplParams.Add("toDateTime", toDateTime); @@ -41,7 +41,7 @@ public GetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder(Dictionary(); urlTplParams.Add("request-raw-url", rawUrl); PathParameters = urlTplParams; diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/GetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/GetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeResponse.cs index 1d4b926a6f1..15cc28ef42b 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/GetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/GetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeResponse.cs @@ -1,45 +1,31 @@ +using Microsoft.Graph.Models; using Microsoft.Graph.Models.CallRecords; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Communications.CallRecords.GetPstnCallsWithFromDateTimeWithToDateTime { /// Provides operations to call the getPstnCalls method. - public class GetPstnCallsWithFromDateTimeWithToDateTimeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetPstnCallsWithFromDateTimeWithToDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getPstnCallsWithFromDateTimeWithToDateTimeResponse and sets the default values. - /// - public GetPstnCallsWithFromDateTimeWithToDateTimeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetPstnCallsWithFromDateTimeWithToDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetPstnCallsWithFromDateTimeWithToDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetPstnCallsWithFromDateTimeWithToDateTimeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PstnCallLogRow.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +33,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdResponse.cs b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdResponse.cs index 0f91e96088d..c0d778fbf77 100644 --- a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdResponse.cs +++ b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Communications.GetPresencesByUserId { /// Provides operations to call the getPresencesByUserId method. - public class GetPresencesByUserIdResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetPresencesByUserIdResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getPresencesByUserIdResponse and sets the default values. - /// - public GetPresencesByUserIdResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetPresencesByUserIdResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetPresencesByUserIdResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetPresencesByUserIdResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Presence.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaResponse.cs index bf17d6c8b85..220827698e5 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contacts.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.OrgContact.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index e98acb3552f..34a0b23784e 100644 --- a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contacts.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsResponse.cs index debdde16c90..d30c98e4fa1 100644 --- a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contacts.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index e80968e834e..f91fd127122 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contacts.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index a8697b8f9b8..3ea77f42acb 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contacts.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 04832ae202c..078e2d3ba88 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contacts.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 963acc88a52..4c4d0afd2af 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contacts.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index f51ffc8b2ef..d4bea6b1c70 100644 --- a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contracts.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsResponse.cs index ba313ef1691..4576f3af163 100644 --- a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contracts.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 88bd8a0095a..213892554ad 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contracts.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 165851880d5..238637d1562 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contracts.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsResponse.cs index d0a17777da7..91061e889cf 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contracts.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 489738794d0..4a412190367 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Contracts.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationResponse.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationResponse.cs index 0807fe17041..98949496e88 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DeviceAppManagement.ManagedAppRegistrations.GetUserIdsWithFlaggedAppRegistration { /// Provides operations to call the getUserIdsWithFlaggedAppRegistration method. - public class GetUserIdsWithFlaggedAppRegistrationResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetUserIdsWithFlaggedAppRegistrationResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getUserIdsWithFlaggedAppRegistrationResponse and sets the default values. - /// - public GetUserIdsWithFlaggedAppRegistrationResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetUserIdsWithFlaggedAppRegistrationResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetUserIdsWithFlaggedAppRegistrationResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetUserIdsWithFlaggedAppRegistrationResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignResponse.cs index 9c6b002f118..0fa05bf405e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DeviceManagement.DeviceCompliancePolicies.Item.Assign { /// Provides operations to call the assign method. - public class AssignResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AssignResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new assignResponse and sets the default values. - /// - public AssignResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AssignResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AssignResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AssignResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignResponse.cs index 68978847825..ab9008c4106 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DeviceManagement.DeviceConfigurations.Item.Assign { /// Provides operations to call the assign method. - public class AssignResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AssignResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new assignResponse and sets the default values. - /// - public AssignResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AssignResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AssignResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AssignResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeResponse.cs index e62fabe9fa5..f580f247aec 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DeviceManagement.GetEffectivePermissionsWithScope { /// Provides operations to call the getEffectivePermissions method. - public class GetEffectivePermissionsWithScopeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetEffectivePermissionsWithScopeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getEffectivePermissionsWithScopeResponse and sets the default values. - /// - public GetEffectivePermissionsWithScopeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetEffectivePermissionsWithScopeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetEffectivePermissionsWithScopeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetEffectivePermissionsWithScopeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RolePermission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportResponse.cs index da7ce7961bc..5756ec4d353 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import { /// Provides operations to call the import method. - public class ImportResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class ImportResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new importResponse and sets the default values. - /// - public ImportResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static ImportResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new ImportResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ImportResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs index f8bbb199def..71ac2162a5a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs @@ -16,6 +16,7 @@ using Microsoft.Graph.DeviceManagement.ManagedDevices.Item.ShutDown; using Microsoft.Graph.DeviceManagement.ManagedDevices.Item.SyncDevice; using Microsoft.Graph.DeviceManagement.ManagedDevices.Item.UpdateWindowsDeviceAccount; +using Microsoft.Graph.DeviceManagement.ManagedDevices.Item.Users; using Microsoft.Graph.DeviceManagement.ManagedDevices.Item.WindowsDefenderScan; using Microsoft.Graph.DeviceManagement.ManagedDevices.Item.WindowsDefenderUpdateSignatures; using Microsoft.Graph.DeviceManagement.ManagedDevices.Item.Wipe; @@ -110,6 +111,10 @@ public class ManagedDeviceItemRequestBuilder { } /// Url template to use to build the URL for the current request builder private string UrlTemplate { get; set; } + /// The users property + public UsersRequestBuilder Users { get => + new UsersRequestBuilder(PathParameters, RequestAdapter); + } /// The windowsDefenderScan property public WindowsDefenderScanRequestBuilder WindowsDefenderScan { get => new WindowsDefenderScanRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.cs new file mode 100644 index 00000000000..619514c5b9a --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.cs @@ -0,0 +1,125 @@ +using Microsoft.Graph.Models; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.DeviceManagement.ManagedDevices.Item.Users { + /// Provides operations to manage the users property of the microsoft.graph.managedDevice entity. + public class UsersRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new UsersRequestBuilder and sets the default values. + /// Path parameters for the request + /// The request adapter to use to execute the requests. + /// + public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/users{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UsersRequestBuilder and sets the default values. + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + /// + public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/users{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// The primary users associated with the managed device. + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UsersRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The primary users associated with the managed device. + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// Response handler to use in place of the default response handling provided by the core service + /// + public async Task GetAsync(Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + var requestInfo = CreateGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); + } + /// The primary users associated with the managed device. + public class UsersRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// Configuration for the request such as headers, query parameters, and middleware options. + public class UsersRequestBuilderGetRequestConfiguration { + /// Request headers + public IDictionary Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UsersRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UsersRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new usersRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UsersRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new Dictionary(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Devices/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Devices/Delta/DeltaResponse.cs index 3daa91ba506..b84218784a0 100644 --- a/src/Microsoft.Graph/Generated/Devices/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Devices.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index e16e05227d4..7b7a89513fc 100644 --- a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Devices.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsResponse.cs index 8b6bf7c0abc..89ff0ca9ebc 100644 --- a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Devices.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 7049d20ffba..601e817259c 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Devices.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 216bd9283e9..84b2b0b7bf0 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Devices.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsResponse.cs index c637db62afe..652925db88d 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Devices.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsResponse.cs index e249daa6036..60a6e932930 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Devices.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaResponse.cs index aa5550859ff..8028c272408 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryNamespace.AdministrativeUnits.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.AdministrativeUnit.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 071ce4221f5..024210699c4 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsResponse.cs index 500d9442266..f149b329ece 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 7582723dae2..5893833e28b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index c18d57ca56f..e9feeadb840 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 563e089d32e..134132f5876 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 5f3ee0a7109..a71ff47afb3 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesResponse.cs index f315694b5cc..8b9d5cd211f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryNamespace.FederationConfigurations.AvailableProviderTypes { /// Provides operations to call the availableProviderTypes method. - public class AvailableProviderTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AvailableProviderTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new availableProviderTypesResponse and sets the default values. - /// - public AvailableProviderTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AvailableProviderTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AvailableProviderTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AvailableProviderTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 4c402721501..3cef5205d06 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryObjects.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsResponse.cs index 729d1d99d4c..9c2153f6d7e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryObjects.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 93f4343fae3..d8e3bf33b8a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryObjects.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 7fd9425ffbb..cbf2ba82381 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryObjects.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsResponse.cs index d33e7a6f73c..a8a94f2779e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryObjects.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsResponse.cs index b1ae576280b..3b6b41d087b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryObjects.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index a16d32eab25..8df02c7af9b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoleTemplates.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsResponse.cs index 950b2457ab2..9eee2dec48f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoleTemplates.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 25a930ad430..155cee27a3e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoleTemplates.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index f8587a33872..8e4776dd31e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoleTemplates.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 524c418346a..30543437c98 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoleTemplates.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 15701b97a18..f0764224a65 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoleTemplates.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaResponse.cs index fa3b8f8df5c..4f1db3833aa 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoles.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryRole.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index f3c77e9b4ef..0b065928c95 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoles.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsResponse.cs index 2e165869cbb..35ba98184f0 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoles.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 2e9968eb28c..f9e1e6d034f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoles.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 6f6685bd9df..bed3c47e334 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoles.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsResponse.cs index f74243a8cbd..a7998b7d66a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoles.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 17868de071f..3e1320d3643 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.DirectoryRoles.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Items/Item/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Drive/Items/Item/Delta/DeltaResponse.cs index f3579bfb97f..cd631c6f29d 100644 --- a/src/Microsoft.Graph/Generated/Drive/Items/Item/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Items/Item/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Items.Item.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs b/src/Microsoft.Graph/Generated/Drive/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs index 9947ca671d6..5fb67f9f3c1 100644 --- a/src/Microsoft.Graph/Generated/Drive/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Items.Item.DeltaWithToken { /// Provides operations to call the delta method. - public class DeltaWithTokenResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaWithTokenResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaWithTokenResponse and sets the default values. - /// - public DeltaWithTokenResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaWithTokenResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drive/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index a1d35027a87..061c2ef518d 100644 --- a/src/Microsoft.Graph/Generated/Drive/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drive/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index eda41dcc178..8d6cc43b2f4 100644 --- a/src/Microsoft.Graph/Generated/Drive/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Items/Item/Invite/InviteResponse.cs b/src/Microsoft.Graph/Generated/Drive/Items/Item/Invite/InviteResponse.cs index 376e39079b3..0be78369906 100644 --- a/src/Microsoft.Graph/Generated/Drive/Items/Item/Invite/InviteResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Items/Item/Invite/InviteResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Items.Item.Invite { /// Provides operations to call the invite method. - public class InviteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class InviteResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new inviteResponse and sets the default values. - /// - public InviteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InviteResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drive/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 9c3e15b334a..eb4379677ce 100644 --- a/src/Microsoft.Graph/Generated/Drive/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Items.Item.ListItem.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drive/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index a80552afb74..9908fa43957 100644 --- a/src/Microsoft.Graph/Generated/Drive/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Items.Item.ListItem.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Items/Item/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Drive/Items/Item/Permissions/Item/Grant/GrantResponse.cs index c964e27cf51..133e8c44288 100644 --- a/src/Microsoft.Graph/Generated/Drive/Items/Item/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Items/Item/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Items.Item.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Items/Item/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Drive/Items/Item/SearchWithQ/SearchWithQResponse.cs index e084919777c..4f7f5aa1149 100644 --- a/src/Microsoft.Graph/Generated/Drive/Items/Item/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Items/Item/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Items.Item.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Drive/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 024d8d37545..95eba020db2 100644 --- a/src/Microsoft.Graph/Generated/Drive/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.List.ContentTypes.GetCompatibleHubContentTypes { /// Provides operations to call the getCompatibleHubContentTypes method. - public class GetCompatibleHubContentTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - /// - public GetCompatibleHubContentTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drive/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 68c66b9fa69..180b1b2a66c 100644 --- a/src/Microsoft.Graph/Generated/Drive/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.List.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drive/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index c40410cad03..38889990ea9 100644 --- a/src/Microsoft.Graph/Generated/Drive/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Recent/RecentResponse.cs b/src/Microsoft.Graph/Generated/Drive/Recent/RecentResponse.cs index 77a07de77a6..051e82362ba 100644 --- a/src/Microsoft.Graph/Generated/Drive/Recent/RecentResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Recent/RecentResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Recent { /// Provides operations to call the recent method. - public class RecentResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class RecentResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new recentResponse and sets the default values. - /// - public RecentResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RecentResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Root/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Drive/Root/Delta/DeltaResponse.cs index 2603d3852b0..aba5f65843b 100644 --- a/src/Microsoft.Graph/Generated/Drive/Root/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Root/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Root.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Root/DeltaWithToken/DeltaWithTokenResponse.cs b/src/Microsoft.Graph/Generated/Drive/Root/DeltaWithToken/DeltaWithTokenResponse.cs index 7ba4f81c6a5..17d918b9ae4 100644 --- a/src/Microsoft.Graph/Generated/Drive/Root/DeltaWithToken/DeltaWithTokenResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Root/DeltaWithToken/DeltaWithTokenResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Root.DeltaWithToken { /// Provides operations to call the delta method. - public class DeltaWithTokenResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaWithTokenResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaWithTokenResponse and sets the default values. - /// - public DeltaWithTokenResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaWithTokenResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drive/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 0aab058eeba..7e98a84d0f8 100644 --- a/src/Microsoft.Graph/Generated/Drive/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Root.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drive/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index f72f8122a33..d0568e21072 100644 --- a/src/Microsoft.Graph/Generated/Drive/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Root.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Root/Invite/InviteResponse.cs b/src/Microsoft.Graph/Generated/Drive/Root/Invite/InviteResponse.cs index e88c3971f11..ebfc29027f3 100644 --- a/src/Microsoft.Graph/Generated/Drive/Root/Invite/InviteResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Root/Invite/InviteResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Root.Invite { /// Provides operations to call the invite method. - public class InviteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class InviteResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new inviteResponse and sets the default values. - /// - public InviteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InviteResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drive/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index f9b1d2766cd..04f3bcbd58f 100644 --- a/src/Microsoft.Graph/Generated/Drive/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Root.ListItem.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drive/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index dc3f6e228de..2d1777a02f8 100644 --- a/src/Microsoft.Graph/Generated/Drive/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Root.ListItem.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Root/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Drive/Root/Permissions/Item/Grant/GrantResponse.cs index 3f65c6df539..4bb423f0fe2 100644 --- a/src/Microsoft.Graph/Generated/Drive/Root/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Root/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Root.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/Root/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Drive/Root/SearchWithQ/SearchWithQResponse.cs index f7efad29a91..93e203a291e 100644 --- a/src/Microsoft.Graph/Generated/Drive/Root/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/Root/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.Root.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Drive/SearchWithQ/SearchWithQResponse.cs index d97818fdd34..74637df8765 100644 --- a/src/Microsoft.Graph/Generated/Drive/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drive/SharedWithMe/SharedWithMeResponse.cs b/src/Microsoft.Graph/Generated/Drive/SharedWithMe/SharedWithMeResponse.cs index d5b3a02ef30..d8807b5033b 100644 --- a/src/Microsoft.Graph/Generated/Drive/SharedWithMe/SharedWithMeResponse.cs +++ b/src/Microsoft.Graph/Generated/Drive/SharedWithMe/SharedWithMeResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drive.SharedWithMe { /// Provides operations to call the sharedWithMe method. - public class SharedWithMeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SharedWithMeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new sharedWithMeResponse and sets the default values. - /// - public SharedWithMeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SharedWithMeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SharedWithMeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SharedWithMeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaResponse.cs index ecc3f506b0a..a5b90617ae9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Items.Item.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs index 4d5ffef982c..10d35efd915 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Items.Item.DeltaWithToken { /// Provides operations to call the delta method. - public class DeltaWithTokenResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaWithTokenResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaWithTokenResponse and sets the default values. - /// - public DeltaWithTokenResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaWithTokenResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 1414648d104..faa71b4e089 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 8f85c8eb55b..56bb558ce17 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteResponse.cs index 90dcc41ad7f..9bb333166b2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Items.Item.Invite { /// Provides operations to call the invite method. - public class InviteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class InviteResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new inviteResponse and sets the default values. - /// - public InviteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InviteResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index be4a41f2277..85bab8afaa5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Items.Item.ListItem.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 3f2b72a51d5..e8e51298985 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Items.Item.ListItem.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs index 0860c1a05b4..c6dda5f49b7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs index ecfd6e509bc..f1a4ab66b05 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Items.Item.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 34012bcba11..eeeb732d80c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.List.ContentTypes.GetCompatibleHubContentTypes { /// Provides operations to call the getCompatibleHubContentTypes method. - public class GetCompatibleHubContentTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - /// - public GetCompatibleHubContentTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 349683af458..07bd9817085 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.List.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 02aa27f9fdf..3920342476e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentResponse.cs index 01b05e3eab9..dcef1a7b96c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Recent { /// Provides operations to call the recent method. - public class RecentResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class RecentResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new recentResponse and sets the default values. - /// - public RecentResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RecentResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Root/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Root/Delta/DeltaResponse.cs index 3a821f82d46..52331eedfb4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Root/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Root/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Root.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs index 7f1a36b921e..1872d73e6db 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Root.DeltaWithToken { /// Provides operations to call the delta method. - public class DeltaWithTokenResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaWithTokenResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaWithTokenResponse and sets the default values. - /// - public DeltaWithTokenResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaWithTokenResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 43cc1934640..d294dc7b9f5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Root.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 1d248abf200..3458e409270 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Root.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Root/Invite/InviteResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Root/Invite/InviteResponse.cs index dff507b4bcf..c7496d9ede1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Root/Invite/InviteResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Root/Invite/InviteResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Root.Invite { /// Provides operations to call the invite method. - public class InviteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class InviteResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new inviteResponse and sets the default values. - /// - public InviteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InviteResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 000089cbbdd..c033136c34e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Root.ListItem.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index b387e24e871..5e7bd452147 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Root.ListItem.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs index de81603ebc6..44af8c23419 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Root.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs index 809ab93af0f..d9ffd17e717 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.Root.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQResponse.cs index 7b848319c4f..2b49c0116cb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeResponse.cs index 86f6630783e..829b697d3bd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Drives.Item.SharedWithMe { /// Provides operations to call the sharedWithMe method. - public class SharedWithMeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SharedWithMeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new sharedWithMeResponse and sets the default values. - /// - public SharedWithMeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SharedWithMeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SharedWithMeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SharedWithMeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaResponse.cs index 87688c70f7d..8f7a8271606 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Education.Classes.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationClass.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaResponse.cs index 16aa4642625..0fd04523e96 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Education.Classes.Item.AssignmentCategories.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaResponse.cs index e7860125507..1001a94c6e0 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Education.Classes.Item.Assignments.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs index a9693bbc142..25b99225ce1 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Education.Classes.Item.Assignments.Item.Categories.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaResponse.cs index 2f613c78848..0ba5ebc1e24 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Education.Me.Assignments.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaResponse.cs index d5450b50e73..e9cfe1490e2 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Education.Me.Assignments.Item.Categories.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaResponse.cs index eb7f4f0ffa3..180f965dab5 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Education.Schools.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationSchool.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs index 69a725c3008..09104f08dfc 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs @@ -65,6 +65,28 @@ public RequestInformation CreateGetRequestInformation(Action + /// Update the navigation property administrativeUnit in education + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public RequestInformation CreatePatchRequestInformation(Microsoft.Graph.Models.AdministrativeUnit body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AdministrativeUnitRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// /// Get a list of **administrativeUnits** associated with an educationSchool object. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -78,6 +100,22 @@ public RequestInformation CreateGetRequestInformation(Action(requestInfo, Microsoft.Graph.Models.AdministrativeUnit.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } + /// + /// Update the navigation property administrativeUnit in education + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// Response handler to use in place of the default response handling provided by the core service + /// + public async Task PatchAsync(Microsoft.Graph.Models.AdministrativeUnit body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = CreatePatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.AdministrativeUnit.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); + } /// Get a list of **administrativeUnits** associated with an educationSchool object. public class AdministrativeUnitRequestBuilderGetQueryParameters { /// Expand related entities @@ -103,5 +141,19 @@ public AdministrativeUnitRequestBuilderGetRequestConfiguration() { Headers = new Dictionary(); } } + /// Configuration for the request such as headers, query parameters, and middleware options. + public class AdministrativeUnitRequestBuilderPatchRequestConfiguration { + /// Request headers + public IDictionary Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new administrativeUnitRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public AdministrativeUnitRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new Dictionary(); + } + } } } diff --git a/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaResponse.cs index cc937102509..52072de8370 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Education.Users.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationUser.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaResponse.cs index 435f9d31035..598dacc9192 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Education.Users.Item.Assignments.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs index 825408582d4..a0c1b617efb 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Education.Users.Item.Assignments.Item.Categories.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index fddeefe32be..d271aef5c46 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.GroupSettingTemplates.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsResponse.cs index 7d7d4395a91..1da9906f4ee 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.GroupSettingTemplates.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index e125773c666..85c1588c2f6 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.GroupSettingTemplates.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index f75ee479bc7..134940c5baf 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.GroupSettingTemplates.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs index b783ab62d3c..baa9774824e 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.GroupSettingTemplates.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs index cfaffde5328..7caddcfc45e 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.GroupSettingTemplates.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Delta/DeltaResponse.cs index 60092bb9a04..830194b905d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 525c85390d8..59de9133380 100644 --- a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsResponse.cs index 363a8024871..f1990a84430 100644 --- a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index 74b12e8b1a5..997932e4927 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser { /// Provides operations to call the allowedCalendarSharingRoles method. - public class AllowedCalendarSharingRolesWithUserResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new allowedCalendarSharingRolesWithUserResponse and sets the default values. - /// - public AllowedCalendarSharingRolesWithUserResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarRequestBuilder.cs index 7ac77ab5109..ac4988b8f68 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarRequestBuilder.cs @@ -104,28 +104,6 @@ public RequestInformation CreateGetRequestInformation(Action - /// Update the navigation property calendar in groups - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public RequestInformation CreatePatchRequestInformation(Microsoft.Graph.Models.Calendar body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new CalendarRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The group's calendar. Read-only. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -139,22 +117,6 @@ public RequestInformation CreatePatchRequestInformation(Microsoft.Graph.Models.C }; return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// - /// Update the navigation property calendar in groups - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// Response handler to use in place of the default response handling provided by the core service - /// - public async Task PatchAsync(Microsoft.Graph.Models.Calendar body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = CreatePatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); - } /// The group's calendar. Read-only. public class CalendarRequestBuilderGetQueryParameters { /// Select properties to be returned @@ -177,19 +139,5 @@ public CalendarRequestBuilderGetRequestConfiguration() { Headers = new Dictionary(); } } - /// Configuration for the request such as headers, query parameters, and middleware options. - public class CalendarRequestBuilderPatchRequestConfiguration { - /// Request headers - public IDictionary Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new calendarRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public CalendarRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new Dictionary(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.cs index 153de880c9b..402a32319da 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs index d45015203df..1d6505dc5e2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaResponse.cs index 365188524b2..f5545026720 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Calendar.Events.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs index 1d6a56997a7..9f3aef6bca0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Calendar.Events.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.cs index 458295d6fc8..69ea4b787fc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Calendar.GetSchedule { /// Provides operations to call the getSchedule method. - public class GetScheduleResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getScheduleResponse and sets the default values. - /// - public GetScheduleResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaResponse.cs index a14548b83f0..0e71a3279f6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.CalendarView.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs index 73795524828..1c1856f5c1b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.CalendarView.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppResponse.cs index c45c4a46a25..69df1cba89d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.CheckGrantedPermissionsForApp { /// Provides operations to call the checkGrantedPermissionsForApp method. - public class CheckGrantedPermissionsForAppResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckGrantedPermissionsForAppResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkGrantedPermissionsForAppResponse and sets the default values. - /// - public CheckGrantedPermissionsForAppResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckGrantedPermissionsForAppResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckGrantedPermissionsForAppResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckGrantedPermissionsForAppResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 44e6dd419f7..d47e5888359 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 6128b5449a7..a437c5ecf47 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs index e9577dc757a..f857f2d8bd8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs @@ -95,28 +95,6 @@ public RequestInformation CreateGetRequestInformation(Action - /// Update the navigation property inReplyTo in groups - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public RequestInformation CreatePatchRequestInformation(Post body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new InReplyToRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Read-only. Supports $expand. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -130,22 +108,6 @@ public async Task GetAsync(Action(requestInfo, Post.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// - /// Update the navigation property inReplyTo in groups - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// Response handler to use in place of the default response handling provided by the core service - /// - public async Task PatchAsync(Post body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = CreatePatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, Post.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); - } /// Read-only. Supports $expand. public class InReplyToRequestBuilderGetQueryParameters { /// Expand related entities @@ -171,19 +133,5 @@ public InReplyToRequestBuilderGetRequestConfiguration() { Headers = new Dictionary(); } } - /// Configuration for the request such as headers, query parameters, and middleware options. - public class InReplyToRequestBuilderPatchRequestConfiguration { - /// Request headers - public IDictionary Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new inReplyToRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public InReplyToRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new Dictionary(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/Delta/DeltaResponse.cs index bfcbfc404b7..7f1e549a6db 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Items.Item.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs index 23f122b2db6..b26f7ba6165 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Items.Item.DeltaWithToken { /// Provides operations to call the delta method. - public class DeltaWithTokenResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaWithTokenResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaWithTokenResponse and sets the default values. - /// - public DeltaWithTokenResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaWithTokenResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index ebb0d23ee83..83769897150 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 2d704d381e0..e6f2b71d1e1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/Invite/InviteResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/Invite/InviteResponse.cs index 731c237a6f9..3396cdb0ee3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/Invite/InviteResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/Invite/InviteResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Items.Item.Invite { /// Provides operations to call the invite method. - public class InviteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class InviteResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new inviteResponse and sets the default values. - /// - public InviteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InviteResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 4fb058d6fb9..9a020679ed8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Items.Item.ListItem.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index d887030e9d5..ef935dfa86b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Items.Item.ListItem.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs index 8cfaeabb44f..ac893be0dfb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Items.Item.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs index 1b7d38073a7..adcda8f4102 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Items.Item.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 6a69af245bc..647c06af8cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.List.ContentTypes.GetCompatibleHubContentTypes { /// Provides operations to call the getCompatibleHubContentTypes method. - public class GetCompatibleHubContentTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - /// - public GetCompatibleHubContentTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index bcb57f77323..faa12a1ac9e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.List.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index b8764b5968a..b25614e1e75 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Recent/RecentResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Recent/RecentResponse.cs index ae98aeefc91..0550661dd15 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Recent/RecentResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Recent/RecentResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Recent { /// Provides operations to call the recent method. - public class RecentResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class RecentResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new recentResponse and sets the default values. - /// - public RecentResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RecentResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/Delta/DeltaResponse.cs index 9ba76ec9fe5..5889eeabebc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Root.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs index 5ff35c63f11..4eada98cd23 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Root.DeltaWithToken { /// Provides operations to call the delta method. - public class DeltaWithTokenResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaWithTokenResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaWithTokenResponse and sets the default values. - /// - public DeltaWithTokenResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaWithTokenResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 7a0ac190820..70328a886a7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Root.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 326378ded09..775394a908a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Root.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/Invite/InviteResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/Invite/InviteResponse.cs index 818f6580f4e..aa2fd204501 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/Invite/InviteResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/Invite/InviteResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Root.Invite { /// Provides operations to call the invite method. - public class InviteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class InviteResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new inviteResponse and sets the default values. - /// - public InviteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InviteResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 904dbd422fb..8ec3dbb39b8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Root.ListItem.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index b56a20d76e5..956195864a1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Root.ListItem.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs index 5d9d59176a2..4bccdadc64c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Root.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs index fced2751d57..2affe368d21 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.Root.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/SearchWithQ/SearchWithQResponse.cs index c6dee4cb38d..00eceb19674 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/SharedWithMe/SharedWithMeResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/SharedWithMe/SharedWithMeResponse.cs index 7770fc31350..89ebe4c95cb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/SharedWithMe/SharedWithMeResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/SharedWithMe/SharedWithMeResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Drives.Item.SharedWithMe { /// Provides operations to call the sharedWithMe method. - public class SharedWithMeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SharedWithMeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new sharedWithMeResponse and sets the default values. - /// - public SharedWithMeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SharedWithMeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SharedWithMeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SharedWithMeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaResponse.cs index 39e31b82e6d..5e84d6047b9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Events.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.cs index 08afac0b2a2..1ac974aff46 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Events.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 8c65ae5a4f5..6a82047f69d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 8056ea8e2d9..b93849950fb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs index 177f7b0a5e7..f0323acce6e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { /// Provides operations to call the getRecentNotebooks method. - public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getRecentNotebooksWithIncludePersonalNotebooksResponse and sets the default values. - /// - public GetRecentNotebooksWithIncludePersonalNotebooksResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetRecentNotebooksWithIncludePersonalNotebooksResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetRecentNotebooksWithIncludePersonalNotebooksResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetRecentNotebooksWithIncludePersonalNotebooksResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index b49f628af33..31214b1ccd9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.PermissionGrants.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs index 8f585a4a324..0334b026489 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.PermissionGrants.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 1fde5c883dd..c5568615038 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.PermissionGrants.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 1698d35604b..b08da6f36e7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.PermissionGrants.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 3ce90d250ec..0c36ff2da2c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.PermissionGrants.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 520f8bf8839..21225c97de5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.PermissionGrants.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddResponse.cs index a81bc7d3bb1..053bfa4be72 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Sites.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 0f40fd8ad55..e5a9ca36d63 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Sites.Item.ContentTypes.GetCompatibleHubContentTypes { /// Provides operations to call the getCompatibleHubContentTypes method. - public class GetCompatibleHubContentTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - /// - public GetCompatibleHubContentTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 3537711c424..776af23a03c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Sites.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 2725f852a2e..6dc79afa211 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Sites.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs index 073f7b94f2a..7159070d2e3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Sites.Item.GetApplicableContentTypesForListWithListId { /// Provides operations to call the getApplicableContentTypesForList method. - public class GetApplicableContentTypesForListWithListIdResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetApplicableContentTypesForListWithListIdResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getApplicableContentTypesForListWithListIdResponse and sets the default values. - /// - public GetApplicableContentTypesForListWithListIdResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetApplicableContentTypesForListWithListIdResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetApplicableContentTypesForListWithListIdResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetApplicableContentTypesForListWithListIdResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 1eaa8a94416..b3af781c30a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.ContentTypes.GetCompatibleHubContentTypes { /// Provides operations to call the getCompatibleHubContentTypes method. - public class GetCompatibleHubContentTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - /// - public GetCompatibleHubContentTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 2de1ee6266c..7c3f6e376e6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index f5283b44731..0c3a9f07242 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs index 843ffb9396c..1b10ea2b969 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Sites.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { /// Provides operations to call the getRecentNotebooks method. - public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getRecentNotebooksWithIncludePersonalNotebooksResponse and sets the default values. - /// - public GetRecentNotebooksWithIncludePersonalNotebooksResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetRecentNotebooksWithIncludePersonalNotebooksResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetRecentNotebooksWithIncludePersonalNotebooksResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetRecentNotebooksWithIncludePersonalNotebooksResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantResponse.cs index a98849175be..d113408d53e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveResponse.cs index f1f9d8d4e41..62a24bbaac4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Sites.Remove { /// Provides operations to call the remove method. - public class RemoveResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class RemoveResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new removeResponse and sets the default values. - /// - public RemoveResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static RemoveResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RemoveResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RemoveResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesResponse.cs index e76e92f9fd3..1092c4e0f9b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Team.Channels.GetAllMessages { /// Provides operations to call the getAllMessages method. - public class GetAllMessagesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAllMessagesResponse and sets the default values. - /// - public GetAllMessagesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddResponse.cs index 9866009500b..9cc2ec32890 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Team.Channels.Item.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaResponse.cs index 6da6f82f9ef..d53104fc8f1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Team.Channels.Item.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index 7efabb33ee8..6a8acd23b23 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddResponse.cs index d453a40d43a..d28d5915940 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Team.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddResponse.cs index 665450e3820..b17a9dca7d7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Team.PrimaryChannel.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaResponse.cs index 3f9d0cefa1c..8e07b715ba2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Team.PrimaryChannel.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs index d4768e0c0b3..e5942cd486a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs index 6f0813bd7a1..bdc021ab016 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs @@ -137,17 +137,17 @@ public RequestInformation CreateGetRequestInformation(Action /// Configuration for the request such as headers, query parameters, and middleware options. /// - public RequestInformation CreatePatchRequestInformation(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default) { + public RequestInformation CreatePutRequestInformation(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, + HttpMethod = Method.PUT, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; requestInfo.Headers.Add("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { - var requestConfig = new ScheduleRequestBuilderPatchRequestConfiguration(); + var requestConfig = new ScheduleRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -189,9 +189,9 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service /// - public async Task PatchAsync(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = CreatePatchRequestInformation(body, requestConfiguration); + var requestInfo = CreatePutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, @@ -238,15 +238,15 @@ public ScheduleRequestBuilderGetRequestConfiguration() { } } /// Configuration for the request such as headers, query parameters, and middleware options. - public class ScheduleRequestBuilderPatchRequestConfiguration { + public class ScheduleRequestBuilderPutRequestConfiguration { /// Request headers public IDictionary Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new scheduleRequestBuilderPatchRequestConfiguration and sets the default values. + /// Instantiates a new scheduleRequestBuilderPutRequestConfiguration and sets the default values. /// - public ScheduleRequestBuilderPatchRequestConfiguration() { + public ScheduleRequestBuilderPutRequestConfiguration() { Options = new List(); Headers = new Dictionary(); } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index e1021094a11..e286be131f7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs @@ -63,7 +63,7 @@ public RequestInformation CreateDeleteRequestInformation(Action - /// Get members from groups + /// Users assigned to the tag. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -119,7 +119,7 @@ public async Task DeleteAsync(Action - /// Get members from groups + /// Users assigned to the tag. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -162,7 +162,7 @@ public TeamworkTagMemberItemRequestBuilderDeleteRequestConfiguration() { Headers = new Dictionary(); } } - /// Get members from groups + /// Users assigned to the tag. public class TeamworkTagMemberItemRequestBuilderGetQueryParameters { /// Expand related entities [QueryParameter("%24expand")] diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs index b6a45f054a4..1177447047c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs @@ -57,7 +57,7 @@ public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get members from groups + /// Get a list of the members of a standard tag in a team and their properties. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -77,7 +77,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Create new navigation property to members for groups + /// Create a new teamworkTagMember object in a team. /// /// Configuration for the request such as headers, query parameters, and middleware options. /// @@ -99,7 +99,7 @@ public RequestInformation CreatePostRequestInformation(TeamworkTagMember body, A return requestInfo; } /// - /// Get members from groups + /// Get a list of the members of a standard tag in a team and their properties. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -113,7 +113,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagMemberCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } /// - /// Create new navigation property to members for groups + /// Create a new teamworkTagMember object in a team. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -128,7 +128,7 @@ public async Task PostAsync(TeamworkTagMember body, Action(requestInfo, TeamworkTagMember.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get members from groups + /// Get a list of the members of a standard tag in a team and their properties. public class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs index cf510d2ab29..188896c8fb0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -68,7 +68,7 @@ public RequestInformation CreateDeleteRequestInformation(Action - /// Get tags from groups + /// The tags associated with the team. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -124,7 +124,7 @@ public async Task DeleteAsync(Action - /// Get tags from groups + /// The tags associated with the team. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -167,7 +167,7 @@ public TeamworkTagItemRequestBuilderDeleteRequestConfiguration() { Headers = new Dictionary(); } } - /// Get tags from groups + /// The tags associated with the team. public class TeamworkTagItemRequestBuilderGetQueryParameters { /// Expand related entities [QueryParameter("%24expand")] diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs index 6675bf14f54..a644d27bd15 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs @@ -57,7 +57,7 @@ public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get tags from groups + /// Get a list of the tag objects and their properties. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -77,7 +77,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Create new navigation property to tags for groups + /// Create a standard tag for members in a team. /// /// Configuration for the request such as headers, query parameters, and middleware options. /// @@ -99,7 +99,7 @@ public RequestInformation CreatePostRequestInformation(TeamworkTag body, Action< return requestInfo; } /// - /// Get tags from groups + /// Get a list of the tag objects and their properties. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -113,7 +113,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } /// - /// Create new navigation property to tags for groups + /// Create a standard tag for members in a team. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -128,7 +128,7 @@ public async Task PostAsync(TeamworkTag body, Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get tags from groups + /// Get a list of the tag objects and their properties. public class TagsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs index 7c2fda217fd..9487970acb9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs @@ -95,28 +95,6 @@ public RequestInformation CreateGetRequestInformation(Action - /// Update the navigation property inReplyTo in groups - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public RequestInformation CreatePatchRequestInformation(Post body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new InReplyToRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Read-only. Supports $expand. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -130,22 +108,6 @@ public async Task GetAsync(Action(requestInfo, Post.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// - /// Update the navigation property inReplyTo in groups - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// Response handler to use in place of the default response handling provided by the core service - /// - public async Task PatchAsync(Post body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = CreatePatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, Post.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); - } /// Read-only. Supports $expand. public class InReplyToRequestBuilderGetQueryParameters { /// Expand related entities @@ -171,19 +133,5 @@ public InReplyToRequestBuilderGetRequestConfiguration() { Headers = new Dictionary(); } } - /// Configuration for the request such as headers, query parameters, and middleware options. - public class InReplyToRequestBuilderPatchRequestConfiguration { - /// Request headers - public IDictionary Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new inReplyToRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public InReplyToRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new Dictionary(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs index 9c0fa8bd763..9d6952ead8d 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Identity.IdentityProviders.AvailableProviderTypes { /// Provides operations to call the availableProviderTypes method. - public class AvailableProviderTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AvailableProviderTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new availableProviderTypesResponse and sets the default values. - /// - public AvailableProviderTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AvailableProviderTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AvailableProviderTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AvailableProviderTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 8381fc9392f..4e2a4de2e66 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewScheduleDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index ddc4ccb3494..1b7cead3333 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.Item.Instances.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 9b284b08f65..e3b1abcea28 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 6c1104d5951..51d523377f6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewStage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 417340f6cd8..be2fe226b33 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index f7d0af0265f..55c00f14767 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.AppConsent.AppConsentRequests.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AppConsentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index aff6b0a2c91..8e3d15b141b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.AppConsent.AppConsentRequests.Item.UserConsentRequests.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserConsentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 946674c89ce..1d1476ffe5f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackageAssignmentApprovals.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Approval.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 3ace44205c5..0dfe7988c39 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackages.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs index 08e8f1d4f50..5ac6e1ab413 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs @@ -57,7 +57,7 @@ public AccessPackagesIncompatibleWithRequestBuilder(string rawUrl, IRequestAdapt RequestAdapter = requestAdapter; } /// - /// Get accessPackagesIncompatibleWith from identityGovernance + /// Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -77,7 +77,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Get accessPackagesIncompatibleWith from identityGovernance + /// Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -90,7 +90,7 @@ public async Task GetAsync(Action(requestInfo, AccessPackageCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get accessPackagesIncompatibleWith from identityGovernance + /// Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. public class AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.cs index 578cf4802e8..e6f57a66273 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.cs @@ -45,7 +45,7 @@ public AccessPackageItemRequestBuilder(string rawUrl, IRequestAdapter requestAda RequestAdapter = requestAdapter; } /// - /// Get accessPackagesIncompatibleWith from identityGovernance + /// The access packages that are incompatible with this package. Read-only. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -65,7 +65,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Get accessPackagesIncompatibleWith from identityGovernance + /// The access packages that are incompatible with this package. Read-only. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -78,7 +78,7 @@ public RequestInformation CreateGetRequestInformation(Action(requestInfo, Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get accessPackagesIncompatibleWith from identityGovernance + /// The access packages that are incompatible with this package. Read-only. public class AccessPackageItemRequestBuilderGetQueryParameters { /// Expand related entities [QueryParameter("%24expand")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.cs index 11c99d5ab3a..2cd487656b4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackages.Item.GetApplicablePolicyRequirements { /// Provides operations to call the getApplicablePolicyRequirements method. - public class GetApplicablePolicyRequirementsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetApplicablePolicyRequirementsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getApplicablePolicyRequirementsResponse and sets the default values. - /// - public GetApplicablePolicyRequirementsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetApplicablePolicyRequirementsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetApplicablePolicyRequirementsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetApplicablePolicyRequirementsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignmentRequestRequirements.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs index 5a0f9f57e58..9fec7bdd49b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs @@ -62,7 +62,7 @@ public IncompatibleAccessPackagesRequestBuilder(string rawUrl, IRequestAdapter r RequestAdapter = requestAdapter; } /// - /// Get incompatibleAccessPackages from identityGovernance + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -82,7 +82,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Get incompatibleAccessPackages from identityGovernance + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -95,7 +95,7 @@ public async Task GetAsync(Action(requestInfo, AccessPackageCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get incompatibleAccessPackages from identityGovernance + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. public class IncompatibleAccessPackagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs index 0b9b4bfc405..b88d7b610e6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs @@ -45,7 +45,7 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get ref of incompatibleAccessPackages from identityGovernance + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -86,7 +86,7 @@ public RequestInformation CreatePostRequestInformation(ReferenceCreate body, Act return requestInfo; } /// - /// Get ref of incompatibleAccessPackages from identityGovernance + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -115,7 +115,7 @@ public async Task PostAsync(ReferenceCreate body, ActionGet ref of incompatibleAccessPackages from identityGovernance + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. public class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs index 20f73f0d3e7..cda5fcbbaa1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs @@ -62,7 +62,7 @@ public IncompatibleGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAd RequestAdapter = requestAdapter; } /// - /// Get incompatibleGroups from identityGovernance + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -82,7 +82,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Get incompatibleGroups from identityGovernance + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -95,7 +95,7 @@ public async Task GetAsync(Action(requestInfo, GroupCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get incompatibleGroups from identityGovernance + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. public class IncompatibleGroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs index d501acae8b4..c70bc119df6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs @@ -45,7 +45,7 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get ref of incompatibleGroups from identityGovernance + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -86,7 +86,7 @@ public RequestInformation CreatePostRequestInformation(ReferenceCreate body, Act return requestInfo; } /// - /// Get ref of incompatibleGroups from identityGovernance + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -115,7 +115,7 @@ public async Task PostAsync(ReferenceCreate body, ActionGet ref of incompatibleGroups from identityGovernance + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. public class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index e160ec7d6ac..c1e7d2d82f1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AssignmentRequests.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignmentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessResponse.cs index a67d8973848..522bd7c88c0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Assignments.AdditionalAccess { /// Provides operations to call the additionalAccess method. - public class AdditionalAccessResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AdditionalAccessResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new additionalAccessResponse and sets the default values. - /// - public AdditionalAccessResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AdditionalAccessResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AdditionalAccessResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AdditionalAccessResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.cs index 3468c8401e3..7959ecf2524 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Assignments.AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId { /// Provides operations to call the additionalAccess method. - public class AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse and sets the default values. - /// - public AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index deec64536c3..0bd94738a29 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Assignments.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 478195f11dc..9b34c88b0ca 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs index df801b9a068..7e2ae45f5c2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs @@ -57,7 +57,7 @@ public AccessPackagesIncompatibleWithRequestBuilder(string rawUrl, IRequestAdapt RequestAdapter = requestAdapter; } /// - /// Get accessPackagesIncompatibleWith from identityGovernance + /// Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -77,7 +77,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Get accessPackagesIncompatibleWith from identityGovernance + /// Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -90,7 +90,7 @@ public async Task GetAsync(Action(requestInfo, AccessPackageCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get accessPackagesIncompatibleWith from identityGovernance + /// Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. public class AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.cs index 5c6ea653de9..697d70f92fb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.cs @@ -45,7 +45,7 @@ public AccessPackageItemRequestBuilder(string rawUrl, IRequestAdapter requestAda RequestAdapter = requestAdapter; } /// - /// Get accessPackagesIncompatibleWith from identityGovernance + /// The access packages that are incompatible with this package. Read-only. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -65,7 +65,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Get accessPackagesIncompatibleWith from identityGovernance + /// The access packages that are incompatible with this package. Read-only. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -78,7 +78,7 @@ public RequestInformation CreateGetRequestInformation(Action(requestInfo, Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get accessPackagesIncompatibleWith from identityGovernance + /// The access packages that are incompatible with this package. Read-only. public class AccessPackageItemRequestBuilderGetQueryParameters { /// Expand related entities [QueryParameter("%24expand")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.cs index 9bbd9046627..3db9a81a18d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.GetApplicablePolicyRequirements { /// Provides operations to call the getApplicablePolicyRequirements method. - public class GetApplicablePolicyRequirementsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetApplicablePolicyRequirementsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getApplicablePolicyRequirementsResponse and sets the default values. - /// - public GetApplicablePolicyRequirementsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetApplicablePolicyRequirementsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetApplicablePolicyRequirementsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetApplicablePolicyRequirementsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignmentRequestRequirements.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs index ff3d5529502..6dd629ca14f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs @@ -62,7 +62,7 @@ public IncompatibleAccessPackagesRequestBuilder(string rawUrl, IRequestAdapter r RequestAdapter = requestAdapter; } /// - /// Get incompatibleAccessPackages from identityGovernance + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -82,7 +82,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Get incompatibleAccessPackages from identityGovernance + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -95,7 +95,7 @@ public async Task GetAsync(Action(requestInfo, AccessPackageCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get incompatibleAccessPackages from identityGovernance + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. public class IncompatibleAccessPackagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs index d1f3c525abf..3e9715e34e3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs @@ -45,7 +45,7 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get ref of incompatibleAccessPackages from identityGovernance + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -86,7 +86,7 @@ public RequestInformation CreatePostRequestInformation(ReferenceCreate body, Act return requestInfo; } /// - /// Get ref of incompatibleAccessPackages from identityGovernance + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -115,7 +115,7 @@ public async Task PostAsync(ReferenceCreate body, ActionGet ref of incompatibleAccessPackages from identityGovernance + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. public class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs index 0db438acb22..d9691b458cc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs @@ -62,7 +62,7 @@ public IncompatibleGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAd RequestAdapter = requestAdapter; } /// - /// Get incompatibleGroups from identityGovernance + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -82,7 +82,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Get incompatibleGroups from identityGovernance + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -95,7 +95,7 @@ public async Task GetAsync(Action(requestInfo, GroupCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get incompatibleGroups from identityGovernance + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. public class IncompatibleGroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs index 89c114234a7..3564c675fe5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs @@ -45,7 +45,7 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get ref of incompatibleGroups from identityGovernance + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -86,7 +86,7 @@ public RequestInformation CreatePostRequestInformation(ReferenceCreate body, Act return requestInfo; } /// - /// Get ref of incompatibleGroups from identityGovernance + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -115,7 +115,7 @@ public async Task PostAsync(ReferenceCreate body, ActionGet ref of incompatibleGroups from identityGovernance + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. public class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index d2ddcd895c0..849681fa3e2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsResponse.cs index 6918a5cec10..7dfcbbd179e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 90c957b53f5..9dc3ecdb84e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsResponse.cs index 686e904b788..3486bad2389 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs b/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs index e08cbf0d00c..41fce2fd082 100644 --- a/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.IdentityProviders.AvailableProviderTypes { /// Provides operations to call the availableProviderTypes method. - public class AvailableProviderTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AvailableProviderTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new availableProviderTypesResponse and sets the default values. - /// - public AvailableProviderTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AvailableProviderTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AvailableProviderTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AvailableProviderTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/BitlockerRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/BitlockerRequestBuilder.cs index 02211219625..61096fc3b0e 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/BitlockerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/BitlockerRequestBuilder.cs @@ -70,28 +70,6 @@ public RequestInformation CreateGetRequestInformation(Action - /// Update the navigation property bitlocker in informationProtection - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public RequestInformation CreatePatchRequestInformation(Microsoft.Graph.Models.Bitlocker body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new BitlockerRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get bitlocker from informationProtection /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -105,22 +83,6 @@ public RequestInformation CreatePatchRequestInformation(Microsoft.Graph.Models.B }; return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Bitlocker.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// - /// Update the navigation property bitlocker in informationProtection - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// Response handler to use in place of the default response handling provided by the core service - /// - public async Task PatchAsync(Microsoft.Graph.Models.Bitlocker body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = CreatePatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Bitlocker.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); - } /// Get bitlocker from informationProtection public class BitlockerRequestBuilderGetQueryParameters { /// Expand related entities @@ -146,19 +108,5 @@ public BitlockerRequestBuilderGetRequestConfiguration() { Headers = new Dictionary(); } } - /// Configuration for the request such as headers, query parameters, and middleware options. - public class BitlockerRequestBuilderPatchRequestConfiguration { - /// Request headers - public IDictionary Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new bitlockerRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public BitlockerRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new Dictionary(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentResponse.cs b/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentResponse.cs index 1b7d3917cab..3bad46bcb70 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Activities.Recent { /// Provides operations to call the recent method. - public class RecentResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class RecentResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new recentResponse and sets the default values. - /// - public RecentResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RecentResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserActivity.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs index e4fe1e691d5..39f57323d56 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Authentication.MicrosoftAuthenticatorMethods.Item.Device.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs index 26678afbcab..c0b91202644 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Authentication.MicrosoftAuthenticatorMethods.Item.Device.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs index 1204a050409..9943d88a13a 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Authentication.MicrosoftAuthenticatorMethods.Item.Device.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs index a103a99f2a8..6b3097b525f 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Authentication.MicrosoftAuthenticatorMethods.Item.Device.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs index 59cf445062b..ec54da7ed57 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Authentication.WindowsHelloForBusinessMethods.Item.Device.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs index e4cdff3e0a4..43e80236587 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Authentication.WindowsHelloForBusinessMethods.Item.Device.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs index d7e1ee5dc8b..bbf42d61162 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Authentication.WindowsHelloForBusinessMethods.Item.Device.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs index 29fe6b6f7b8..e5005980329 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Authentication.WindowsHelloForBusinessMethods.Item.Device.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index d301a793709..e2bcaf1cfd3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Calendar.AllowedCalendarSharingRolesWithUser { /// Provides operations to call the allowedCalendarSharingRoles method. - public class AllowedCalendarSharingRolesWithUserResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new allowedCalendarSharingRolesWithUserResponse and sets the default values. - /// - public AllowedCalendarSharingRolesWithUserResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaResponse.cs index 81f5f57d8c3..f6a2f1c2569 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Calendar.CalendarView.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs index b287058ffae..3be216156c5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Calendar.CalendarView.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaResponse.cs index 6ed89fa128f..4d3122a6c88 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Calendar.Events.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs index a3f1f0e3ebf..5aa7d9b6d3c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Calendar.Events.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleResponse.cs index 2fdaa7ace02..cc9dd575b36 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Calendar.GetSchedule { /// Provides operations to call the getSchedule method. - public class GetScheduleResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getScheduleResponse and sets the default values. - /// - public GetScheduleResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index 7f706dace6b..6c599ff3d8d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser { /// Provides operations to call the allowedCalendarSharingRoles method. - public class AllowedCalendarSharingRolesWithUserResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new allowedCalendarSharingRolesWithUserResponse and sets the default values. - /// - public AllowedCalendarSharingRolesWithUserResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs index ced1b26dc7b..a18e97f8f5f 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.CalendarView.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs index 72abad9ad71..46ddc8b35cb 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.CalendarView.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs index 73417950053..245064d3259 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.Events.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs index 41fc69c0bb0..e3098789ea7 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs index 14f4310f3a8..6a437453263 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.GetSchedule { /// Provides operations to call the getSchedule method. - public class GetScheduleResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getScheduleResponse and sets the default values. - /// - public GetScheduleResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaResponse.cs index 37b6cdbc720..3f04b32ffc8 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.CalendarView.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaResponse.cs index 1053b146133..34d0a20f08f 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.CalendarView.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index c85c9e9fb56..4dcc0acfe2a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Calendars.Item.AllowedCalendarSharingRolesWithUser { /// Provides operations to call the allowedCalendarSharingRoles method. - public class AllowedCalendarSharingRolesWithUserResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new allowedCalendarSharingRolesWithUserResponse and sets the default values. - /// - public AllowedCalendarSharingRolesWithUserResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaResponse.cs index 69f07af60ad..7c8da28a7b5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Calendars.Item.CalendarView.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs index 741231cb9e6..39aa122f24a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Calendars.Item.CalendarView.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaResponse.cs index 48af0e0099f..d8d256f1b31 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Calendars.Item.Events.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs index f9cb2e50946..eb7090616a8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Calendars.Item.Events.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleResponse.cs index 4c2422793b4..d4575909ec6 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Calendars.Item.GetSchedule { /// Provides operations to call the getSchedule method. - public class GetScheduleResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getScheduleResponse and sets the default values. - /// - public GetScheduleResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesResponse.cs index 5c4123b98fa..9803125875d 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Chats.GetAllMessages { /// Provides operations to call the getAllMessages method. - public class GetAllMessagesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAllMessagesResponse and sets the default values. - /// - public GetAllMessagesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddResponse.cs index 6d48e141963..be07c73dcb2 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Chats.Item.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaResponse.cs index e1ab49502db..a1c3575e885 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Chats.Item.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index 6117a48c2ac..4f171c200ad 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Chats.Item.Messages.Item.Replies.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsResponse.cs index d0f1f556dbb..ee66d709049 100644 --- a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsResponse.cs index 69336037142..6d849c002b0 100644 --- a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaResponse.cs index 8efc6fec59f..e3bae59d074 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.ContactFolders.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs index e5671ab8925..b27e9d345a7 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.ContactFolders.Item.ChildFolders.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs index 38bcb7d74de..01fa57557c5 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.ContactFolders.Item.ChildFolders.Item.Contacts.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs index 7c11572bac1..87a9e249bb5 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.ContactFolders.Item.Contacts.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaResponse.cs index b41d54aed96..a0a6b0a56d6 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Contacts.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/Delta/DeltaResponse.cs index aaeb4afef3b..77363304894 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Items.Item.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs index 32619c6ce5a..d5958041b97 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Items.Item.DeltaWithToken { /// Provides operations to call the delta method. - public class DeltaWithTokenResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaWithTokenResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaWithTokenResponse and sets the default values. - /// - public DeltaWithTokenResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaWithTokenResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 272d55a1226..adf4e22820a 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 2df5af70771..51096cb33de 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/Invite/InviteResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/Invite/InviteResponse.cs index ca54860c12f..19f96438428 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/Invite/InviteResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/Invite/InviteResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Items.Item.Invite { /// Provides operations to call the invite method. - public class InviteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class InviteResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new inviteResponse and sets the default values. - /// - public InviteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InviteResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index b72691f9d49..8af1aa8f28c 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Items.Item.ListItem.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 45e51a63f9f..dd504a4cd26 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Items.Item.ListItem.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs index aa803bde80f..455794dc3af 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Items.Item.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs index 0eea746f721..61f374e7517 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Items.Item.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 3fef01e3f2c..f6e0b035408 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.List.ContentTypes.GetCompatibleHubContentTypes { /// Provides operations to call the getCompatibleHubContentTypes method. - public class GetCompatibleHubContentTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - /// - public GetCompatibleHubContentTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 021600fb43f..6d6f945e6a6 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.List.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 77fcc574e9a..fa32eac70ac 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Recent/RecentResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Recent/RecentResponse.cs index 2dc61a044a7..473367454a6 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Recent/RecentResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Recent/RecentResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Recent { /// Provides operations to call the recent method. - public class RecentResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class RecentResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new recentResponse and sets the default values. - /// - public RecentResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RecentResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/Delta/DeltaResponse.cs index da91818a665..480ffbb7c1f 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Root.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs index c98bc261859..0c40339a305 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Root.DeltaWithToken { /// Provides operations to call the delta method. - public class DeltaWithTokenResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaWithTokenResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaWithTokenResponse and sets the default values. - /// - public DeltaWithTokenResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaWithTokenResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index b04c2a08140..3c260c1a95c 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Root.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index acfab8cd3ff..08543c988bb 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Root.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/Invite/InviteResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/Invite/InviteResponse.cs index 5d739a0954c..ac089e21d36 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/Invite/InviteResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/Invite/InviteResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Root.Invite { /// Provides operations to call the invite method. - public class InviteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class InviteResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new inviteResponse and sets the default values. - /// - public InviteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InviteResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 7c6a354cc2e..396c6656c8e 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Root.ListItem.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 01b2fc8f40c..6a6c15fdd3c 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Root.ListItem.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs index 1825fdbcba7..4a40d69fc2a 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Root.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs index 758d038ba66..2a409bf1d94 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.Root.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/SearchWithQ/SearchWithQResponse.cs index 3bb96138ac7..d8083fc3241 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/SharedWithMe/SharedWithMeResponse.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/SharedWithMe/SharedWithMeResponse.cs index b4e154f4844..1d3dac98c69 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/SharedWithMe/SharedWithMeResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/SharedWithMe/SharedWithMeResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Drives.Item.SharedWithMe { /// Provides operations to call the sharedWithMe method. - public class SharedWithMeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SharedWithMeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new sharedWithMeResponse and sets the default values. - /// - public SharedWithMeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SharedWithMeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SharedWithMeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SharedWithMeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaResponse.cs index d8db241323c..50ec7cf11b3 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Events.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaResponse.cs index eae0d1ba776..bcb8365e408 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Events.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsResponse.cs b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsResponse.cs index bdbc4f64f05..7bf2739016c 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.GetMailTips { /// Provides operations to call the getMailTips method. - public class GetMailTipsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMailTipsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMailTipsResponse and sets the default values. - /// - public GetMailTipsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMailTipsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMailTipsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMailTipsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailTips.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs b/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs index bcab220e4b2..5790b56e79d 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.GetManagedAppDiagnosticStatuses { /// Provides operations to call the getManagedAppDiagnosticStatuses method. - public class GetManagedAppDiagnosticStatusesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetManagedAppDiagnosticStatusesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getManagedAppDiagnosticStatusesResponse and sets the default values. - /// - public GetManagedAppDiagnosticStatusesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetManagedAppDiagnosticStatusesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetManagedAppDiagnosticStatusesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetManagedAppDiagnosticStatusesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppDiagnosticStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs b/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs index b72a2323809..729de734de2 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.GetManagedAppPolicies { /// Provides operations to call the getManagedAppPolicies method. - public class GetManagedAppPoliciesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetManagedAppPoliciesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getManagedAppPoliciesResponse and sets the default values. - /// - public GetManagedAppPoliciesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetManagedAppPoliciesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetManagedAppPoliciesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetManagedAppPoliciesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsResponse.cs index adcfe5b0e83..f4173cee4bc 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsResponse.cs index 87dd18e88cc..fe0848fd916 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs index 34bb4592891..e369d457a9e 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.JoinedTeams.GetAllMessages { /// Provides operations to call the getAllMessages method. - public class GetAllMessagesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAllMessagesResponse and sets the default values. - /// - public GetAllMessagesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs index 6956f3afa4c..d6cdd194ade 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.GetAllMessages { /// Provides operations to call the getAllMessages method. - public class GetAllMessagesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAllMessagesResponse and sets the default values. - /// - public GetAllMessagesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs index eece8655332..7325e881f1c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.Item.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs index 35048990929..2950adfe932 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.Item.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index b63158ca783..d8e3eefefd9 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.Item.Messages.Item.Replies.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddResponse.cs index 06fcbf5e088..e5d149cb5d5 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.JoinedTeams.Item.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs index 791350a1f51..8a45c67a64b 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.JoinedTeams.Item.PrimaryChannel.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs index 3530c6539c8..1305d69e216 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.JoinedTeams.Item.PrimaryChannel.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs index 0117b48aa0e..add130f1f97 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.JoinedTeams.Item.PrimaryChannel.Messages.Item.Replies.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs index 245d58fac49..3d87277953d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs @@ -137,17 +137,17 @@ public RequestInformation CreateGetRequestInformation(Action /// Configuration for the request such as headers, query parameters, and middleware options. /// - public RequestInformation CreatePatchRequestInformation(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default) { + public RequestInformation CreatePutRequestInformation(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, + HttpMethod = Method.PUT, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; requestInfo.Headers.Add("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { - var requestConfig = new ScheduleRequestBuilderPatchRequestConfiguration(); + var requestConfig = new ScheduleRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -189,9 +189,9 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service /// - public async Task PatchAsync(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = CreatePatchRequestInformation(body, requestConfiguration); + var requestInfo = CreatePutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, @@ -238,15 +238,15 @@ public ScheduleRequestBuilderGetRequestConfiguration() { } } /// Configuration for the request such as headers, query parameters, and middleware options. - public class ScheduleRequestBuilderPatchRequestConfiguration { + public class ScheduleRequestBuilderPutRequestConfiguration { /// Request headers public IDictionary Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new scheduleRequestBuilderPatchRequestConfiguration and sets the default values. + /// Instantiates a new scheduleRequestBuilderPutRequestConfiguration and sets the default values. /// - public ScheduleRequestBuilderPatchRequestConfiguration() { + public ScheduleRequestBuilderPutRequestConfiguration() { Options = new List(); Headers = new Dictionary(); } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index c2b700a434d..ea8f8197a52 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs @@ -63,7 +63,7 @@ public RequestInformation CreateDeleteRequestInformation(Action - /// Get members from me + /// Users assigned to the tag. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -119,7 +119,7 @@ public async Task DeleteAsync(Action - /// Get members from me + /// Users assigned to the tag. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -162,7 +162,7 @@ public TeamworkTagMemberItemRequestBuilderDeleteRequestConfiguration() { Headers = new Dictionary(); } } - /// Get members from me + /// Users assigned to the tag. public class TeamworkTagMemberItemRequestBuilderGetQueryParameters { /// Expand related entities [QueryParameter("%24expand")] diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs index 9e194440370..71a6390a441 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs @@ -57,7 +57,7 @@ public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get members from me + /// Get a list of the members of a standard tag in a team and their properties. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -77,7 +77,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Create new navigation property to members for me + /// Create a new teamworkTagMember object in a team. /// /// Configuration for the request such as headers, query parameters, and middleware options. /// @@ -99,7 +99,7 @@ public RequestInformation CreatePostRequestInformation(TeamworkTagMember body, A return requestInfo; } /// - /// Get members from me + /// Get a list of the members of a standard tag in a team and their properties. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -113,7 +113,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagMemberCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } /// - /// Create new navigation property to members for me + /// Create a new teamworkTagMember object in a team. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -128,7 +128,7 @@ public async Task PostAsync(TeamworkTagMember body, Action(requestInfo, TeamworkTagMember.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get members from me + /// Get a list of the members of a standard tag in a team and their properties. public class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs index 2a5d46ee795..330a5634f16 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -68,7 +68,7 @@ public RequestInformation CreateDeleteRequestInformation(Action - /// Get tags from me + /// The tags associated with the team. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -124,7 +124,7 @@ public async Task DeleteAsync(Action - /// Get tags from me + /// The tags associated with the team. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -167,7 +167,7 @@ public TeamworkTagItemRequestBuilderDeleteRequestConfiguration() { Headers = new Dictionary(); } } - /// Get tags from me + /// The tags associated with the team. public class TeamworkTagItemRequestBuilderGetQueryParameters { /// Expand related entities [QueryParameter("%24expand")] diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/TagsRequestBuilder.cs index 2afabe1316a..9da32ef9be1 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/TagsRequestBuilder.cs @@ -57,7 +57,7 @@ public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get tags from me + /// Get a list of the tag objects and their properties. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -77,7 +77,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Create new navigation property to tags for me + /// Create a standard tag for members in a team. /// /// Configuration for the request such as headers, query parameters, and middleware options. /// @@ -99,7 +99,7 @@ public RequestInformation CreatePostRequestInformation(TeamworkTag body, Action< return requestInfo; } /// - /// Get tags from me + /// Get a list of the tag objects and their properties. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -113,7 +113,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } /// - /// Create new navigation property to tags for me + /// Create a standard tag for members in a team. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -128,7 +128,7 @@ public async Task PostAsync(TeamworkTag body, Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get tags from me + /// Get a list of the tag objects and their properties. public class TagsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaResponse.cs index 83cd6b872c9..e892ca29178 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.MailFolders.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs index 64b901e5f02..c3aeae7a46b 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.MailFolders.Item.ChildFolders.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs index e371ceadde8..ab80d8c1ef1 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.MailFolders.Item.ChildFolders.Item.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaResponse.cs index 2e2dc82f308..b2b6bd3f301 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.MailFolders.Item.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs index 1e81a86684e..abb6323332d 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs @@ -16,6 +16,7 @@ using Microsoft.Graph.Me.ManagedDevices.Item.ShutDown; using Microsoft.Graph.Me.ManagedDevices.Item.SyncDevice; using Microsoft.Graph.Me.ManagedDevices.Item.UpdateWindowsDeviceAccount; +using Microsoft.Graph.Me.ManagedDevices.Item.Users; using Microsoft.Graph.Me.ManagedDevices.Item.WindowsDefenderScan; using Microsoft.Graph.Me.ManagedDevices.Item.WindowsDefenderUpdateSignatures; using Microsoft.Graph.Me.ManagedDevices.Item.Wipe; @@ -110,6 +111,10 @@ public class ManagedDeviceItemRequestBuilder { } /// Url template to use to build the URL for the current request builder private string UrlTemplate { get; set; } + /// The users property + public UsersRequestBuilder Users { get => + new UsersRequestBuilder(PathParameters, RequestAdapter); + } /// The windowsDefenderScan property public WindowsDefenderScanRequestBuilder WindowsDefenderScan { get => new WindowsDefenderScanRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Users/UsersRequestBuilder.cs new file mode 100644 index 00000000000..83cc864c952 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Users/UsersRequestBuilder.cs @@ -0,0 +1,125 @@ +using Microsoft.Graph.Models; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Me.ManagedDevices.Item.Users { + /// Provides operations to manage the users property of the microsoft.graph.managedDevice entity. + public class UsersRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new UsersRequestBuilder and sets the default values. + /// Path parameters for the request + /// The request adapter to use to execute the requests. + /// + public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/me/managedDevices/{managedDevice%2Did}/users{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UsersRequestBuilder and sets the default values. + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + /// + public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/me/managedDevices/{managedDevice%2Did}/users{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// The primary users associated with the managed device. + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UsersRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The primary users associated with the managed device. + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// Response handler to use in place of the default response handling provided by the core service + /// + public async Task GetAsync(Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + var requestInfo = CreateGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); + } + /// The primary users associated with the managed device. + public class UsersRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// Configuration for the request such as headers, query parameters, and middleware options. + public class UsersRequestBuilderGetRequestConfiguration { + /// Request headers + public IDictionary Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UsersRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UsersRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new usersRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UsersRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new Dictionary(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaResponse.cs index 58c25a46899..8d4512c06b6 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs index 7f933bcdb91..a36bf3a4f5e 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { /// Provides operations to call the getRecentNotebooks method. - public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getRecentNotebooksWithIncludePersonalNotebooksResponse and sets the default values. - /// - public GetRecentNotebooksWithIncludePersonalNotebooksResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetRecentNotebooksWithIncludePersonalNotebooksResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetRecentNotebooksWithIncludePersonalNotebooksResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetRecentNotebooksWithIncludePersonalNotebooksResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/OutlookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/OutlookRequestBuilder.cs index 4f04b9a98f6..c14d66124d4 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/OutlookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/OutlookRequestBuilder.cs @@ -73,28 +73,6 @@ public RequestInformation CreateGetRequestInformation(Action - /// Update the navigation property outlook in me - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public RequestInformation CreatePatchRequestInformation(OutlookUser body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new OutlookRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get outlook from me /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,22 +87,6 @@ public async Task GetAsync(Action(requestInfo, OutlookUser.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } /// - /// Update the navigation property outlook in me - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// Response handler to use in place of the default response handling provided by the core service - /// - public async Task PatchAsync(OutlookUser body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = CreatePatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, OutlookUser.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); - } - /// /// Provides operations to call the supportedLanguages method. /// public SupportedLanguagesRequestBuilder SupportedLanguages() { @@ -166,19 +128,5 @@ public OutlookRequestBuilderGetRequestConfiguration() { Headers = new Dictionary(); } } - /// Configuration for the request such as headers, query parameters, and middleware options. - public class OutlookRequestBuilderPatchRequestConfiguration { - /// Request headers - public IDictionary Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new outlookRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public OutlookRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new Dictionary(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs index 97ec3ea394f..e119ddcc114 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Outlook.SupportedLanguages { /// Provides operations to call the supportedLanguages method. - public class SupportedLanguagesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SupportedLanguagesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new supportedLanguagesResponse and sets the default values. - /// - public SupportedLanguagesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SupportedLanguagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SupportedLanguagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SupportedLanguagesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LocaleInfo.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs index 90757d0e317..0617ce7b03b 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Outlook.SupportedTimeZones { /// Provides operations to call the supportedTimeZones method. - public class SupportedTimeZonesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SupportedTimeZonesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new supportedTimeZonesResponse and sets the default values. - /// - public SupportedTimeZonesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SupportedTimeZonesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SupportedTimeZonesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SupportedTimeZonesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs index 2abffc7e00c..15d43df6062 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Outlook.SupportedTimeZonesWithTimeZoneStandard { /// Provides operations to call the supportedTimeZones method. - public class SupportedTimeZonesWithTimeZoneStandardResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SupportedTimeZonesWithTimeZoneStandardResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new supportedTimeZonesWithTimeZoneStandardResponse and sets the default values. - /// - public SupportedTimeZonesWithTimeZoneStandardResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SupportedTimeZonesWithTimeZoneStandardResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SupportedTimeZonesWithTimeZoneStandardResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SupportedTimeZonesWithTimeZoneStandardResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs index b61be275833..748318e3f8c 100644 --- a/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.ReminderViewWithStartDateTimeWithEndDateTime { /// Provides operations to call the reminderView method. - public class ReminderViewWithStartDateTimeWithEndDateTimeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class ReminderViewWithStartDateTimeWithEndDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new reminderViewWithStartDateTimeWithEndDateTimeResponse and sets the default values. - /// - public ReminderViewWithStartDateTimeWithEndDateTimeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static ReminderViewWithStartDateTimeWithEndDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new ReminderViewWithStartDateTimeWithEndDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ReminderViewWithStartDateTimeWithEndDateTimeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Reminder.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaResponse.cs index 6e22af80513..87444c22cdd 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Todo.Lists.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTaskList.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs index 6d3a367f9da..ce91818f91b 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.Todo.Lists.Item.Tasks.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTask.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsResponse.cs b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsResponse.cs index 96f2e19359c..49a91fd5ab1 100644 --- a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Me.TranslateExchangeIds { /// Provides operations to call the translateExchangeIds method. - public class TranslateExchangeIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class TranslateExchangeIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new translateExchangeIdsResponse and sets the default values. - /// - public TranslateExchangeIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static TranslateExchangeIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new TranslateExchangeIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new TranslateExchangeIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ConvertIdResult.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackage.cs b/src/Microsoft.Graph/Generated/Models/AccessPackage.cs index 62acbdb77bc..0f37c01ca08 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackage.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackage.cs @@ -4,9 +4,8 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. public class AccessPackage : Entity, IParsable { - /// The accessPackagesIncompatibleWith property + /// The access packages that are incompatible with this package. Read-only. public List AccessPackagesIncompatibleWith { get { return BackingStore?.Get>("accessPackagesIncompatibleWith"); } set { BackingStore?.Set("accessPackagesIncompatibleWith", value); } @@ -36,12 +35,12 @@ public string DisplayName { get { return BackingStore?.Get("displayName"); } set { BackingStore?.Set("displayName", value); } } - /// The incompatibleAccessPackages property + /// The access packages whose assigned users are ineligible to be assigned this access package. public List IncompatibleAccessPackages { get { return BackingStore?.Get>("incompatibleAccessPackages"); } set { BackingStore?.Set("incompatibleAccessPackages", value); } } - /// The incompatibleGroups property + /// The groups whose members are ineligible to be assigned this access package. public List IncompatibleGroups { get { return BackingStore?.Get>("incompatibleGroups"); } set { BackingStore?.Set("incompatibleGroups", value); } diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignment.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignment.cs index a53dd3423a3..b5114bcf8e8 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignment.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of agreement entities. public class AccessPackageAssignment : Entity, IParsable { /// Read-only. Nullable. Supports $filter (eq) on the id property and $expand query parameters. public Microsoft.Graph.Models.AccessPackage AccessPackage { diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageExternalUserLifecycleAction.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageExternalUserLifecycleAction.cs index 6dd06eec696..9018771c53a 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageExternalUserLifecycleAction.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageExternalUserLifecycleAction.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum AccessPackageExternalUserLifecycleAction { None, BlockSignIn, diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryDefinition.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryDefinition.cs index 69ae4cdf08c..5abb7a4c08a 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryDefinition.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of agreement entities. public class AccessReviewHistoryDefinition : Entity, IParsable { /// The createdBy property public UserIdentity CreatedBy { @@ -56,7 +57,7 @@ public AccessReviewHistoryStatus? Status { set { BackingStore?.Set("status", value); } } /// - /// Instantiates a new AccessReviewHistoryDefinition and sets the default values. + /// Instantiates a new accessReviewHistoryDefinition and sets the default values. /// public AccessReviewHistoryDefinition() : base() { OdataType = "#microsoft.graph.accessReviewHistoryDefinition"; diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewInstance.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewInstance.cs index 26258c932e1..a0298205e00 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewInstance.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewInstance.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of agreement entities. public class AccessReviewInstance : Entity, IParsable { /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. public List ContactedReviewers { @@ -51,7 +52,7 @@ public string Status { set { BackingStore?.Set("status", value); } } /// - /// Instantiates a new AccessReviewInstance and sets the default values. + /// Instantiates a new accessReviewInstance and sets the default values. /// public AccessReviewInstance() : base() { OdataType = "#microsoft.graph.accessReviewInstance"; diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItem.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItem.cs index 03840bdc44e..67c00e173b7 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItem.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItem.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class AccessReviewInstanceDecisionItem : Entity, IParsable { /// The identifier of the accessReviewInstance parent. Supports $select. Read-only. public string AccessReviewId { diff --git a/src/Microsoft.Graph/Generated/Models/ActionState.cs b/src/Microsoft.Graph/Generated/Models/ActionState.cs index bfa9a5e6ef9..100ee0bcebf 100644 --- a/src/Microsoft.Graph/Generated/Models/ActionState.cs +++ b/src/Microsoft.Graph/Generated/Models/ActionState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ActionState { /// Not a valid action state None, diff --git a/src/Microsoft.Graph/Generated/Models/ActivityHistoryItem.cs b/src/Microsoft.Graph/Generated/Models/ActivityHistoryItem.cs index 0a14a3ae797..9f195367909 100644 --- a/src/Microsoft.Graph/Generated/Models/ActivityHistoryItem.cs +++ b/src/Microsoft.Graph/Generated/Models/ActivityHistoryItem.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class ActivityHistoryItem : Entity, IParsable { /// Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime. public int? ActiveDurationSeconds { diff --git a/src/Microsoft.Graph/Generated/Models/ActivityType.cs b/src/Microsoft.Graph/Generated/Models/ActivityType.cs index a5e2e8ca0b5..f22c67ca0a7 100644 --- a/src/Microsoft.Graph/Generated/Models/ActivityType.cs +++ b/src/Microsoft.Graph/Generated/Models/ActivityType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ActivityType { Signin, User, diff --git a/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs b/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs index f06c77fd85a..06c8cc775db 100644 --- a/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs +++ b/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs @@ -36,7 +36,7 @@ public string Visibility { set { BackingStore?.Set("visibility", value); } } /// - /// Instantiates a new administrativeUnit and sets the default values. + /// Instantiates a new AdministrativeUnit and sets the default values. /// public AdministrativeUnit() : base() { OdataType = "#microsoft.graph.administrativeUnit"; diff --git a/src/Microsoft.Graph/Generated/Models/AdvancedConfigState.cs b/src/Microsoft.Graph/Generated/Models/AdvancedConfigState.cs index e9e3dff65a8..98fc9744abb 100644 --- a/src/Microsoft.Graph/Generated/Models/AdvancedConfigState.cs +++ b/src/Microsoft.Graph/Generated/Models/AdvancedConfigState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum AdvancedConfigState { Default, Enabled, diff --git a/src/Microsoft.Graph/Generated/Models/Agreement.cs b/src/Microsoft.Graph/Generated/Models/Agreement.cs index fbd0deb5e57..62b5d987579 100644 --- a/src/Microsoft.Graph/Generated/Models/Agreement.cs +++ b/src/Microsoft.Graph/Generated/Models/Agreement.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Agreement : Entity, IParsable { /// Read-only. Information about acceptances of this agreement. public List Acceptances { diff --git a/src/Microsoft.Graph/Generated/Models/AgreementAcceptance.cs b/src/Microsoft.Graph/Generated/Models/AgreementAcceptance.cs index 6578a5dce15..db78599b6a0 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementAcceptance.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementAcceptance.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class AgreementAcceptance : Entity, IParsable { /// The identifier of the agreement file accepted by the user. public string AgreementFileId { diff --git a/src/Microsoft.Graph/Generated/Models/AgreementAcceptanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AgreementAcceptanceCollectionResponse.cs index 1f23cda336e..6b7e521e37a 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementAcceptanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementAcceptanceCollectionResponse.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the acceptances property of the microsoft.graph.agreement entity. + /// Provides operations to manage the collection of agreementAcceptance entities. public class AgreementAcceptanceCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/AgreementAcceptanceState.cs b/src/Microsoft.Graph/Generated/Models/AgreementAcceptanceState.cs index d23964d8704..8edc7169109 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementAcceptanceState.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementAcceptanceState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum AgreementAcceptanceState { Accepted, Declined, diff --git a/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs index 37d22fde2a9..05a063f4fa1 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs @@ -4,7 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. public class AgreementCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/AgreementFileProperties.cs b/src/Microsoft.Graph/Generated/Models/AgreementFileProperties.cs index 1b5e81a940f..0fc3c80913a 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementFileProperties.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementFileProperties.cs @@ -5,6 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of agreement entities. public class AgreementFileProperties : Entity, IParsable { /// The date time representing when the file was created.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/AgreementFileVersionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AgreementFileVersionCollectionResponse.cs index f1d6753a4a5..4f95b9c756f 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementFileVersionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementFileVersionCollectionResponse.cs @@ -4,7 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the versions property of the microsoft.graph.agreementFileLocalization entity. public class AgreementFileVersionCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/AllowInvitesFrom.cs b/src/Microsoft.Graph/Generated/Models/AllowInvitesFrom.cs index 1abcf80d7e1..685e5b74cc2 100644 --- a/src/Microsoft.Graph/Generated/Models/AllowInvitesFrom.cs +++ b/src/Microsoft.Graph/Generated/Models/AllowInvitesFrom.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum AllowInvitesFrom { None, AdminsAndGuestInviters, diff --git a/src/Microsoft.Graph/Generated/Models/AndroidMinimumOperatingSystem.cs b/src/Microsoft.Graph/Generated/Models/AndroidMinimumOperatingSystem.cs index d55dc536bac..b2267645413 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidMinimumOperatingSystem.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidMinimumOperatingSystem.cs @@ -69,6 +69,36 @@ public bool? V5_1 { get { return BackingStore?.Get("v5_1"); } set { BackingStore?.Set("v5_1", value); } } + /// Version 6.0 or later. + public bool? V6_0 { + get { return BackingStore?.Get("v6_0"); } + set { BackingStore?.Set("v6_0", value); } + } + /// Version 7.0 or later. + public bool? V7_0 { + get { return BackingStore?.Get("v7_0"); } + set { BackingStore?.Set("v7_0", value); } + } + /// Version 7.1 or later. + public bool? V7_1 { + get { return BackingStore?.Get("v7_1"); } + set { BackingStore?.Set("v7_1", value); } + } + /// Version 8.0 or later. + public bool? V8_0 { + get { return BackingStore?.Get("v8_0"); } + set { BackingStore?.Set("v8_0", value); } + } + /// Version 8.1 or later. + public bool? V8_1 { + get { return BackingStore?.Get("v8_1"); } + set { BackingStore?.Set("v8_1", value); } + } + /// Version 9.0 or later. + public bool? V9_0 { + get { return BackingStore?.Get("v9_0"); } + set { BackingStore?.Set("v9_0", value); } + } /// /// Instantiates a new androidMinimumOperatingSystem and sets the default values. /// @@ -101,6 +131,12 @@ public IDictionary> GetFieldDeserializers() { {"v4_4", n => { V4_4 = n.GetBoolValue(); } }, {"v5_0", n => { V5_0 = n.GetBoolValue(); } }, {"v5_1", n => { V5_1 = n.GetBoolValue(); } }, + {"v6_0", n => { V6_0 = n.GetBoolValue(); } }, + {"v7_0", n => { V7_0 = n.GetBoolValue(); } }, + {"v7_1", n => { V7_1 = n.GetBoolValue(); } }, + {"v8_0", n => { V8_0 = n.GetBoolValue(); } }, + {"v8_1", n => { V8_1 = n.GetBoolValue(); } }, + {"v9_0", n => { V9_0 = n.GetBoolValue(); } }, }; } /// @@ -120,6 +156,12 @@ public void Serialize(ISerializationWriter writer) { writer.WriteBoolValue("v4_4", V4_4); writer.WriteBoolValue("v5_0", V5_0); writer.WriteBoolValue("v5_1", V5_1); + writer.WriteBoolValue("v6_0", V6_0); + writer.WriteBoolValue("v7_0", V7_0); + writer.WriteBoolValue("v7_1", V7_1); + writer.WriteBoolValue("v8_0", V8_0); + writer.WriteBoolValue("v8_1", V8_1); + writer.WriteBoolValue("v9_0", V9_0); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Microsoft.Graph/Generated/Models/AndroidRequiredPasswordType.cs b/src/Microsoft.Graph/Generated/Models/AndroidRequiredPasswordType.cs index 00c1176e3d3..f56eccf10dc 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidRequiredPasswordType.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidRequiredPasswordType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum AndroidRequiredPasswordType { /// Device default value, no intent. DeviceDefault, diff --git a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileCrossProfileDataSharingType.cs b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileCrossProfileDataSharingType.cs index b79f5d79d13..1200252c1a3 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileCrossProfileDataSharingType.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileCrossProfileDataSharingType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum AndroidWorkProfileCrossProfileDataSharingType { /// Device default value, no intent. DeviceDefault, diff --git a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileDefaultAppPermissionPolicyType.cs b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileDefaultAppPermissionPolicyType.cs index 8db7e618f89..be5b7dce1f8 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileDefaultAppPermissionPolicyType.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileDefaultAppPermissionPolicyType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum AndroidWorkProfileDefaultAppPermissionPolicyType { /// Device default value, no intent. DeviceDefault, diff --git a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileRequiredPasswordType.cs b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileRequiredPasswordType.cs index 4f3295b04eb..da88c5d6ad9 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileRequiredPasswordType.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileRequiredPasswordType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum AndroidWorkProfileRequiredPasswordType { /// Device default value, no intent. DeviceDefault, diff --git a/src/Microsoft.Graph/Generated/Models/AppConsentRequest.cs b/src/Microsoft.Graph/Generated/Models/AppConsentRequest.cs index 39334ce5282..683a0acab88 100644 --- a/src/Microsoft.Graph/Generated/Models/AppConsentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/AppConsentRequest.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class AppConsentRequest : Entity, IParsable { /// The display name of the app for which consent is requested. Required. Supports $filter (eq only) and $orderby. public string AppDisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/AppListType.cs b/src/Microsoft.Graph/Generated/Models/AppListType.cs index 64b419f1767..4b4a10604f0 100644 --- a/src/Microsoft.Graph/Generated/Models/AppListType.cs +++ b/src/Microsoft.Graph/Generated/Models/AppListType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum AppListType { /// Default value, no intent. None, diff --git a/src/Microsoft.Graph/Generated/Models/AppLockerApplicationControlType.cs b/src/Microsoft.Graph/Generated/Models/AppLockerApplicationControlType.cs index 84cd679b028..359de035c31 100644 --- a/src/Microsoft.Graph/Generated/Models/AppLockerApplicationControlType.cs +++ b/src/Microsoft.Graph/Generated/Models/AppLockerApplicationControlType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum AppLockerApplicationControlType { /// Device default value, no Application Control type selected. NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/AppRoleAssignment.cs b/src/Microsoft.Graph/Generated/Models/AppRoleAssignment.cs index d16d3341815..a452bfaf5f6 100644 --- a/src/Microsoft.Graph/Generated/Models/AppRoleAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/AppRoleAssignment.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class AppRoleAssignment : DirectoryObject, IParsable { /// The identifier (id) for the app role which is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application has not declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. public string AppRoleId { diff --git a/src/Microsoft.Graph/Generated/Models/AppScope.cs b/src/Microsoft.Graph/Generated/Models/AppScope.cs index d1191108505..79384f7a682 100644 --- a/src/Microsoft.Graph/Generated/Models/AppScope.cs +++ b/src/Microsoft.Graph/Generated/Models/AppScope.cs @@ -16,7 +16,7 @@ public string Type { set { BackingStore?.Set("type", value); } } /// - /// Instantiates a new AppScope and sets the default values. + /// Instantiates a new appScope and sets the default values. /// public AppScope() : base() { OdataType = "#microsoft.graph.appScope"; diff --git a/src/Microsoft.Graph/Generated/Models/ApplePushNotificationCertificate.cs b/src/Microsoft.Graph/Generated/Models/ApplePushNotificationCertificate.cs index 1a805f7a3fe..f8bbbbbf940 100644 --- a/src/Microsoft.Graph/Generated/Models/ApplePushNotificationCertificate.cs +++ b/src/Microsoft.Graph/Generated/Models/ApplePushNotificationCertificate.cs @@ -20,6 +20,16 @@ public string CertificateSerialNumber { get { return BackingStore?.Get("certificateSerialNumber"); } set { BackingStore?.Set("certificateSerialNumber", value); } } + /// The reason the certificate upload failed. + public string CertificateUploadFailureReason { + get { return BackingStore?.Get("certificateUploadFailureReason"); } + set { BackingStore?.Set("certificateUploadFailureReason", value); } + } + /// The certificate upload status. + public string CertificateUploadStatus { + get { return BackingStore?.Get("certificateUploadStatus"); } + set { BackingStore?.Set("certificateUploadStatus", value); } + } /// The expiration date and time for Apple push notification certificate. public DateTimeOffset? ExpirationDateTime { get { return BackingStore?.Get("expirationDateTime"); } @@ -57,6 +67,8 @@ public ApplePushNotificationCertificate() : base() { {"appleIdentifier", n => { AppleIdentifier = n.GetStringValue(); } }, {"certificate", n => { Certificate = n.GetStringValue(); } }, {"certificateSerialNumber", n => { CertificateSerialNumber = n.GetStringValue(); } }, + {"certificateUploadFailureReason", n => { CertificateUploadFailureReason = n.GetStringValue(); } }, + {"certificateUploadStatus", n => { CertificateUploadStatus = n.GetStringValue(); } }, {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"topicIdentifier", n => { TopicIdentifier = n.GetStringValue(); } }, @@ -71,6 +83,8 @@ public ApplePushNotificationCertificate() : base() { base.Serialize(writer); writer.WriteStringValue("appleIdentifier", AppleIdentifier); writer.WriteStringValue("certificate", Certificate); + writer.WriteStringValue("certificateUploadFailureReason", CertificateUploadFailureReason); + writer.WriteStringValue("certificateUploadStatus", CertificateUploadStatus); writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); writer.WriteStringValue("topicIdentifier", TopicIdentifier); diff --git a/src/Microsoft.Graph/Generated/Models/ApplicationGuardBlockClipboardSharingType.cs b/src/Microsoft.Graph/Generated/Models/ApplicationGuardBlockClipboardSharingType.cs index 92139252fd8..53b3a263627 100644 --- a/src/Microsoft.Graph/Generated/Models/ApplicationGuardBlockClipboardSharingType.cs +++ b/src/Microsoft.Graph/Generated/Models/ApplicationGuardBlockClipboardSharingType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ApplicationGuardBlockClipboardSharingType { /// Not Configured NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/ApplicationGuardBlockFileTransferType.cs b/src/Microsoft.Graph/Generated/Models/ApplicationGuardBlockFileTransferType.cs index dd5e2cbba60..802a4e75523 100644 --- a/src/Microsoft.Graph/Generated/Models/ApplicationGuardBlockFileTransferType.cs +++ b/src/Microsoft.Graph/Generated/Models/ApplicationGuardBlockFileTransferType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ApplicationGuardBlockFileTransferType { /// Not Configured NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicyResult.cs b/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicyResult.cs index 497b32205fb..7af7fbc1a2c 100644 --- a/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicyResult.cs +++ b/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicyResult.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum AppliedConditionalAccessPolicyResult { Success, Failure, diff --git a/src/Microsoft.Graph/Generated/Models/ApprovalStage.cs b/src/Microsoft.Graph/Generated/Models/ApprovalStage.cs index 0f95d1c9b76..8f6c67d760b 100644 --- a/src/Microsoft.Graph/Generated/Models/ApprovalStage.cs +++ b/src/Microsoft.Graph/Generated/Models/ApprovalStage.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class ApprovalStage : Entity, IParsable { /// Indicates whether the stage is assigned to the calling user to review. Read-only. public bool? AssignedToMe { diff --git a/src/Microsoft.Graph/Generated/Models/Attachment.cs b/src/Microsoft.Graph/Generated/Models/Attachment.cs index 81ba2758376..9d4cee26e57 100644 --- a/src/Microsoft.Graph/Generated/Models/Attachment.cs +++ b/src/Microsoft.Graph/Generated/Models/Attachment.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Attachment : Entity, IParsable { /// The MIME type. public string ContentType { diff --git a/src/Microsoft.Graph/Generated/Models/AttachmentBase.cs b/src/Microsoft.Graph/Generated/Models/AttachmentBase.cs index 61a82deba92..e84aa8892ae 100644 --- a/src/Microsoft.Graph/Generated/Models/AttachmentBase.cs +++ b/src/Microsoft.Graph/Generated/Models/AttachmentBase.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class AttachmentBase : Entity, IParsable { /// The contentType property public string ContentType { diff --git a/src/Microsoft.Graph/Generated/Models/AttachmentSession.cs b/src/Microsoft.Graph/Generated/Models/AttachmentSession.cs index 2f03b9345db..bbaba418216 100644 --- a/src/Microsoft.Graph/Generated/Models/AttachmentSession.cs +++ b/src/Microsoft.Graph/Generated/Models/AttachmentSession.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class AttachmentSession : Entity, IParsable { /// The content property public byte[] Content { diff --git a/src/Microsoft.Graph/Generated/Models/AttendanceRecord.cs b/src/Microsoft.Graph/Generated/Models/AttendanceRecord.cs index dfca48a5bcc..88c433fc9dd 100644 --- a/src/Microsoft.Graph/Generated/Models/AttendanceRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/AttendanceRecord.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class AttendanceRecord : Entity, IParsable { /// List of time periods between joining and leaving a meeting. public List AttendanceIntervals { diff --git a/src/Microsoft.Graph/Generated/Models/AttendeeType.cs b/src/Microsoft.Graph/Generated/Models/AttendeeType.cs index a9a0921f00d..708e9d6946a 100644 --- a/src/Microsoft.Graph/Generated/Models/AttendeeType.cs +++ b/src/Microsoft.Graph/Generated/Models/AttendeeType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum AttendeeType { Required, Optional, diff --git a/src/Microsoft.Graph/Generated/Models/AttestationLevel.cs b/src/Microsoft.Graph/Generated/Models/AttestationLevel.cs index 20ab765ca4f..3e3d14127e6 100644 --- a/src/Microsoft.Graph/Generated/Models/AttestationLevel.cs +++ b/src/Microsoft.Graph/Generated/Models/AttestationLevel.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum AttestationLevel { Attested, NotAttested, diff --git a/src/Microsoft.Graph/Generated/Models/AudioRoutingGroup.cs b/src/Microsoft.Graph/Generated/Models/AudioRoutingGroup.cs index fa929e19f91..81cc8467edd 100644 --- a/src/Microsoft.Graph/Generated/Models/AudioRoutingGroup.cs +++ b/src/Microsoft.Graph/Generated/Models/AudioRoutingGroup.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class AudioRoutingGroup : Entity, IParsable { /// The receivers property public List Receivers { diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReference.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReference.cs index 659dfc90856..852cbe416d5 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReference.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReference.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class AuthenticationContextClassReference : Entity, IParsable { /// A short explanation of the policies that are enforced by authenticationContextClassReference. This value should be used to provide secondary text to describe the authentication context class reference when building user-facing admin experiences. For example, a selection UX. public string Description { diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs index 10126ebd41b..9e600f751bb 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class AuthenticationMethod : Entity, IParsable { /// /// Instantiates a new authenticationMethod and sets the default values. diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodConfigurationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodConfigurationCollectionResponse.cs index b2c37ef0097..547b7fb50a9 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodConfigurationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodConfigurationCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of authenticationMethodConfiguration entities. public class AuthenticationMethodConfigurationCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodKeyStrength.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodKeyStrength.cs index c8f70b0aef3..e5066fd3683 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodKeyStrength.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodKeyStrength.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum AuthenticationMethodKeyStrength { Normal, Weak, diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodSignInState.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodSignInState.cs index 4199439e876..02bd47a66e0 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodSignInState.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodSignInState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum AuthenticationMethodSignInState { NotSupported, NotAllowedByPolicy, diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodState.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodState.cs index a27f2fcaa99..3cd49d9492c 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodState.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum AuthenticationMethodState { Enabled, Disabled, diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationPhoneType.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationPhoneType.cs index 6097b89c799..da5d5d1a5d1 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationPhoneType.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationPhoneType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum AuthenticationPhoneType { Mobile, AlternateMobile, diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationProtocol.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationProtocol.cs index c2c7176ee90..77df99bd34b 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationProtocol.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationProtocol.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum AuthenticationProtocol { WsFed, Saml, diff --git a/src/Microsoft.Graph/Generated/Models/AutoRestartNotificationDismissalMethod.cs b/src/Microsoft.Graph/Generated/Models/AutoRestartNotificationDismissalMethod.cs index 8682302962c..7e4922529dd 100644 --- a/src/Microsoft.Graph/Generated/Models/AutoRestartNotificationDismissalMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/AutoRestartNotificationDismissalMethod.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum AutoRestartNotificationDismissalMethod { /// Not configured NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/AutomaticRepliesStatus.cs b/src/Microsoft.Graph/Generated/Models/AutomaticRepliesStatus.cs index b917af867f2..2122cc20e39 100644 --- a/src/Microsoft.Graph/Generated/Models/AutomaticRepliesStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/AutomaticRepliesStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum AutomaticRepliesStatus { Disabled, AlwaysEnabled, diff --git a/src/Microsoft.Graph/Generated/Models/AutomaticUpdateMode.cs b/src/Microsoft.Graph/Generated/Models/AutomaticUpdateMode.cs index 0fc2b02321c..89e4d82605c 100644 --- a/src/Microsoft.Graph/Generated/Models/AutomaticUpdateMode.cs +++ b/src/Microsoft.Graph/Generated/Models/AutomaticUpdateMode.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum AutomaticUpdateMode { /// User Defined, default value, no intent. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/BaseDeltaFunctionResponse.cs b/src/Microsoft.Graph/Generated/Models/BaseDeltaFunctionResponse.cs new file mode 100644 index 00000000000..0c0ee8198cd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/BaseDeltaFunctionResponse.cs @@ -0,0 +1,61 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Models { + public class BaseDeltaFunctionResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The OdataDeltaLink property + public string OdataDeltaLink { + get { return BackingStore?.Get("@odata.deltaLink"); } + set { BackingStore?.Set("@odata.deltaLink", value); } + } + /// The OdataNextLink property + public string OdataNextLink { + get { return BackingStore?.Get("@odata.nextLink"); } + set { BackingStore?.Set("@odata.nextLink", value); } + } + /// + /// Instantiates a new BaseDeltaFunctionResponse and sets the default values. + /// + public BaseDeltaFunctionResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// The parse node to use to read the discriminator value and create the object + /// + public static BaseDeltaFunctionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new BaseDeltaFunctionResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"@odata.deltaLink", n => { OdataDeltaLink = n.GetStringValue(); } }, + {"@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// Serialization writer to use to serialize this model + /// + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.deltaLink", OdataDeltaLink); + writer.WriteStringValue("@odata.nextLink", OdataNextLink); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/BaseItem.cs b/src/Microsoft.Graph/Generated/Models/BaseItem.cs index 211a3588c7d..7174bcd0341 100644 --- a/src/Microsoft.Graph/Generated/Models/BaseItem.cs +++ b/src/Microsoft.Graph/Generated/Models/BaseItem.cs @@ -5,7 +5,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. public class BaseItem : Entity, IParsable { /// Identity of the user, device, or application which created the item. Read-only. public IdentitySet CreatedBy { diff --git a/src/Microsoft.Graph/Generated/Models/BaseItemVersion.cs b/src/Microsoft.Graph/Generated/Models/BaseItemVersion.cs index 3c4d231c61a..a5fe00486b1 100644 --- a/src/Microsoft.Graph/Generated/Models/BaseItemVersion.cs +++ b/src/Microsoft.Graph/Generated/Models/BaseItemVersion.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class BaseItemVersion : Entity, IParsable { /// Identity of the user which last modified the version. Read-only. public IdentitySet LastModifiedBy { diff --git a/src/Microsoft.Graph/Generated/Models/BitLockerEncryptionMethod.cs b/src/Microsoft.Graph/Generated/Models/BitLockerEncryptionMethod.cs index cf7b7345e09..e0129bbd25b 100644 --- a/src/Microsoft.Graph/Generated/Models/BitLockerEncryptionMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/BitLockerEncryptionMethod.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum BitLockerEncryptionMethod { /// AES-CBC 128-bit. AesCbc128, diff --git a/src/Microsoft.Graph/Generated/Models/BitlockerRecoveryKey.cs b/src/Microsoft.Graph/Generated/Models/BitlockerRecoveryKey.cs index 8831f10b7d9..aa8dff56497 100644 --- a/src/Microsoft.Graph/Generated/Models/BitlockerRecoveryKey.cs +++ b/src/Microsoft.Graph/Generated/Models/BitlockerRecoveryKey.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class BitlockerRecoveryKey : Entity, IParsable { /// The date and time when the key was originally backed up to Azure Active Directory. Not nullable. public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs index 1632a891b4b..2caa82a92d5 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs @@ -10,6 +10,11 @@ public string AdditionalInformation { get { return BackingStore?.Get("additionalInformation"); } set { BackingStore?.Set("additionalInformation", value); } } + /// The anonymousJoinWebUrl property + public string AnonymousJoinWebUrl { + get { return BackingStore?.Get("anonymousJoinWebUrl"); } + set { BackingStore?.Set("anonymousJoinWebUrl", value); } + } /// It lists down the customer properties for an appointment. An appointment will contain a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional. public List Customers { get { return BackingStore?.Get>("customers"); } @@ -140,6 +145,7 @@ public BookingAppointment() : base() { public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"additionalInformation", n => { AdditionalInformation = n.GetStringValue(); } }, + {"anonymousJoinWebUrl", n => { AnonymousJoinWebUrl = n.GetStringValue(); } }, {"customers", n => { Customers = n.GetCollectionOfObjectValues(BookingCustomerInformationBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"customerTimeZone", n => { CustomerTimeZone = n.GetStringValue(); } }, {"duration", n => { Duration = n.GetTimeSpanValue(); } }, @@ -172,6 +178,7 @@ public BookingAppointment() : base() { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("additionalInformation", AdditionalInformation); + writer.WriteStringValue("anonymousJoinWebUrl", AnonymousJoinWebUrl); writer.WriteCollectionOfObjectValues("customers", Customers); writer.WriteStringValue("customerTimeZone", CustomerTimeZone); writer.WriteObjectValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/BookingBusiness.cs b/src/Microsoft.Graph/Generated/Models/BookingBusiness.cs index 78e9798e6cc..dc8c85fd1d5 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingBusiness.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingBusiness.cs @@ -60,6 +60,11 @@ public bool? IsPublished { get { return BackingStore?.Get("isPublished"); } set { BackingStore?.Set("isPublished", value); } } + /// The languageTag property + public string LanguageTag { + get { return BackingStore?.Get("languageTag"); } + set { BackingStore?.Set("languageTag", value); } + } /// The telephone number for the business. The phone property, together with address and webSiteUrl, appear in the footer of a business scheduling page. public string Phone { get { return BackingStore?.Get("phone"); } @@ -120,6 +125,7 @@ public BookingBusiness() : base() { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, {"isPublished", n => { IsPublished = n.GetBoolValue(); } }, + {"languageTag", n => { LanguageTag = n.GetStringValue(); } }, {"phone", n => { Phone = n.GetStringValue(); } }, {"publicUrl", n => { PublicUrl = n.GetStringValue(); } }, {"schedulingPolicy", n => { SchedulingPolicy = n.GetObjectValue(BookingSchedulingPolicy.CreateFromDiscriminatorValue); } }, @@ -145,6 +151,7 @@ public BookingBusiness() : base() { writer.WriteStringValue("defaultCurrencyIso", DefaultCurrencyIso); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("email", Email); + writer.WriteStringValue("languageTag", LanguageTag); writer.WriteStringValue("phone", Phone); writer.WriteObjectValue("schedulingPolicy", SchedulingPolicy); writer.WriteCollectionOfObjectValues("services", Services); diff --git a/src/Microsoft.Graph/Generated/Models/BookingPriceType.cs b/src/Microsoft.Graph/Generated/Models/BookingPriceType.cs index ec08530c8ab..105570d888b 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingPriceType.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingPriceType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum BookingPriceType { /// The price of the service is not defined. Undefined, diff --git a/src/Microsoft.Graph/Generated/Models/BookingReminderRecipients.cs b/src/Microsoft.Graph/Generated/Models/BookingReminderRecipients.cs index 860710ef97f..530f4e75b64 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingReminderRecipients.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingReminderRecipients.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum BookingReminderRecipients { AllAttendees, Staff, diff --git a/src/Microsoft.Graph/Generated/Models/BookingService.cs b/src/Microsoft.Graph/Generated/Models/BookingService.cs index 66d20b4a142..fd5e2d683e3 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingService.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingService.cs @@ -51,6 +51,11 @@ public string DisplayName { get { return BackingStore?.Get("displayName"); } set { BackingStore?.Set("displayName", value); } } + /// The isAnonymousJoinEnabled property + public bool? IsAnonymousJoinEnabled { + get { return BackingStore?.Get("isAnonymousJoinEnabled"); } + set { BackingStore?.Set("isAnonymousJoinEnabled", value); } + } /// True means this service is not available to customers for booking. public bool? IsHiddenFromCustomers { get { return BackingStore?.Get("isHiddenFromCustomers"); } @@ -61,6 +66,11 @@ public bool? IsLocationOnline { get { return BackingStore?.Get("isLocationOnline"); } set { BackingStore?.Set("isLocationOnline", value); } } + /// The languageTag property + public string LanguageTag { + get { return BackingStore?.Get("languageTag"); } + set { BackingStore?.Set("languageTag", value); } + } /// The maximum number of customers allowed in a service. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation. public int? MaximumAttendeesCount { get { return BackingStore?.Get("maximumAttendeesCount"); } @@ -129,8 +139,10 @@ public BookingService() : base() { {"defaultReminders", n => { DefaultReminders = n.GetCollectionOfObjectValues(BookingReminder.CreateFromDiscriminatorValue)?.ToList(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"isAnonymousJoinEnabled", n => { IsAnonymousJoinEnabled = n.GetBoolValue(); } }, {"isHiddenFromCustomers", n => { IsHiddenFromCustomers = n.GetBoolValue(); } }, {"isLocationOnline", n => { IsLocationOnline = n.GetBoolValue(); } }, + {"languageTag", n => { LanguageTag = n.GetStringValue(); } }, {"maximumAttendeesCount", n => { MaximumAttendeesCount = n.GetIntValue(); } }, {"notes", n => { Notes = n.GetStringValue(); } }, {"postBuffer", n => { PostBuffer = n.GetTimeSpanValue(); } }, @@ -157,8 +169,10 @@ public BookingService() : base() { writer.WriteCollectionOfObjectValues("defaultReminders", DefaultReminders); writer.WriteStringValue("description", Description); writer.WriteStringValue("displayName", DisplayName); + writer.WriteBoolValue("isAnonymousJoinEnabled", IsAnonymousJoinEnabled); writer.WriteBoolValue("isHiddenFromCustomers", IsHiddenFromCustomers); writer.WriteBoolValue("isLocationOnline", IsLocationOnline); + writer.WriteStringValue("languageTag", LanguageTag); writer.WriteIntValue("maximumAttendeesCount", MaximumAttendeesCount); writer.WriteStringValue("notes", Notes); writer.WriteTimeSpanValue("postBuffer", PostBuffer); diff --git a/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs b/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs index 5e3e966e38e..e49112716b3 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs @@ -20,6 +20,11 @@ public string EmailAddress { get { return BackingStore?.Get("emailAddress"); } set { BackingStore?.Set("emailAddress", value); } } + /// The isEmailNotificationEnabled property + public bool? IsEmailNotificationEnabled { + get { return BackingStore?.Get("isEmailNotificationEnabled"); } + set { BackingStore?.Set("isEmailNotificationEnabled", value); } + } /// The role property public BookingStaffRole? Role { get { return BackingStore?.Get("role"); } @@ -62,6 +67,7 @@ public BookingStaffMember() : base() { {"availabilityIsAffectedByPersonalCalendar", n => { AvailabilityIsAffectedByPersonalCalendar = n.GetBoolValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"emailAddress", n => { EmailAddress = n.GetStringValue(); } }, + {"isEmailNotificationEnabled", n => { IsEmailNotificationEnabled = n.GetBoolValue(); } }, {"role", n => { Role = n.GetEnumValue(); } }, {"timeZone", n => { TimeZone = n.GetStringValue(); } }, {"useBusinessHours", n => { UseBusinessHours = n.GetBoolValue(); } }, @@ -78,6 +84,7 @@ public BookingStaffMember() : base() { writer.WriteBoolValue("availabilityIsAffectedByPersonalCalendar", AvailabilityIsAffectedByPersonalCalendar); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("emailAddress", EmailAddress); + writer.WriteBoolValue("isEmailNotificationEnabled", IsEmailNotificationEnabled); writer.WriteEnumValue("role", Role); writer.WriteStringValue("timeZone", TimeZone); writer.WriteBoolValue("useBusinessHours", UseBusinessHours); diff --git a/src/Microsoft.Graph/Generated/Models/BookingStaffRole.cs b/src/Microsoft.Graph/Generated/Models/BookingStaffRole.cs index 2e3cc46b7aa..65307ff4618 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingStaffRole.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingStaffRole.cs @@ -6,5 +6,7 @@ public enum BookingStaffRole { Viewer, ExternalGuest, UnknownFutureValue, + Scheduler, + TeamMember, } } diff --git a/src/Microsoft.Graph/Generated/Models/BookingType.cs b/src/Microsoft.Graph/Generated/Models/BookingType.cs index 04871bb16df..908ee478e57 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingType.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum BookingType { Unknown, Standard, diff --git a/src/Microsoft.Graph/Generated/Models/BookingsAvailabilityStatus.cs b/src/Microsoft.Graph/Generated/Models/BookingsAvailabilityStatus.cs index 617811a67c1..41f3d63538a 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingsAvailabilityStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingsAvailabilityStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum BookingsAvailabilityStatus { Available, Busy, diff --git a/src/Microsoft.Graph/Generated/Models/BroadcastMeetingAudience.cs b/src/Microsoft.Graph/Generated/Models/BroadcastMeetingAudience.cs index e798cc6bc3a..5e5aa119742 100644 --- a/src/Microsoft.Graph/Generated/Models/BroadcastMeetingAudience.cs +++ b/src/Microsoft.Graph/Generated/Models/BroadcastMeetingAudience.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum BroadcastMeetingAudience { RoleIsAttendee, Organization, diff --git a/src/Microsoft.Graph/Generated/Models/BucketAggregationSortProperty.cs b/src/Microsoft.Graph/Generated/Models/BucketAggregationSortProperty.cs index 9f88f7bba48..fa743652d1b 100644 --- a/src/Microsoft.Graph/Generated/Models/BucketAggregationSortProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/BucketAggregationSortProperty.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum BucketAggregationSortProperty { Count, KeyAsString, diff --git a/src/Microsoft.Graph/Generated/Models/CalendarColor.cs b/src/Microsoft.Graph/Generated/Models/CalendarColor.cs index 8d81e24b744..3f94fc1fa80 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarColor.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarColor.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CalendarColor { Auto, LightBlue, diff --git a/src/Microsoft.Graph/Generated/Models/CalendarGroup.cs b/src/Microsoft.Graph/Generated/Models/CalendarGroup.cs index 7789dca65e3..8a599192209 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarGroup.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarGroup.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class CalendarGroup : Entity, IParsable { /// The calendars in the calendar group. Navigation property. Read-only. Nullable. public List Calendars { diff --git a/src/Microsoft.Graph/Generated/Models/CalendarPermission.cs b/src/Microsoft.Graph/Generated/Models/CalendarPermission.cs index 406c408a66f..5936e6237a3 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarPermission.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarPermission.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class CalendarPermission : Entity, IParsable { /// List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom. public List AllowedRoles { diff --git a/src/Microsoft.Graph/Generated/Models/CalendarRoleType.cs b/src/Microsoft.Graph/Generated/Models/CalendarRoleType.cs index 4b5bb8e680c..1a4b470b1ea 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarRoleType.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarRoleType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CalendarRoleType { None, FreeBusyRead, diff --git a/src/Microsoft.Graph/Generated/Models/CalendarSharingAction.cs b/src/Microsoft.Graph/Generated/Models/CalendarSharingAction.cs index d0b3de1eb82..40cfe3699d6 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarSharingAction.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarSharingAction.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CalendarSharingAction { Accept, AcceptAndViewCalendar, diff --git a/src/Microsoft.Graph/Generated/Models/CalendarSharingActionImportance.cs b/src/Microsoft.Graph/Generated/Models/CalendarSharingActionImportance.cs index 0e9e82c0d08..8abe257f397 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarSharingActionImportance.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarSharingActionImportance.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CalendarSharingActionImportance { Primary, Secondary, diff --git a/src/Microsoft.Graph/Generated/Models/CalendarSharingActionType.cs b/src/Microsoft.Graph/Generated/Models/CalendarSharingActionType.cs index b76da1653fd..5db4fb62683 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarSharingActionType.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarSharingActionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CalendarSharingActionType { Accept, } diff --git a/src/Microsoft.Graph/Generated/Models/Call.cs b/src/Microsoft.Graph/Generated/Models/Call.cs index 3aef18ba592..3d897465853 100644 --- a/src/Microsoft.Graph/Generated/Models/Call.cs +++ b/src/Microsoft.Graph/Generated/Models/Call.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Call : Entity, IParsable { /// The audioRoutingGroups property public List AudioRoutingGroups { diff --git a/src/Microsoft.Graph/Generated/Models/CallDirection.cs b/src/Microsoft.Graph/Generated/Models/CallDirection.cs index e46dd7e5497..def9f90f488 100644 --- a/src/Microsoft.Graph/Generated/Models/CallDirection.cs +++ b/src/Microsoft.Graph/Generated/Models/CallDirection.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CallDirection { Incoming, Outgoing, diff --git a/src/Microsoft.Graph/Generated/Models/CallRecordingStatus.cs b/src/Microsoft.Graph/Generated/Models/CallRecordingStatus.cs index 0a096ef4ce4..dd66f76e22d 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecordingStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecordingStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum CallRecordingStatus { Success, Failure, diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecord.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecord.cs index bfd8d02f7c8..03b8bb370d5 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecord.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.CallRecords { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class CallRecord : Entity, IParsable { /// UTC time when the last user left the call. The DateTimeOffset 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 public DateTimeOffset? EndDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecordCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecordCollectionResponse.cs index 57c6cebf412..69c2fee52d5 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecordCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecordCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.CallRecords { + /// Provides operations to manage the callRecords property of the microsoft.graph.cloudCommunications entity. public class CallRecordCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/CallType.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/CallType.cs index bf0d4aa4a83..f6264fb355a 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/CallType.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/CallType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.CallRecords { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CallType { Unknown, GroupCall, diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/Modality.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/Modality.cs index 09d761b5f04..113f03e86a4 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/Modality.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/Modality.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.CallRecords { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum Modality { Audio, Video, diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/Session.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/Session.cs index d470b9bbc3f..097bd169ef5 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/Session.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/Session.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.CallRecords { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Session : Entity, IParsable { /// Endpoint that answered the session. public Endpoint Callee { diff --git a/src/Microsoft.Graph/Generated/Models/CallState.cs b/src/Microsoft.Graph/Generated/Models/CallState.cs index 5d2f7a54bdd..1af1121b3c4 100644 --- a/src/Microsoft.Graph/Generated/Models/CallState.cs +++ b/src/Microsoft.Graph/Generated/Models/CallState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CallState { Incoming, Establishing, diff --git a/src/Microsoft.Graph/Generated/Models/CallTranscriptionState.cs b/src/Microsoft.Graph/Generated/Models/CallTranscriptionState.cs index a88f309fbff..8f070b64796 100644 --- a/src/Microsoft.Graph/Generated/Models/CallTranscriptionState.cs +++ b/src/Microsoft.Graph/Generated/Models/CallTranscriptionState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CallTranscriptionState { NotStarted, Active, diff --git a/src/Microsoft.Graph/Generated/Models/CategoryColor.cs b/src/Microsoft.Graph/Generated/Models/CategoryColor.cs index d421122d752..288152c5cd7 100644 --- a/src/Microsoft.Graph/Generated/Models/CategoryColor.cs +++ b/src/Microsoft.Graph/Generated/Models/CategoryColor.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CategoryColor { None, Preset0, diff --git a/src/Microsoft.Graph/Generated/Models/CertificateBasedAuthConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CertificateBasedAuthConfiguration.cs index 79a86e940e6..710b22199e2 100644 --- a/src/Microsoft.Graph/Generated/Models/CertificateBasedAuthConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/CertificateBasedAuthConfiguration.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class CertificateBasedAuthConfiguration : Entity, IParsable { /// Collection of certificate authorities which creates a trusted certificate chain. public List CertificateAuthorities { diff --git a/src/Microsoft.Graph/Generated/Models/ChangeTrackedEntity.cs b/src/Microsoft.Graph/Generated/Models/ChangeTrackedEntity.cs index bb79cf77b43..8ba9de63f57 100644 --- a/src/Microsoft.Graph/Generated/Models/ChangeTrackedEntity.cs +++ b/src/Microsoft.Graph/Generated/Models/ChangeTrackedEntity.cs @@ -5,7 +5,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. public class ChangeTrackedEntity : Entity, IParsable { /// 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 public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/ChangeType.cs b/src/Microsoft.Graph/Generated/Models/ChangeType.cs index 0ec0d9bed3d..37e39f1dd41 100644 --- a/src/Microsoft.Graph/Generated/Models/ChangeType.cs +++ b/src/Microsoft.Graph/Generated/Models/ChangeType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ChangeType { Created, Updated, diff --git a/src/Microsoft.Graph/Generated/Models/Channel.cs b/src/Microsoft.Graph/Generated/Models/Channel.cs index 2c8d1406aa3..09f68b927ef 100644 --- a/src/Microsoft.Graph/Generated/Models/Channel.cs +++ b/src/Microsoft.Graph/Generated/Models/Channel.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class Channel : Entity, IParsable { /// Read only. Timestamp at which the channel was created. public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/ChannelMembershipType.cs b/src/Microsoft.Graph/Generated/Models/ChannelMembershipType.cs index 2fed54ba23e..0e09dd7d219 100644 --- a/src/Microsoft.Graph/Generated/Models/ChannelMembershipType.cs +++ b/src/Microsoft.Graph/Generated/Models/ChannelMembershipType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ChannelMembershipType { Standard, Private, diff --git a/src/Microsoft.Graph/Generated/Models/ChatCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ChatCollectionResponse.cs index 584d6e30a3f..af503dba59d 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of chat entities. public class ChatCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessage.cs b/src/Microsoft.Graph/Generated/Models/ChatMessage.cs index bf98151921d..3362745d81f 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessage.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessage.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class ChatMessage : Entity, IParsable { /// References to attached objects like files, tabs, meetings etc. public List Attachments { diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageImportance.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageImportance.cs index 00b8f533147..537ef103f17 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageImportance.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageImportance.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ChatMessageImportance { Normal, High, diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationDlpActionTypes.cs b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationDlpActionTypes.cs index 3598e8ec0cc..4de03af1a20 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationDlpActionTypes.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationDlpActionTypes.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ChatMessagePolicyViolationDlpActionTypes { None, NotifySender, diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationUserActionTypes.cs b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationUserActionTypes.cs index 7a139417595..6e7a732a21d 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationUserActionTypes.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationUserActionTypes.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ChatMessagePolicyViolationUserActionTypes { None, Override, diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationVerdictDetailsTypes.cs b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationVerdictDetailsTypes.cs index 29638df976e..0ef6fef6053 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationVerdictDetailsTypes.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationVerdictDetailsTypes.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ChatMessagePolicyViolationVerdictDetailsTypes { None, AllowFalsePositiveOverride, diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageType.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageType.cs index 3c9cd24e64b..468a2403e86 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageType.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ChatMessageType { Message, ChatEvent, diff --git a/src/Microsoft.Graph/Generated/Models/ChatType.cs b/src/Microsoft.Graph/Generated/Models/ChatType.cs index 950edf17cc4..7221d36a038 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatType.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ChatType { OneOnOne, Group, diff --git a/src/Microsoft.Graph/Generated/Models/ChecklistItem.cs b/src/Microsoft.Graph/Generated/Models/ChecklistItem.cs index 818743a4e6d..62df2712a3b 100644 --- a/src/Microsoft.Graph/Generated/Models/ChecklistItem.cs +++ b/src/Microsoft.Graph/Generated/Models/ChecklistItem.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class ChecklistItem : Entity, IParsable { /// The date and time when the checklistItem was finished. public DateTimeOffset? CheckedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/CloudAppSecuritySessionControlType.cs b/src/Microsoft.Graph/Generated/Models/CloudAppSecuritySessionControlType.cs index e159eac5250..eddc78e339e 100644 --- a/src/Microsoft.Graph/Generated/Models/CloudAppSecuritySessionControlType.cs +++ b/src/Microsoft.Graph/Generated/Models/CloudAppSecuritySessionControlType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CloudAppSecuritySessionControlType { McasConfigured, MonitorOnly, diff --git a/src/Microsoft.Graph/Generated/Models/ColumnDefinition.cs b/src/Microsoft.Graph/Generated/Models/ColumnDefinition.cs index 45234eb1a3e..6fa9866b3bb 100644 --- a/src/Microsoft.Graph/Generated/Models/ColumnDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/ColumnDefinition.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class ColumnDefinition : Entity, IParsable { /// This column stores boolean values. public BooleanColumn Boolean { diff --git a/src/Microsoft.Graph/Generated/Models/ColumnLink.cs b/src/Microsoft.Graph/Generated/Models/ColumnLink.cs index 28af0ea37fb..c64721cb0da 100644 --- a/src/Microsoft.Graph/Generated/Models/ColumnLink.cs +++ b/src/Microsoft.Graph/Generated/Models/ColumnLink.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class ColumnLink : Entity, IParsable { /// The name of the column in this content type. public string Name { diff --git a/src/Microsoft.Graph/Generated/Models/ColumnTypes.cs b/src/Microsoft.Graph/Generated/Models/ColumnTypes.cs index 27c97966f57..5f57cf4214d 100644 --- a/src/Microsoft.Graph/Generated/Models/ColumnTypes.cs +++ b/src/Microsoft.Graph/Generated/Models/ColumnTypes.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ColumnTypes { Note, Text, diff --git a/src/Microsoft.Graph/Generated/Models/CommsOperation.cs b/src/Microsoft.Graph/Generated/Models/CommsOperation.cs index 083a5192c0a..357c30b46fc 100644 --- a/src/Microsoft.Graph/Generated/Models/CommsOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/CommsOperation.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class CommsOperation : Entity, IParsable { /// Unique Client Context string. Max limit is 256 chars. public string ClientContext { diff --git a/src/Microsoft.Graph/Generated/Models/ComplianceState.cs b/src/Microsoft.Graph/Generated/Models/ComplianceState.cs index edca398bd2e..f587b617382 100644 --- a/src/Microsoft.Graph/Generated/Models/ComplianceState.cs +++ b/src/Microsoft.Graph/Generated/Models/ComplianceState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ComplianceState { /// Unknown. Unknown, diff --git a/src/Microsoft.Graph/Generated/Models/ComplianceStatus.cs b/src/Microsoft.Graph/Generated/Models/ComplianceStatus.cs index 9a76f8c94c5..b0236e5c280 100644 --- a/src/Microsoft.Graph/Generated/Models/ComplianceStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/ComplianceStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ComplianceStatus { Unknown, NotApplicable, diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessClientApp.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessClientApp.cs index 70c6d4c1b14..d312e27f455 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessClientApp.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessClientApp.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ConditionalAccessClientApp { All, Browser, diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessDevicePlatform.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessDevicePlatform.cs index 96ef27baac2..78a0df1de66 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessDevicePlatform.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessDevicePlatform.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ConditionalAccessDevicePlatform { Android, IOS, diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessGrantControl.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessGrantControl.cs index f8179d5215e..0f6ca85437d 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessGrantControl.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessGrantControl.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ConditionalAccessGrantControl { Block, Mfa, diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicy.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicy.cs index 341714fefef..ee903987363 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicy.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class ConditionalAccessPolicy : Entity, IParsable { /// The conditions property public ConditionalAccessConditionSet Conditions { diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicyState.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicyState.cs index 61b6cfbdf62..3350caca659 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicyState.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicyState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ConditionalAccessPolicyState { Enabled, Disabled, diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessStatus.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessStatus.cs index 82eb1253470..6fdcddbc2d8 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ConditionalAccessStatus { Success, Failure, diff --git a/src/Microsoft.Graph/Generated/Models/ContactFolder.cs b/src/Microsoft.Graph/Generated/Models/ContactFolder.cs index b21241b1cbf..dc452c15211 100644 --- a/src/Microsoft.Graph/Generated/Models/ContactFolder.cs +++ b/src/Microsoft.Graph/Generated/Models/ContactFolder.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class ContactFolder : Entity, IParsable { /// The collection of child folders in the folder. Navigation property. Read-only. Nullable. public List ChildFolders { diff --git a/src/Microsoft.Graph/Generated/Models/ContentSharingSession.cs b/src/Microsoft.Graph/Generated/Models/ContentSharingSession.cs index 13e241353bd..ef6eda647a9 100644 --- a/src/Microsoft.Graph/Generated/Models/ContentSharingSession.cs +++ b/src/Microsoft.Graph/Generated/Models/ContentSharingSession.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class ContentSharingSession : Entity, IParsable { /// /// Instantiates a new contentSharingSession and sets the default values. diff --git a/src/Microsoft.Graph/Generated/Models/ContentType.cs b/src/Microsoft.Graph/Generated/Models/ContentType.cs index 619a438bbea..7f9c7041ef7 100644 --- a/src/Microsoft.Graph/Generated/Models/ContentType.cs +++ b/src/Microsoft.Graph/Generated/Models/ContentType.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class ContentType : Entity, IParsable { /// List of canonical URLs for hub sites with which this content type is associated to. This will contain all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type will be applied to the lists in the enforced sites. public List AssociatedHubsUrls { diff --git a/src/Microsoft.Graph/Generated/Models/Conversation.cs b/src/Microsoft.Graph/Generated/Models/Conversation.cs index abe8860e48b..e0574ce9986 100644 --- a/src/Microsoft.Graph/Generated/Models/Conversation.cs +++ b/src/Microsoft.Graph/Generated/Models/Conversation.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class Conversation : Entity, IParsable { /// Indicates whether any of the posts within this Conversation has at least one attachment. Supports $filter (eq, ne) and $search. public bool? HasAttachments { diff --git a/src/Microsoft.Graph/Generated/Models/ConversationMember.cs b/src/Microsoft.Graph/Generated/Models/ConversationMember.cs index 2ea94f018cc..156511a81c6 100644 --- a/src/Microsoft.Graph/Generated/Models/ConversationMember.cs +++ b/src/Microsoft.Graph/Generated/Models/ConversationMember.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class ConversationMember : Entity, IParsable { /// The display name of the user. public string DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/ConversationMemberCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ConversationMemberCollectionResponse.cs index 5383d1999d0..603d03af50c 100644 --- a/src/Microsoft.Graph/Generated/Models/ConversationMemberCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ConversationMemberCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the members property of the microsoft.graph.chat entity. public class ConversationMemberCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/ConversationThread.cs b/src/Microsoft.Graph/Generated/Models/ConversationThread.cs index 7100d88d379..c38f2d53e5f 100644 --- a/src/Microsoft.Graph/Generated/Models/ConversationThread.cs +++ b/src/Microsoft.Graph/Generated/Models/ConversationThread.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class ConversationThread : Entity, IParsable { /// The Cc: recipients for the thread. Returned only on $select. public List CcRecipients { diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTargetConfigurationAccessType.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTargetConfigurationAccessType.cs index 0f7708f200a..bc6be471683 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTargetConfigurationAccessType.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTargetConfigurationAccessType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum CrossTenantAccessPolicyTargetConfigurationAccessType { Allowed, Blocked, diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTargetType.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTargetType.cs index a3396d45b2d..ca8a8b3e5ca 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTargetType.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTargetType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum CrossTenantAccessPolicyTargetType { User, Group, diff --git a/src/Microsoft.Graph/Generated/Models/DataPolicyOperation.cs b/src/Microsoft.Graph/Generated/Models/DataPolicyOperation.cs index 736df26e49b..cf7d57e4800 100644 --- a/src/Microsoft.Graph/Generated/Models/DataPolicyOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/DataPolicyOperation.cs @@ -4,7 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. public class DataPolicyOperation : Entity, IParsable { /// Represents when the request for this data policy operation was completed, in UTC time, using the ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Null until the operation completes. public DateTimeOffset? CompletedDateTime { @@ -37,7 +36,7 @@ public string UserId { set { BackingStore?.Set("userId", value); } } /// - /// Instantiates a new dataPolicyOperation and sets the default values. + /// Instantiates a new DataPolicyOperation and sets the default values. /// public DataPolicyOperation() : base() { OdataType = "#microsoft.graph.dataPolicyOperation"; diff --git a/src/Microsoft.Graph/Generated/Models/DataSubjectType.cs b/src/Microsoft.Graph/Generated/Models/DataSubjectType.cs index 833184888f6..8aff6be1e2f 100644 --- a/src/Microsoft.Graph/Generated/Models/DataSubjectType.cs +++ b/src/Microsoft.Graph/Generated/Models/DataSubjectType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DataSubjectType { Customer, CurrentEmployee, diff --git a/src/Microsoft.Graph/Generated/Models/DayOfWeek.cs b/src/Microsoft.Graph/Generated/Models/DayOfWeek.cs index b00f320eec0..4d279ca71fb 100644 --- a/src/Microsoft.Graph/Generated/Models/DayOfWeek.cs +++ b/src/Microsoft.Graph/Generated/Models/DayOfWeek.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DayOfWeek { Sunday, Monday, diff --git a/src/Microsoft.Graph/Generated/Models/DefenderCloudBlockLevelType.cs b/src/Microsoft.Graph/Generated/Models/DefenderCloudBlockLevelType.cs index 13b6434b3b0..9ce67d2df22 100644 --- a/src/Microsoft.Graph/Generated/Models/DefenderCloudBlockLevelType.cs +++ b/src/Microsoft.Graph/Generated/Models/DefenderCloudBlockLevelType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum DefenderCloudBlockLevelType { /// Default value, uses the default Windows Defender Antivirus blocking level and provides strong detection without increasing the risk of detecting legitimate files NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/DefenderMonitorFileActivity.cs b/src/Microsoft.Graph/Generated/Models/DefenderMonitorFileActivity.cs index 6aa833debbc..35d506d1340 100644 --- a/src/Microsoft.Graph/Generated/Models/DefenderMonitorFileActivity.cs +++ b/src/Microsoft.Graph/Generated/Models/DefenderMonitorFileActivity.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum DefenderMonitorFileActivity { /// User Defined, default value, no intent. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/DefenderPromptForSampleSubmission.cs b/src/Microsoft.Graph/Generated/Models/DefenderPromptForSampleSubmission.cs index bc6a6bbbdc7..e18e631800f 100644 --- a/src/Microsoft.Graph/Generated/Models/DefenderPromptForSampleSubmission.cs +++ b/src/Microsoft.Graph/Generated/Models/DefenderPromptForSampleSubmission.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum DefenderPromptForSampleSubmission { /// User Defined, default value, no intent. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/DefenderScanType.cs b/src/Microsoft.Graph/Generated/Models/DefenderScanType.cs index 372d6bd8228..956cd7d8ad2 100644 --- a/src/Microsoft.Graph/Generated/Models/DefenderScanType.cs +++ b/src/Microsoft.Graph/Generated/Models/DefenderScanType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum DefenderScanType { /// User Defined, default value, no intent. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/DefenderThreatAction.cs b/src/Microsoft.Graph/Generated/Models/DefenderThreatAction.cs index d301b0f0850..65c13abf1a1 100644 --- a/src/Microsoft.Graph/Generated/Models/DefenderThreatAction.cs +++ b/src/Microsoft.Graph/Generated/Models/DefenderThreatAction.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum DefenderThreatAction { /// Apply action based on the update definition. DeviceDefault, diff --git a/src/Microsoft.Graph/Generated/Models/DelegateMeetingMessageDeliveryOptions.cs b/src/Microsoft.Graph/Generated/Models/DelegateMeetingMessageDeliveryOptions.cs index d174d3cbbe1..e194305b9d0 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegateMeetingMessageDeliveryOptions.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegateMeetingMessageDeliveryOptions.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DelegateMeetingMessageDeliveryOptions { SendToDelegateAndInformationToPrincipal, SendToDelegateAndPrincipal, diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedPermissionClassification.cs b/src/Microsoft.Graph/Generated/Models/DelegatedPermissionClassification.cs index c6ed16fca4b..2e9976bed7f 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedPermissionClassification.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedPermissionClassification.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class DelegatedPermissionClassification : Entity, IParsable { /// The classification value being given. Possible value: low. Does not support $filter. public PermissionClassificationType? Classification { diff --git a/src/Microsoft.Graph/Generated/Models/DetectedAppPlatformType.cs b/src/Microsoft.Graph/Generated/Models/DetectedAppPlatformType.cs index c95973cb1e9..4036bc3fc30 100644 --- a/src/Microsoft.Graph/Generated/Models/DetectedAppPlatformType.cs +++ b/src/Microsoft.Graph/Generated/Models/DetectedAppPlatformType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DetectedAppPlatformType { /// Default. Set to unknown when platform cannot be determined. Unknown, diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceActionType.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceActionType.cs index f14a2e91554..3d5a79c25d0 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceActionType.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceActionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum DeviceComplianceActionType { /// No Action NoAction, diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceStatus.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceStatus.cs index 822e27a939a..b7f6bd7d4d3 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceStatus.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class DeviceComplianceDeviceStatus : Entity, IParsable { /// The DateTime when device compliance grace period expires public DateTimeOffset? ComplianceGracePeriodExpirationDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserStatus.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserStatus.cs index 2a0e9e7760f..bf1f7989c2f 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserStatus.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class DeviceComplianceUserStatus : Entity, IParsable { /// Devices count for that user. public int? DevicesCount { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStatus.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStatus.cs index 090b078275c..f056da06f8e 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStatus.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class DeviceConfigurationDeviceStatus : Entity, IParsable { /// The DateTime when device compliance grace period expires public DateTimeOffset? ComplianceGracePeriodExpirationDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserStatus.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserStatus.cs index 28eadb2e596..6307a9f27c1 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserStatus.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class DeviceConfigurationUserStatus : Entity, IParsable { /// Devices count for that user. public int? DevicesCount { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentFailureReason.cs b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentFailureReason.cs index 209270810d2..9126f807cc0 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentFailureReason.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentFailureReason.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DeviceEnrollmentFailureReason { /// Default value, failure reason is unknown. Unknown, diff --git a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentType.cs b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentType.cs index 191004a9168..6ce4133a4ab 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentType.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DeviceEnrollmentType { /// Default value, enrollment type was not collected. Unknown, diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeAccessState.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeAccessState.cs index 3acb5d15dcb..478c4f0b4e2 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeAccessState.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeAccessState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DeviceManagementExchangeAccessState { /// No access state discovered from Exchange None, diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeAccessStateReason.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeAccessStateReason.cs index 860ed420402..15dfa5c98cf 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeAccessStateReason.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeAccessStateReason.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DeviceManagementExchangeAccessStateReason { /// No access state reason discovered from Exchange None, diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnectorStatus.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnectorStatus.cs index 5385cea4c84..9a86cef0965 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnectorStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnectorStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DeviceManagementExchangeConnectorStatus { /// No Connector exists. None, diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnectorType.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnectorType.cs index 9403006a8b0..015942dbdfd 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnectorType.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnectorType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DeviceManagementExchangeConnectorType { /// Connects to on-premises Exchange Environment. OnPremises, diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementPartnerAppType.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementPartnerAppType.cs index dff7c9fe2d1..c3d2a3307fb 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementPartnerAppType.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementPartnerAppType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DeviceManagementPartnerAppType { /// Partner App type is unknown. Unknown, diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementSubscriptionState.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementSubscriptionState.cs index f63e7d397f5..d63f68766d3 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementSubscriptionState.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementSubscriptionState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DeviceManagementSubscriptionState { /// Pending Pending, diff --git a/src/Microsoft.Graph/Generated/Models/DeviceOperatingSystemSummary.cs b/src/Microsoft.Graph/Generated/Models/DeviceOperatingSystemSummary.cs index c09b8ce8251..089056af3d9 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceOperatingSystemSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceOperatingSystemSummary.cs @@ -12,13 +12,43 @@ public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } set { BackingStore?.Set("additionalData", value); } } + /// The count of Corporate work profile Android devices. Also known as Corporate Owned Personally Enabled (COPE). Valid values -1 to 2147483647 + public int? AndroidCorporateWorkProfileCount { + get { return BackingStore?.Get("androidCorporateWorkProfileCount"); } + set { BackingStore?.Set("androidCorporateWorkProfileCount", value); } + } /// Number of android device count. public int? AndroidCount { get { return BackingStore?.Get("androidCount"); } set { BackingStore?.Set("androidCount", value); } } + /// Number of dedicated Android devices. + public int? AndroidDedicatedCount { + get { return BackingStore?.Get("androidDedicatedCount"); } + set { BackingStore?.Set("androidDedicatedCount", value); } + } + /// Number of device admin Android devices. + public int? AndroidDeviceAdminCount { + get { return BackingStore?.Get("androidDeviceAdminCount"); } + set { BackingStore?.Set("androidDeviceAdminCount", value); } + } + /// Number of fully managed Android devices. + public int? AndroidFullyManagedCount { + get { return BackingStore?.Get("androidFullyManagedCount"); } + set { BackingStore?.Set("androidFullyManagedCount", value); } + } + /// Number of work profile Android devices. + public int? AndroidWorkProfileCount { + get { return BackingStore?.Get("androidWorkProfileCount"); } + set { BackingStore?.Set("androidWorkProfileCount", value); } + } /// Stores model information. public IBackingStore BackingStore { get; private set; } + /// Number of ConfigMgr managed devices. + public int? ConfigMgrDeviceCount { + get { return BackingStore?.Get("configMgrDeviceCount"); } + set { BackingStore?.Set("configMgrDeviceCount", value); } + } /// Number of iOS device count. public int? IosCount { get { return BackingStore?.Get("iosCount"); } @@ -70,7 +100,13 @@ public static DeviceOperatingSystemSummary CreateFromDiscriminatorValue(IParseNo /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"androidCorporateWorkProfileCount", n => { AndroidCorporateWorkProfileCount = n.GetIntValue(); } }, {"androidCount", n => { AndroidCount = n.GetIntValue(); } }, + {"androidDedicatedCount", n => { AndroidDedicatedCount = n.GetIntValue(); } }, + {"androidDeviceAdminCount", n => { AndroidDeviceAdminCount = n.GetIntValue(); } }, + {"androidFullyManagedCount", n => { AndroidFullyManagedCount = n.GetIntValue(); } }, + {"androidWorkProfileCount", n => { AndroidWorkProfileCount = n.GetIntValue(); } }, + {"configMgrDeviceCount", n => { ConfigMgrDeviceCount = n.GetIntValue(); } }, {"iosCount", n => { IosCount = n.GetIntValue(); } }, {"macOSCount", n => { MacOSCount = n.GetIntValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +121,13 @@ public IDictionary> GetFieldDeserializers() { /// public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("androidCorporateWorkProfileCount", AndroidCorporateWorkProfileCount); writer.WriteIntValue("androidCount", AndroidCount); + writer.WriteIntValue("androidDedicatedCount", AndroidDedicatedCount); + writer.WriteIntValue("androidDeviceAdminCount", AndroidDeviceAdminCount); + writer.WriteIntValue("androidFullyManagedCount", AndroidFullyManagedCount); + writer.WriteIntValue("androidWorkProfileCount", AndroidWorkProfileCount); + writer.WriteIntValue("configMgrDeviceCount", ConfigMgrDeviceCount); writer.WriteIntValue("iosCount", IosCount); writer.WriteIntValue("macOSCount", MacOSCount); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceRegistrationState.cs b/src/Microsoft.Graph/Generated/Models/DeviceRegistrationState.cs index baa37239a57..3708c90321e 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceRegistrationState.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceRegistrationState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DeviceRegistrationState { /// The device is not registered. NotRegistered, diff --git a/src/Microsoft.Graph/Generated/Models/DeviceThreatProtectionLevel.cs b/src/Microsoft.Graph/Generated/Models/DeviceThreatProtectionLevel.cs index 09cd82a39d0..786f4d4e720 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceThreatProtectionLevel.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceThreatProtectionLevel.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum DeviceThreatProtectionLevel { /// Default Value. Do not use. Unavailable, diff --git a/src/Microsoft.Graph/Generated/Models/DiagnosticDataSubmissionMode.cs b/src/Microsoft.Graph/Generated/Models/DiagnosticDataSubmissionMode.cs index 351b1a26bfb..8389a4b07c4 100644 --- a/src/Microsoft.Graph/Generated/Models/DiagnosticDataSubmissionMode.cs +++ b/src/Microsoft.Graph/Generated/Models/DiagnosticDataSubmissionMode.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum DiagnosticDataSubmissionMode { /// Allow the user to set. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryAudit.cs b/src/Microsoft.Graph/Generated/Models/DirectoryAudit.cs index 7aa0057a787..472b55654e9 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryAudit.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryAudit.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class DirectoryAudit : Entity, IParsable { /// Indicates the date and time the activity was performed. The Timestamp type is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ActivityDateTime { @@ -21,7 +21,7 @@ public List AdditionalDetails { get { return BackingStore?.Get>("additionalDetails"); } set { BackingStore?.Set("additionalDetails", value); } } - /// Indicates which resource category that's targeted by the activity. (For example: User Management, Group Management etc..) + /// Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. public string Category { get { return BackingStore?.Get("category"); } set { BackingStore?.Set("category", value); } diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryAuditCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DirectoryAuditCollectionResponse.cs index f816ef0f787..62afcb4eb06 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryAuditCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryAuditCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the directoryAudits property of the microsoft.graph.auditLogRoot entity. public class DirectoryAuditCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs b/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs index 534ddf59c9b..2d582c7fcba 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs @@ -1,3 +1,4 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System; using System.Collections.Generic; @@ -5,26 +6,16 @@ using System.Linq; namespace Microsoft.Graph.Models { public class DirectoryObject : Entity, IParsable { - /// Conceptual container for user and group directory objects. - public List AdministrativeUnits { - get { return BackingStore?.Get>("administrativeUnits"); } - set { BackingStore?.Set("administrativeUnits", value); } - } - /// Recently deleted items. Read-only. Nullable. - public List DeletedItems { - get { return BackingStore?.Get>("deletedItems"); } - set { BackingStore?.Set("deletedItems", value); } - } - /// Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol. - public List FederationConfigurations { - get { return BackingStore?.Get>("federationConfigurations"); } - set { BackingStore?.Set("federationConfigurations", value); } + /// Date and time when this object was deleted. Always null when the object hasn't been deleted. + public DateTimeOffset? DeletedDateTime { + get { return BackingStore?.Get("deletedDateTime"); } + set { BackingStore?.Set("deletedDateTime", value); } } /// - /// Instantiates a new DirectoryObject and sets the default values. + /// Instantiates a new directoryObject and sets the default values. /// public DirectoryObject() : base() { - OdataType = "#microsoft.graph.directory"; + OdataType = "#microsoft.graph.directoryObject"; } /// /// Creates a new instance of the appropriate class based on discriminator value @@ -32,16 +23,45 @@ public DirectoryObject() : base() { /// public static new DirectoryObject CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DirectoryObject(); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.activityBasedTimeoutPolicy" => new ActivityBasedTimeoutPolicy(), + "#microsoft.graph.administrativeUnit" => new AdministrativeUnit(), + "#microsoft.graph.application" => new Application(), + "#microsoft.graph.appRoleAssignment" => new AppRoleAssignment(), + "#microsoft.graph.authorizationPolicy" => new AuthorizationPolicy(), + "#microsoft.graph.claimsMappingPolicy" => new ClaimsMappingPolicy(), + "#microsoft.graph.contract" => new Contract(), + "#microsoft.graph.crossTenantAccessPolicy" => new CrossTenantAccessPolicy(), + "#microsoft.graph.device" => new Device(), + "#microsoft.graph.directoryObjectPartnerReference" => new DirectoryObjectPartnerReference(), + "#microsoft.graph.directoryRole" => new DirectoryRole(), + "#microsoft.graph.directoryRoleTemplate" => new DirectoryRoleTemplate(), + "#microsoft.graph.endpoint" => new Endpoint(), + "#microsoft.graph.extensionProperty" => new ExtensionProperty(), + "#microsoft.graph.group" => new Group(), + "#microsoft.graph.groupSettingTemplate" => new GroupSettingTemplate(), + "#microsoft.graph.homeRealmDiscoveryPolicy" => new HomeRealmDiscoveryPolicy(), + "#microsoft.graph.identitySecurityDefaultsEnforcementPolicy" => new IdentitySecurityDefaultsEnforcementPolicy(), + "#microsoft.graph.organization" => new Organization(), + "#microsoft.graph.orgContact" => new OrgContact(), + "#microsoft.graph.permissionGrantPolicy" => new PermissionGrantPolicy(), + "#microsoft.graph.policyBase" => new PolicyBase(), + "#microsoft.graph.resourceSpecificPermissionGrant" => new ResourceSpecificPermissionGrant(), + "#microsoft.graph.servicePrincipal" => new ServicePrincipal(), + "#microsoft.graph.stsPolicy" => new StsPolicy(), + "#microsoft.graph.tokenIssuancePolicy" => new TokenIssuancePolicy(), + "#microsoft.graph.tokenLifetimePolicy" => new TokenLifetimePolicy(), + "#microsoft.graph.user" => new User(), + _ => new DirectoryObject(), + }; } /// /// The deserialization information for the current model /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"administrativeUnits", n => { AdministrativeUnits = n.GetCollectionOfObjectValues(AdministrativeUnit.CreateFromDiscriminatorValue)?.ToList(); } }, - {"deletedItems", n => { DeletedItems = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - {"federationConfigurations", n => { FederationConfigurations = n.GetCollectionOfObjectValues(IdentityProviderBase.CreateFromDiscriminatorValue)?.ToList(); } }, + {"deletedDateTime", n => { DeletedDateTime = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -51,9 +71,7 @@ public DirectoryObject() : base() { public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("administrativeUnits", AdministrativeUnits); - writer.WriteCollectionOfObjectValues("deletedItems", DeletedItems); - writer.WriteCollectionOfObjectValues("federationConfigurations", FederationConfigurations); + writer.WriteDateTimeOffsetValue("deletedDateTime", DeletedDateTime); } } } diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryObjectCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DirectoryObjectCollectionResponse.cs index d64bd5b4167..2eb50f43b85 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryObjectCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryObjectCollectionResponse.cs @@ -4,7 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the owners property of the microsoft.graph.application entity. public class DirectoryObjectCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/DiskType.cs b/src/Microsoft.Graph/Generated/Models/DiskType.cs index dc1176c95f4..898484fa7cb 100644 --- a/src/Microsoft.Graph/Generated/Models/DiskType.cs +++ b/src/Microsoft.Graph/Generated/Models/DiskType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DiskType { /// Enum member for unknown or default diskType Unknown, diff --git a/src/Microsoft.Graph/Generated/Models/Domain.cs b/src/Microsoft.Graph/Generated/Models/Domain.cs index e2a1d73e12f..8ca4cf5bf9d 100644 --- a/src/Microsoft.Graph/Generated/Models/Domain.cs +++ b/src/Microsoft.Graph/Generated/Models/Domain.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of agreement entities. public class Domain : Entity, IParsable { /// Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Azure AD performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. This property is read-only and is not nullable. public string AuthenticationType { @@ -91,7 +92,7 @@ public List VerificationDnsRecords { set { BackingStore?.Set("verificationDnsRecords", value); } } /// - /// Instantiates a new Domain and sets the default values. + /// Instantiates a new domain and sets the default values. /// public Domain() : base() { OdataType = "#microsoft.graph.domain"; diff --git a/src/Microsoft.Graph/Generated/Models/DomainDnsRecord.cs b/src/Microsoft.Graph/Generated/Models/DomainDnsRecord.cs index 3550914681f..055e5b0ef0c 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainDnsRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainDnsRecord.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class DomainDnsRecord : Entity, IParsable { /// If false, this record must be configured by the customer at the DNS host for Microsoft Online Services to operate correctly with the domain. public bool? IsOptional { diff --git a/src/Microsoft.Graph/Generated/Models/EdgeCookiePolicy.cs b/src/Microsoft.Graph/Generated/Models/EdgeCookiePolicy.cs index 8bbf6f6938a..568a5b78cbf 100644 --- a/src/Microsoft.Graph/Generated/Models/EdgeCookiePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/EdgeCookiePolicy.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum EdgeCookiePolicy { /// Allow the user to set. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/EdgeSearchEngineType.cs b/src/Microsoft.Graph/Generated/Models/EdgeSearchEngineType.cs index 9fafd17c276..924ab8c9d36 100644 --- a/src/Microsoft.Graph/Generated/Models/EdgeSearchEngineType.cs +++ b/src/Microsoft.Graph/Generated/Models/EdgeSearchEngineType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum EdgeSearchEngineType { /// Uses factory settings of Edge to assign the default search engine as per the user market Default, diff --git a/src/Microsoft.Graph/Generated/Models/EditionUpgradeLicenseType.cs b/src/Microsoft.Graph/Generated/Models/EditionUpgradeLicenseType.cs index 4cecbf78168..13378213e50 100644 --- a/src/Microsoft.Graph/Generated/Models/EditionUpgradeLicenseType.cs +++ b/src/Microsoft.Graph/Generated/Models/EditionUpgradeLicenseType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum EditionUpgradeLicenseType { /// Product Key Type ProductKey, diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs index cda0130ed33..c086e7f48a1 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs @@ -4,7 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. public class EducationAssignment : Entity, IParsable { /// Optional field to control the assignment behavior for students who are added after the assignment is published. If not specified, defaults to none value. Currently supports only two values: none or assignIfOpen. public EducationAddedStudentAction? AddedStudentAction { @@ -132,7 +131,7 @@ public string WebUrl { set { BackingStore?.Set("webUrl", value); } } /// - /// Instantiates a new educationAssignment and sets the default values. + /// Instantiates a new EducationAssignment and sets the default values. /// public EducationAssignment() : base() { OdataType = "#microsoft.graph.educationAssignment"; diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentDefaults.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentDefaults.cs index 725f08e639e..b83a26ce5e7 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentDefaults.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentDefaults.cs @@ -27,7 +27,7 @@ public string NotificationChannelUrl { set { BackingStore?.Set("notificationChannelUrl", value); } } /// - /// Instantiates a new educationAssignmentDefaults and sets the default values. + /// Instantiates a new EducationAssignmentDefaults and sets the default values. /// public EducationAssignmentDefaults() : base() { OdataType = "#microsoft.graph.educationAssignmentDefaults"; diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentResource.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentResource.cs index 641825a273e..a8ec8931d3a 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentResource.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentResource.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class EducationAssignmentResource : Entity, IParsable { /// Indicates whether this resource should be copied to each student submission for modification and submission. Required public bool? DistributeForStudentWork { diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs index 9a8c5f7932b..9e0d6e2cb61 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs @@ -11,7 +11,7 @@ public bool? SubmissionAnimationDisabled { set { BackingStore?.Set("submissionAnimationDisabled", value); } } /// - /// Instantiates a new educationAssignmentSettings and sets the default values. + /// Instantiates a new EducationAssignmentSettings and sets the default values. /// public EducationAssignmentSettings() : base() { OdataType = "#microsoft.graph.educationAssignmentSettings"; diff --git a/src/Microsoft.Graph/Generated/Models/EducationCategory.cs b/src/Microsoft.Graph/Generated/Models/EducationCategory.cs index 2c50e9cfde0..6eb7d2beed0 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationCategory.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class EducationCategory : Entity, IParsable { /// Unique identifier for the category. public string DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/EducationClass.cs b/src/Microsoft.Graph/Generated/Models/EducationClass.cs index 7a1d7dbaa87..861511a7050 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationClass.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationClass.cs @@ -4,7 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. public class EducationClass : Entity, IParsable { /// All categories associated with this class. Nullable. public List AssignmentCategories { @@ -107,7 +106,7 @@ public EducationTerm Term { set { BackingStore?.Set("term", value); } } /// - /// Instantiates a new educationClass and sets the default values. + /// Instantiates a new EducationClass and sets the default values. /// public EducationClass() : base() { OdataType = "#microsoft.graph.educationClass"; diff --git a/src/Microsoft.Graph/Generated/Models/EducationOutcome.cs b/src/Microsoft.Graph/Generated/Models/EducationOutcome.cs index 25e42c4dc3c..a3cb4f03b4f 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationOutcome.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationOutcome.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class EducationOutcome : Entity, IParsable { /// The individual who updated the resource. public IdentitySet LastModifiedBy { diff --git a/src/Microsoft.Graph/Generated/Models/Enablement.cs b/src/Microsoft.Graph/Generated/Models/Enablement.cs index 71b6be07d76..70411ed569e 100644 --- a/src/Microsoft.Graph/Generated/Models/Enablement.cs +++ b/src/Microsoft.Graph/Generated/Models/Enablement.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum Enablement { /// Device default value, no intent. NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/Endpoint.cs b/src/Microsoft.Graph/Generated/Models/Endpoint.cs index a359a5c0533..3eda0ffc49b 100644 --- a/src/Microsoft.Graph/Generated/Models/Endpoint.cs +++ b/src/Microsoft.Graph/Generated/Models/Endpoint.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Endpoint : DirectoryObject, IParsable { /// The capability property public string Capability { diff --git a/src/Microsoft.Graph/Generated/Models/EndpointType.cs b/src/Microsoft.Graph/Generated/Models/EndpointType.cs index 5901ff80744..ce0f5fc79df 100644 --- a/src/Microsoft.Graph/Generated/Models/EndpointType.cs +++ b/src/Microsoft.Graph/Generated/Models/EndpointType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum EndpointType { Default, Voicemail, diff --git a/src/Microsoft.Graph/Generated/Models/EnrollmentState.cs b/src/Microsoft.Graph/Generated/Models/EnrollmentState.cs index 1ad567f064e..556c6c56494 100644 --- a/src/Microsoft.Graph/Generated/Models/EnrollmentState.cs +++ b/src/Microsoft.Graph/Generated/Models/EnrollmentState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum EnrollmentState { /// Device enrollment state is unknown Unknown, diff --git a/src/Microsoft.Graph/Generated/Models/EventType.cs b/src/Microsoft.Graph/Generated/Models/EventType.cs index b9d98dbd2e0..5faf0cfb323 100644 --- a/src/Microsoft.Graph/Generated/Models/EventType.cs +++ b/src/Microsoft.Graph/Generated/Models/EventType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum EventType { SingleInstance, Occurrence, diff --git a/src/Microsoft.Graph/Generated/Models/Extension.cs b/src/Microsoft.Graph/Generated/Models/Extension.cs index 00d977df33d..b1aaa4ec0ae 100644 --- a/src/Microsoft.Graph/Generated/Models/Extension.cs +++ b/src/Microsoft.Graph/Generated/Models/Extension.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Extension : Entity, IParsable { /// /// Instantiates a new extension and sets the default values. diff --git a/src/Microsoft.Graph/Generated/Models/ExtensionProperty.cs b/src/Microsoft.Graph/Generated/Models/ExtensionProperty.cs index a3766ccdb7a..9c4ddd2e7dc 100644 --- a/src/Microsoft.Graph/Generated/Models/ExtensionProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/ExtensionProperty.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class ExtensionProperty : DirectoryObject, IParsable { /// Display name of the application object on which this extension property is defined. Read-only. public string AppDisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/ExternalAudienceScope.cs b/src/Microsoft.Graph/Generated/Models/ExternalAudienceScope.cs index b9d400e0e1b..bf76a14af27 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalAudienceScope.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalAudienceScope.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ExternalAudienceScope { None, ContactsOnly, diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/AccessType.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/AccessType.cs index bc8764ab637..f7751f5002a 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/AccessType.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/AccessType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.ExternalConnectors { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum AccessType { Grant, Deny, diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/AclType.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/AclType.cs index 1e738963304..08a7db9c5a7 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/AclType.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/AclType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.ExternalConnectors { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum AclType { User, Group, diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionOperationStatus.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionOperationStatus.cs index 72dd33e9bf7..cecd38c519c 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionOperationStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionOperationStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.ExternalConnectors { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ConnectionOperationStatus { Unspecified, Inprogress, diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionState.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionState.cs index b22ff0264f5..a1ffefaa405 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionState.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.ExternalConnectors { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ConnectionState { Draft, Ready, diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalConnectionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalConnectionCollectionResponse.cs index 575a2caabfd..2f6eb2a3cde 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalConnectionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalConnectionCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.ExternalConnectors { + /// Provides operations to manage the collection of externalConnection entities. public class ExternalConnectionCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalGroup.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalGroup.cs index aeb4661fd05..4c8dcaf5618 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalGroup.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalGroup.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.ExternalConnectors { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class ExternalGroup : Entity, IParsable { /// The description of the external group. Optional. public string Description { diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItem.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItem.cs index 62e18b9d830..b4a94d499d2 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItem.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItem.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.ExternalConnectors { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class ExternalItem : Entity, IParsable { /// An array of access control entries. Each entry specifies the access granted to a user or group. Required. public List Acl { diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItemContentType.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItemContentType.cs index 33271255909..d018cd0f92e 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItemContentType.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItemContentType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.ExternalConnectors { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ExternalItemContentType { Text, Html, diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Label.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Label.cs index a5a36484a3b..746f4563e89 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Label.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Label.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.ExternalConnectors { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum Label { Title, Url, diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/PropertyType.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/PropertyType.cs index 94cf41c95a5..49fea89cc5b 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/PropertyType.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/PropertyType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.ExternalConnectors { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum PropertyType { String, Int64, diff --git a/src/Microsoft.Graph/Generated/Models/ExternalDomainName.cs b/src/Microsoft.Graph/Generated/Models/ExternalDomainName.cs index e29943c7a0a..14c98938c69 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalDomainName.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalDomainName.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class ExternalDomainName : Entity, IParsable { /// /// Instantiates a new externalDomainName and sets the default values. diff --git a/src/Microsoft.Graph/Generated/Models/ExternalEmailOtpState.cs b/src/Microsoft.Graph/Generated/Models/ExternalEmailOtpState.cs index 283202ab625..489ff1abf6d 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalEmailOtpState.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalEmailOtpState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ExternalEmailOtpState { Default, Enabled, diff --git a/src/Microsoft.Graph/Generated/Models/FeatureRolloutPolicy.cs b/src/Microsoft.Graph/Generated/Models/FeatureRolloutPolicy.cs index a4f72fd4cec..90dd873d5ad 100644 --- a/src/Microsoft.Graph/Generated/Models/FeatureRolloutPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/FeatureRolloutPolicy.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class FeatureRolloutPolicy : Entity, IParsable { /// Nullable. Specifies a list of directoryObjects that feature is enabled for. public List AppliesTo { diff --git a/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredential.cs b/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredential.cs index 7425af3d870..9c0560e5da1 100644 --- a/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredential.cs +++ b/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredential.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class FederatedIdentityCredential : Entity, IParsable { /// The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Azure AD. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Azure AD in your external identity provider and has no fixed value across identity providers - you may need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required. public List Audiences { diff --git a/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredentialCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredentialCollectionResponse.cs index 43ddd5247d3..a4a0f0eb08f 100644 --- a/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredentialCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredentialCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity. public class FederatedIdentityCredentialCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/FederatedIdpMfaBehavior.cs b/src/Microsoft.Graph/Generated/Models/FederatedIdpMfaBehavior.cs index 21225594f98..5faf0a3700c 100644 --- a/src/Microsoft.Graph/Generated/Models/FederatedIdpMfaBehavior.cs +++ b/src/Microsoft.Graph/Generated/Models/FederatedIdpMfaBehavior.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum FederatedIdpMfaBehavior { AcceptIfMfaDoneByFederatedIdp, EnforceMfaByFederatedIdp, diff --git a/src/Microsoft.Graph/Generated/Models/Fido2RestrictionEnforcementType.cs b/src/Microsoft.Graph/Generated/Models/Fido2RestrictionEnforcementType.cs index df428babb2f..45e6dc96c1c 100644 --- a/src/Microsoft.Graph/Generated/Models/Fido2RestrictionEnforcementType.cs +++ b/src/Microsoft.Graph/Generated/Models/Fido2RestrictionEnforcementType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum Fido2RestrictionEnforcementType { Allow, Block, diff --git a/src/Microsoft.Graph/Generated/Models/FileHashType.cs b/src/Microsoft.Graph/Generated/Models/FileHashType.cs index 1034ed61bb2..74250827a21 100644 --- a/src/Microsoft.Graph/Generated/Models/FileHashType.cs +++ b/src/Microsoft.Graph/Generated/Models/FileHashType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum FileHashType { Unknown, Sha1, diff --git a/src/Microsoft.Graph/Generated/Models/FilterMode.cs b/src/Microsoft.Graph/Generated/Models/FilterMode.cs index 541149eb8fc..45bdb23c5ef 100644 --- a/src/Microsoft.Graph/Generated/Models/FilterMode.cs +++ b/src/Microsoft.Graph/Generated/Models/FilterMode.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum FilterMode { Include, Exclude, diff --git a/src/Microsoft.Graph/Generated/Models/FirewallCertificateRevocationListCheckMethodType.cs b/src/Microsoft.Graph/Generated/Models/FirewallCertificateRevocationListCheckMethodType.cs index fa302011882..591bee238e3 100644 --- a/src/Microsoft.Graph/Generated/Models/FirewallCertificateRevocationListCheckMethodType.cs +++ b/src/Microsoft.Graph/Generated/Models/FirewallCertificateRevocationListCheckMethodType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum FirewallCertificateRevocationListCheckMethodType { /// No value configured by Intune, do not override the user-configured device default value DeviceDefault, diff --git a/src/Microsoft.Graph/Generated/Models/FirewallPacketQueueingMethodType.cs b/src/Microsoft.Graph/Generated/Models/FirewallPacketQueueingMethodType.cs index 3437f5ea60d..52099aa44d7 100644 --- a/src/Microsoft.Graph/Generated/Models/FirewallPacketQueueingMethodType.cs +++ b/src/Microsoft.Graph/Generated/Models/FirewallPacketQueueingMethodType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum FirewallPacketQueueingMethodType { /// No value configured by Intune, do not override the user-configured device default value DeviceDefault, diff --git a/src/Microsoft.Graph/Generated/Models/FirewallPreSharedKeyEncodingMethodType.cs b/src/Microsoft.Graph/Generated/Models/FirewallPreSharedKeyEncodingMethodType.cs index d4a91ca03a7..22a6f12f57a 100644 --- a/src/Microsoft.Graph/Generated/Models/FirewallPreSharedKeyEncodingMethodType.cs +++ b/src/Microsoft.Graph/Generated/Models/FirewallPreSharedKeyEncodingMethodType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum FirewallPreSharedKeyEncodingMethodType { /// No value configured by Intune, do not override the user-configured device default value DeviceDefault, diff --git a/src/Microsoft.Graph/Generated/Models/FollowupFlagStatus.cs b/src/Microsoft.Graph/Generated/Models/FollowupFlagStatus.cs index 416a3c2ff17..695ae4260d8 100644 --- a/src/Microsoft.Graph/Generated/Models/FollowupFlagStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/FollowupFlagStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum FollowupFlagStatus { NotFlagged, Complete, diff --git a/src/Microsoft.Graph/Generated/Models/FreeBusyStatus.cs b/src/Microsoft.Graph/Generated/Models/FreeBusyStatus.cs index ee15e273376..4e26c400e63 100644 --- a/src/Microsoft.Graph/Generated/Models/FreeBusyStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/FreeBusyStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum FreeBusyStatus { Unknown, Free, diff --git a/src/Microsoft.Graph/Generated/Models/GiphyRatingType.cs b/src/Microsoft.Graph/Generated/Models/GiphyRatingType.cs index 8c131127f4b..5eb86e652e4 100644 --- a/src/Microsoft.Graph/Generated/Models/GiphyRatingType.cs +++ b/src/Microsoft.Graph/Generated/Models/GiphyRatingType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum GiphyRatingType { Strict, Moderate, diff --git a/src/Microsoft.Graph/Generated/Models/Group.cs b/src/Microsoft.Graph/Generated/Models/Group.cs index 31184cd63a3..8776286094f 100644 --- a/src/Microsoft.Graph/Generated/Models/Group.cs +++ b/src/Microsoft.Graph/Generated/Models/Group.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class Group : DirectoryObject, IParsable { /// The list of users or groups that are allowed to create post's or calendar events in this group. If this list is non-empty then only users or groups listed here are allowed to post. public List AcceptedSenders { @@ -131,7 +131,7 @@ public bool? IsArchived { get { return BackingStore?.Get("isArchived"); } set { BackingStore?.Set("isArchived", value); } } - /// Indicates whether this group can be assigned to an Azure Active Directory role or not. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true and the group cannot be a dynamic group (that is, groupTypes cannot contain DynamicMembership). Only callers in Global administrator and Privileged role administrator roles can set this property. The caller must be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Azure AD role assignmentsReturned by default. Supports $filter (eq, ne, not). + /// Indicates whether this group can be assigned to an Azure Active Directory role or not. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true and the group cannot be a dynamic group (that is, groupTypes cannot contain DynamicMembership). Only callers in Global Administrator and Privileged Role Administrator roles can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Azure AD role assignmentsReturned by default. Supports $filter (eq, ne, not). public bool? IsAssignableToRole { get { return BackingStore?.Get("isAssignableToRole"); } set { BackingStore?.Set("isAssignableToRole", value); } diff --git a/src/Microsoft.Graph/Generated/Models/GroupLifecyclePolicy.cs b/src/Microsoft.Graph/Generated/Models/GroupLifecyclePolicy.cs index da6edd2ae1b..b97167258c9 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupLifecyclePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupLifecyclePolicy.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class GroupLifecyclePolicy : Entity, IParsable { /// List of email address to send notifications for groups without owners. Multiple email address can be defined by separating email address with a semicolon. public string AlternateNotificationEmails { diff --git a/src/Microsoft.Graph/Generated/Models/GroupSetting.cs b/src/Microsoft.Graph/Generated/Models/GroupSetting.cs index 05e27aaf493..b9c6fbe89b2 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupSetting.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class GroupSetting : Entity, IParsable { /// Display name of this group of settings, which comes from the associated template. public string DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/GroupType.cs b/src/Microsoft.Graph/Generated/Models/GroupType.cs index d90097cb6cd..dd16489cef2 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupType.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum GroupType { UnifiedGroups, AzureAD, diff --git a/src/Microsoft.Graph/Generated/Models/IdentityProvider.cs b/src/Microsoft.Graph/Generated/Models/IdentityProvider.cs index 0cded00be7e..078cf3e95e1 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityProvider.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityProvider.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class IdentityProvider : Entity, IParsable { /// The client ID for the application. This is the client ID obtained when registering the application with the identity provider. Required. Not nullable. public string ClientId { diff --git a/src/Microsoft.Graph/Generated/Models/IdentityProviderBase.cs b/src/Microsoft.Graph/Generated/Models/IdentityProviderBase.cs index 47d198c441c..5fc62e5df34 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityProviderBase.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityProviderBase.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class IdentityProviderBase : Entity, IParsable { /// The display name of the identity provider. public string DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttribute.cs b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttribute.cs index 1df14367df0..10958aec541 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttribute.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttribute.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class IdentityUserFlowAttribute : Entity, IParsable { /// The dataType property public IdentityUserFlowAttributeDataType? DataType { diff --git a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignment.cs b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignment.cs index 3f5421f3127..05426897d0f 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignment.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class IdentityUserFlowAttributeAssignment : Entity, IParsable { /// The display name of the identityUserFlowAttribute within a user flow. public string DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeDataType.cs b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeDataType.cs index 5feffa10241..67529b99c58 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeDataType.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeDataType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum IdentityUserFlowAttributeDataType { String, Boolean, diff --git a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeInputType.cs b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeInputType.cs index c1085658fcb..58e18c655d4 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeInputType.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeInputType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum IdentityUserFlowAttributeInputType { TextBox, DateTimeDropdown, diff --git a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeType.cs b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeType.cs index 1fc3c26ae11..fa90b260b41 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeType.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum IdentityUserFlowAttributeType { BuiltIn, Custom, diff --git a/src/Microsoft.Graph/Generated/Models/Importance.cs b/src/Microsoft.Graph/Generated/Models/Importance.cs index a485c885498..72f0ffa0e93 100644 --- a/src/Microsoft.Graph/Generated/Models/Importance.cs +++ b/src/Microsoft.Graph/Generated/Models/Importance.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum Importance { Low, Normal, diff --git a/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityUploadStatus.cs b/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityUploadStatus.cs index dd287eaa6f0..ab13e86b823 100644 --- a/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityUploadStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityUploadStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ImportedWindowsAutopilotDeviceIdentityUploadStatus { /// No upload status. NoUpload, diff --git a/src/Microsoft.Graph/Generated/Models/InferenceClassificationOverride.cs b/src/Microsoft.Graph/Generated/Models/InferenceClassificationOverride.cs index 8dc956ac3e7..74e0510de1b 100644 --- a/src/Microsoft.Graph/Generated/Models/InferenceClassificationOverride.cs +++ b/src/Microsoft.Graph/Generated/Models/InferenceClassificationOverride.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class InferenceClassificationOverride : Entity, IParsable { /// Specifies how incoming messages from a specific sender should always be classified as. The possible values are: focused, other. public InferenceClassificationType? ClassifyAs { diff --git a/src/Microsoft.Graph/Generated/Models/InferenceClassificationType.cs b/src/Microsoft.Graph/Generated/Models/InferenceClassificationType.cs index ee183f4b682..f68c146727a 100644 --- a/src/Microsoft.Graph/Generated/Models/InferenceClassificationType.cs +++ b/src/Microsoft.Graph/Generated/Models/InferenceClassificationType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum InferenceClassificationType { Focused, Other, diff --git a/src/Microsoft.Graph/Generated/Models/InitiatorType.cs b/src/Microsoft.Graph/Generated/Models/InitiatorType.cs index df7354dce29..6ac9ca5d3e4 100644 --- a/src/Microsoft.Graph/Generated/Models/InitiatorType.cs +++ b/src/Microsoft.Graph/Generated/Models/InitiatorType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum InitiatorType { User, Application, diff --git a/src/Microsoft.Graph/Generated/Models/InstallIntent.cs b/src/Microsoft.Graph/Generated/Models/InstallIntent.cs index 9f44c81dccc..928381b592f 100644 --- a/src/Microsoft.Graph/Generated/Models/InstallIntent.cs +++ b/src/Microsoft.Graph/Generated/Models/InstallIntent.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum InstallIntent { /// Available install intent. Available, diff --git a/src/Microsoft.Graph/Generated/Models/InternetSiteSecurityLevel.cs b/src/Microsoft.Graph/Generated/Models/InternetSiteSecurityLevel.cs index d8c4f08f4fc..4b015196150 100644 --- a/src/Microsoft.Graph/Generated/Models/InternetSiteSecurityLevel.cs +++ b/src/Microsoft.Graph/Generated/Models/InternetSiteSecurityLevel.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum InternetSiteSecurityLevel { /// User Defined, default value, no intent. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/IosNotificationAlertType.cs b/src/Microsoft.Graph/Generated/Models/IosNotificationAlertType.cs index b1bd40e6a35..c86c089fe2b 100644 --- a/src/Microsoft.Graph/Generated/Models/IosNotificationAlertType.cs +++ b/src/Microsoft.Graph/Generated/Models/IosNotificationAlertType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum IosNotificationAlertType { /// Device default value, no intent. DeviceDefault, diff --git a/src/Microsoft.Graph/Generated/Models/IosUpdateDeviceStatus.cs b/src/Microsoft.Graph/Generated/Models/IosUpdateDeviceStatus.cs index 00d03c567a5..67629b6f58e 100644 --- a/src/Microsoft.Graph/Generated/Models/IosUpdateDeviceStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/IosUpdateDeviceStatus.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class IosUpdateDeviceStatus : Entity, IParsable { /// The DateTime when device compliance grace period expires public DateTimeOffset? ComplianceGracePeriodExpirationDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/IosUpdatesInstallStatus.cs b/src/Microsoft.Graph/Generated/Models/IosUpdatesInstallStatus.cs index 683287c2ac7..3a7a7be2554 100644 --- a/src/Microsoft.Graph/Generated/Models/IosUpdatesInstallStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/IosUpdatesInstallStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum IosUpdatesInstallStatus { DeviceOsHigherThanDesiredOsVersion, SharedDeviceUserLoggedInError, diff --git a/src/Microsoft.Graph/Generated/Models/ItemActivity.cs b/src/Microsoft.Graph/Generated/Models/ItemActivity.cs index 17047dc95e8..6a908b8151b 100644 --- a/src/Microsoft.Graph/Generated/Models/ItemActivity.cs +++ b/src/Microsoft.Graph/Generated/Models/ItemActivity.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class ItemActivity : Entity, IParsable { /// An item was accessed. public AccessAction Access { diff --git a/src/Microsoft.Graph/Generated/Models/LicenseDetails.cs b/src/Microsoft.Graph/Generated/Models/LicenseDetails.cs index 336962c1b08..282dc22781a 100644 --- a/src/Microsoft.Graph/Generated/Models/LicenseDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/LicenseDetails.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class LicenseDetails : Entity, IParsable { /// Information about the service plans assigned with the license. Read-only, Not nullable public List ServicePlans { diff --git a/src/Microsoft.Graph/Generated/Models/LifecycleEventType.cs b/src/Microsoft.Graph/Generated/Models/LifecycleEventType.cs index fb204991ab6..d7f7ec93f81 100644 --- a/src/Microsoft.Graph/Generated/Models/LifecycleEventType.cs +++ b/src/Microsoft.Graph/Generated/Models/LifecycleEventType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum LifecycleEventType { Missed, SubscriptionRemoved, diff --git a/src/Microsoft.Graph/Generated/Models/LinkedResource.cs b/src/Microsoft.Graph/Generated/Models/LinkedResource.cs index deb59afc59c..7127d5d5ee0 100644 --- a/src/Microsoft.Graph/Generated/Models/LinkedResource.cs +++ b/src/Microsoft.Graph/Generated/Models/LinkedResource.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class LinkedResource : Entity, IParsable { /// Field indicating the app name of the source that is sending the linkedResource. public string ApplicationName { diff --git a/src/Microsoft.Graph/Generated/Models/List.cs b/src/Microsoft.Graph/Generated/Models/List.cs index 5576031eaa6..982ebf7aec1 100644 --- a/src/Microsoft.Graph/Generated/Models/List.cs +++ b/src/Microsoft.Graph/Generated/Models/List.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of agreement entities. public class List : BaseItem, IParsable { /// The collection of field definitions for this list. public List Columns { diff --git a/src/Microsoft.Graph/Generated/Models/ListItem.cs b/src/Microsoft.Graph/Generated/Models/ListItem.cs index 44072674e75..fb18ef1408a 100644 --- a/src/Microsoft.Graph/Generated/Models/ListItem.cs +++ b/src/Microsoft.Graph/Generated/Models/ListItem.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of agreement entities. public class ListItem : BaseItem, IParsable { /// Analytics about the view activities that took place on this item. public ItemAnalytics Analytics { diff --git a/src/Microsoft.Graph/Generated/Models/ListItemVersion.cs b/src/Microsoft.Graph/Generated/Models/ListItemVersion.cs index 40a0db2abdb..e18b9d89f64 100644 --- a/src/Microsoft.Graph/Generated/Models/ListItemVersion.cs +++ b/src/Microsoft.Graph/Generated/Models/ListItemVersion.cs @@ -5,6 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of agreementAcceptance entities. public class ListItemVersion : BaseItemVersion, IParsable { /// A collection of the fields and values for this version of the list item. public FieldValueSet Fields { @@ -12,7 +13,7 @@ public FieldValueSet Fields { set { BackingStore?.Set("fields", value); } } /// - /// Instantiates a new ListItemVersion and sets the default values. + /// Instantiates a new listItemVersion and sets the default values. /// public ListItemVersion() : base() { OdataType = "#microsoft.graph.listItemVersion"; diff --git a/src/Microsoft.Graph/Generated/Models/LobbyBypassScope.cs b/src/Microsoft.Graph/Generated/Models/LobbyBypassScope.cs index e964f6d6d7d..8b27cf5c25c 100644 --- a/src/Microsoft.Graph/Generated/Models/LobbyBypassScope.cs +++ b/src/Microsoft.Graph/Generated/Models/LobbyBypassScope.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum LobbyBypassScope { Organizer, Organization, diff --git a/src/Microsoft.Graph/Generated/Models/LocationType.cs b/src/Microsoft.Graph/Generated/Models/LocationType.cs index 2d72502c615..7320ad47a34 100644 --- a/src/Microsoft.Graph/Generated/Models/LocationType.cs +++ b/src/Microsoft.Graph/Generated/Models/LocationType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum LocationType { Default, ConferenceRoom, diff --git a/src/Microsoft.Graph/Generated/Models/LocationUniqueIdType.cs b/src/Microsoft.Graph/Generated/Models/LocationUniqueIdType.cs index 9152282f4f8..74f72300131 100644 --- a/src/Microsoft.Graph/Generated/Models/LocationUniqueIdType.cs +++ b/src/Microsoft.Graph/Generated/Models/LocationUniqueIdType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum LocationUniqueIdType { Unknown, LocationStore, diff --git a/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs b/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs index dfc2d9256f3..4dc79e6d453 100644 --- a/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class LongRunningOperation : Entity, IParsable { /// The start time of the operation. public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/LongRunningOperationStatus.cs b/src/Microsoft.Graph/Generated/Models/LongRunningOperationStatus.cs index 604e1811169..4edc9128b17 100644 --- a/src/Microsoft.Graph/Generated/Models/LongRunningOperationStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/LongRunningOperationStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum LongRunningOperationStatus { NotStarted, Running, diff --git a/src/Microsoft.Graph/Generated/Models/MailDestinationRoutingReason.cs b/src/Microsoft.Graph/Generated/Models/MailDestinationRoutingReason.cs index a420d99c85e..30c6008be2a 100644 --- a/src/Microsoft.Graph/Generated/Models/MailDestinationRoutingReason.cs +++ b/src/Microsoft.Graph/Generated/Models/MailDestinationRoutingReason.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum MailDestinationRoutingReason { None, MailFlowRule, diff --git a/src/Microsoft.Graph/Generated/Models/MailFolder.cs b/src/Microsoft.Graph/Generated/Models/MailFolder.cs index a3b6168c1c3..1a3df13348a 100644 --- a/src/Microsoft.Graph/Generated/Models/MailFolder.cs +++ b/src/Microsoft.Graph/Generated/Models/MailFolder.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class MailFolder : Entity, IParsable { /// The number of immediate child mailFolders in the current mailFolder. public int? ChildFolderCount { diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppAvailability.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppAvailability.cs index b6658b02116..9cd97090ea1 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppAvailability.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppAvailability.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ManagedAppAvailability { /// A globally available app to all tenants. Global, diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppClipboardSharingLevel.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppClipboardSharingLevel.cs index 26fe2de3274..5fdb0ab57c3 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppClipboardSharingLevel.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppClipboardSharingLevel.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ManagedAppClipboardSharingLevel { /// Sharing is allowed between all apps, managed or not AllApps, diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppDataEncryptionType.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppDataEncryptionType.cs index 00faad425ad..5a0700fe88b 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppDataEncryptionType.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppDataEncryptionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ManagedAppDataEncryptionType { /// App data is encrypted based on the default settings on the device. UseDeviceSettings, diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppDataStorageLocation.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppDataStorageLocation.cs index 8284c3ae23e..4dbfbf5bab3 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppDataStorageLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppDataStorageLocation.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ManagedAppDataStorageLocation { /// OneDrive for business OneDriveForBusiness, diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppDataTransferLevel.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppDataTransferLevel.cs index 3de061029b6..1b983b83c93 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppDataTransferLevel.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppDataTransferLevel.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ManagedAppDataTransferLevel { /// All apps. AllApps, diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppFlaggedReason.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppFlaggedReason.cs index 3a771de26ca..c33411271d7 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppFlaggedReason.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppFlaggedReason.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ManagedAppFlaggedReason { /// No issue. None, diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppPinCharacterSet.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppPinCharacterSet.cs index 2b689c98cb4..8e3fabf1c6a 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppPinCharacterSet.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppPinCharacterSet.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ManagedAppPinCharacterSet { /// Numeric characters Numeric, diff --git a/src/Microsoft.Graph/Generated/Models/ManagedBrowserType.cs b/src/Microsoft.Graph/Generated/Models/ManagedBrowserType.cs index 064da0abc77..5c21f42f746 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedBrowserType.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedBrowserType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ManagedBrowserType { /// Not configured NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs b/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs index 6ea8e6515e7..28a8527a0a6 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs @@ -181,6 +181,11 @@ public ManagementAgentType? ManagementAgent { get { return BackingStore?.Get("managementAgent"); } set { BackingStore?.Set("managementAgent", value); } } + /// Reports device management certificate expiration date. This property is read-only. + public DateTimeOffset? ManagementCertificateExpirationDate { + get { return BackingStore?.Get("managementCertificateExpirationDate"); } + set { BackingStore?.Set("managementCertificateExpirationDate", value); } + } /// Manufacturer of the device. This property is read-only. public string Manufacturer { get { return BackingStore?.Get("manufacturer"); } @@ -236,6 +241,11 @@ public string RemoteAssistanceSessionUrl { get { return BackingStore?.Get("remoteAssistanceSessionUrl"); } set { BackingStore?.Set("remoteAssistanceSessionUrl", value); } } + /// Reports if the managed iOS device is user approval enrollment. This property is read-only. + public bool? RequireUserEnrollmentApproval { + get { return BackingStore?.Get("requireUserEnrollmentApproval"); } + set { BackingStore?.Set("requireUserEnrollmentApproval", value); } + } /// SerialNumber. This property is read-only. public string SerialNumber { get { return BackingStore?.Get("serialNumber"); } @@ -271,6 +281,11 @@ public string UserPrincipalName { get { return BackingStore?.Get("userPrincipalName"); } set { BackingStore?.Set("userPrincipalName", value); } } + /// The primary users associated with the managed device. + public List Users { + get { return BackingStore?.Get>("users"); } + set { BackingStore?.Set("users", value); } + } /// Wi-Fi MAC. This property is read-only. public string WiFiMacAddress { get { return BackingStore?.Get("wiFiMacAddress"); } @@ -330,6 +345,7 @@ public ManagedDevice() : base() { {"managedDeviceName", n => { ManagedDeviceName = n.GetStringValue(); } }, {"managedDeviceOwnerType", n => { ManagedDeviceOwnerType = n.GetEnumValue(); } }, {"managementAgent", n => { ManagementAgent = n.GetEnumValue(); } }, + {"managementCertificateExpirationDate", n => { ManagementCertificateExpirationDate = n.GetDateTimeOffsetValue(); } }, {"manufacturer", n => { Manufacturer = n.GetStringValue(); } }, {"meid", n => { Meid = n.GetStringValue(); } }, {"model", n => { Model = n.GetStringValue(); } }, @@ -341,6 +357,7 @@ public ManagedDevice() : base() { {"physicalMemoryInBytes", n => { PhysicalMemoryInBytes = n.GetLongValue(); } }, {"remoteAssistanceSessionErrorDetails", n => { RemoteAssistanceSessionErrorDetails = n.GetStringValue(); } }, {"remoteAssistanceSessionUrl", n => { RemoteAssistanceSessionUrl = n.GetStringValue(); } }, + {"requireUserEnrollmentApproval", n => { RequireUserEnrollmentApproval = n.GetBoolValue(); } }, {"serialNumber", n => { SerialNumber = n.GetStringValue(); } }, {"subscriberCarrier", n => { SubscriberCarrier = n.GetStringValue(); } }, {"totalStorageSpaceInBytes", n => { TotalStorageSpaceInBytes = n.GetLongValue(); } }, @@ -348,6 +365,7 @@ public ManagedDevice() : base() { {"userDisplayName", n => { UserDisplayName = n.GetStringValue(); } }, {"userId", n => { UserId = n.GetStringValue(); } }, {"userPrincipalName", n => { UserPrincipalName = n.GetStringValue(); } }, + {"users", n => { Users = n.GetCollectionOfObjectValues(User.CreateFromDiscriminatorValue)?.ToList(); } }, {"wiFiMacAddress", n => { WiFiMacAddress = n.GetStringValue(); } }, }; } @@ -371,6 +389,7 @@ public ManagedDevice() : base() { writer.WriteEnumValue("managementAgent", ManagementAgent); writer.WriteStringValue("notes", Notes); writer.WriteEnumValue("partnerReportedThreatState", PartnerReportedThreatState); + writer.WriteCollectionOfObjectValues("users", Users); } } } diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceOwnerType.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceOwnerType.cs index d294a498119..2bb30492b66 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceOwnerType.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceOwnerType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ManagedDeviceOwnerType { /// Unknown. Unknown, diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDevicePartnerReportedHealthState.cs b/src/Microsoft.Graph/Generated/Models/ManagedDevicePartnerReportedHealthState.cs index 850d5d5ae56..e92b79e3067 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDevicePartnerReportedHealthState.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDevicePartnerReportedHealthState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ManagedDevicePartnerReportedHealthState { /// Device health state is not yet reported Unknown, diff --git a/src/Microsoft.Graph/Generated/Models/ManagementAgentType.cs b/src/Microsoft.Graph/Generated/Models/ManagementAgentType.cs index f2d15851d53..8bdf463384d 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagementAgentType.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagementAgentType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ManagementAgentType { /// The device is managed by Exchange server. Eas, diff --git a/src/Microsoft.Graph/Generated/Models/MdmAuthority.cs b/src/Microsoft.Graph/Generated/Models/MdmAuthority.cs index c3198fc1626..ec39cd7e694 100644 --- a/src/Microsoft.Graph/Generated/Models/MdmAuthority.cs +++ b/src/Microsoft.Graph/Generated/Models/MdmAuthority.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum MdmAuthority { /// Unknown Unknown, diff --git a/src/Microsoft.Graph/Generated/Models/MediaDirection.cs b/src/Microsoft.Graph/Generated/Models/MediaDirection.cs index a678d70269e..731d99e2707 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaDirection.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaDirection.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum MediaDirection { Inactive, SendOnly, diff --git a/src/Microsoft.Graph/Generated/Models/MediaState.cs b/src/Microsoft.Graph/Generated/Models/MediaState.cs index 7e755c38331..22256589782 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaState.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum MediaState { Active, Inactive, diff --git a/src/Microsoft.Graph/Generated/Models/MeetingAttendanceReport.cs b/src/Microsoft.Graph/Generated/Models/MeetingAttendanceReport.cs index 6f6b23337d5..9ccca9fc1bc 100644 --- a/src/Microsoft.Graph/Generated/Models/MeetingAttendanceReport.cs +++ b/src/Microsoft.Graph/Generated/Models/MeetingAttendanceReport.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class MeetingAttendanceReport : Entity, IParsable { /// List of attendance records of an attendance report. Read-only. public List AttendanceRecords { diff --git a/src/Microsoft.Graph/Generated/Models/MeetingChatMode.cs b/src/Microsoft.Graph/Generated/Models/MeetingChatMode.cs index 2e88604244f..34bf5830e84 100644 --- a/src/Microsoft.Graph/Generated/Models/MeetingChatMode.cs +++ b/src/Microsoft.Graph/Generated/Models/MeetingChatMode.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum MeetingChatMode { Enabled, Disabled, diff --git a/src/Microsoft.Graph/Generated/Models/MeetingMessageType.cs b/src/Microsoft.Graph/Generated/Models/MeetingMessageType.cs index 1cff006692d..d5b0fb83715 100644 --- a/src/Microsoft.Graph/Generated/Models/MeetingMessageType.cs +++ b/src/Microsoft.Graph/Generated/Models/MeetingMessageType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum MeetingMessageType { None, MeetingRequest, diff --git a/src/Microsoft.Graph/Generated/Models/MeetingRequestType.cs b/src/Microsoft.Graph/Generated/Models/MeetingRequestType.cs index f3c8c7c94fb..03dde1b10e7 100644 --- a/src/Microsoft.Graph/Generated/Models/MeetingRequestType.cs +++ b/src/Microsoft.Graph/Generated/Models/MeetingRequestType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum MeetingRequestType { None, NewMeetingRequest, diff --git a/src/Microsoft.Graph/Generated/Models/MessageActionFlag.cs b/src/Microsoft.Graph/Generated/Models/MessageActionFlag.cs index 382e88d8388..f27cfb2a997 100644 --- a/src/Microsoft.Graph/Generated/Models/MessageActionFlag.cs +++ b/src/Microsoft.Graph/Generated/Models/MessageActionFlag.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum MessageActionFlag { Any, Call, diff --git a/src/Microsoft.Graph/Generated/Models/MessageRule.cs b/src/Microsoft.Graph/Generated/Models/MessageRule.cs index 4360984087a..29d987694fe 100644 --- a/src/Microsoft.Graph/Generated/Models/MessageRule.cs +++ b/src/Microsoft.Graph/Generated/Models/MessageRule.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class MessageRule : Entity, IParsable { /// Actions to be taken on a message when the corresponding conditions are fulfilled. public MessageRuleActions Actions { diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessLicenseType.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessLicenseType.cs index cd24d1a63d7..e4ae9e9b65c 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessLicenseType.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessLicenseType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum MicrosoftStoreForBusinessLicenseType { Offline, Online, diff --git a/src/Microsoft.Graph/Generated/Models/MiracastChannel.cs b/src/Microsoft.Graph/Generated/Models/MiracastChannel.cs index 506f1f8e194..294de91b5c5 100644 --- a/src/Microsoft.Graph/Generated/Models/MiracastChannel.cs +++ b/src/Microsoft.Graph/Generated/Models/MiracastChannel.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum MiracastChannel { /// User Defined, default value, no intent. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppContentFileUploadState.cs b/src/Microsoft.Graph/Generated/Models/MobileAppContentFileUploadState.cs index dca880bb58b..92f8b13a33c 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppContentFileUploadState.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppContentFileUploadState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum MobileAppContentFileUploadState { Success, TransientError, diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppPublishingState.cs b/src/Microsoft.Graph/Generated/Models/MobileAppPublishingState.cs index bd0f24f36d7..ce2fc71b341 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppPublishingState.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppPublishingState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum MobileAppPublishingState { /// The app is not yet published. NotPublished, diff --git a/src/Microsoft.Graph/Generated/Models/MobileThreatPartnerTenantState.cs b/src/Microsoft.Graph/Generated/Models/MobileThreatPartnerTenantState.cs index 09d81b0eb0f..69debc25205 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileThreatPartnerTenantState.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileThreatPartnerTenantState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum MobileThreatPartnerTenantState { /// Partner is unavailable. Unavailable, diff --git a/src/Microsoft.Graph/Generated/Models/Modality.cs b/src/Microsoft.Graph/Generated/Models/Modality.cs index 66b229b18ec..826b2e6c844 100644 --- a/src/Microsoft.Graph/Generated/Models/Modality.cs +++ b/src/Microsoft.Graph/Generated/Models/Modality.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum Modality { Audio, Video, diff --git a/src/Microsoft.Graph/Generated/Models/MultiValueLegacyExtendedProperty.cs b/src/Microsoft.Graph/Generated/Models/MultiValueLegacyExtendedProperty.cs index b1ca814d772..36904d348cc 100644 --- a/src/Microsoft.Graph/Generated/Models/MultiValueLegacyExtendedProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/MultiValueLegacyExtendedProperty.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class MultiValueLegacyExtendedProperty : Entity, IParsable { /// A collection of property values. public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/OAuth2PermissionGrant.cs b/src/Microsoft.Graph/Generated/Models/OAuth2PermissionGrant.cs index 5e8cccc4849..221eb6faaa3 100644 --- a/src/Microsoft.Graph/Generated/Models/OAuth2PermissionGrant.cs +++ b/src/Microsoft.Graph/Generated/Models/OAuth2PermissionGrant.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class OAuth2PermissionGrant : Entity, IParsable { /// The id of the client service principal for the application which is authorized to act on behalf of a signed-in user when accessing an API. Required. Supports $filter (eq only). public string ClientId { diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs index 58c1ea87431..ec5e5e27997 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class OnlineMeeting : Entity, IParsable { /// Indicates whether attendees can turn on their camera. public bool? AllowAttendeeToEnableCamera { diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeetingPresenters.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeetingPresenters.cs index 70131f2a4c7..0f294ce0b75 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeetingPresenters.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeetingPresenters.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum OnlineMeetingPresenters { Everyone, Organization, diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeetingProviderType.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeetingProviderType.cs index 71acf4b6372..dc75018e57e 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeetingProviderType.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeetingProviderType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum OnlineMeetingProviderType { Unknown, SkypeForBusiness, diff --git a/src/Microsoft.Graph/Generated/Models/OperationResult.cs b/src/Microsoft.Graph/Generated/Models/OperationResult.cs index 7ff8be66235..8575fca38cf 100644 --- a/src/Microsoft.Graph/Generated/Models/OperationResult.cs +++ b/src/Microsoft.Graph/Generated/Models/OperationResult.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum OperationResult { Success, Failure, diff --git a/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingLocalization.cs b/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingLocalization.cs index c1b914ccf87..76fd5c4f03e 100644 --- a/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingLocalization.cs +++ b/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingLocalization.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class OrganizationalBrandingLocalization : OrganizationalBrandingProperties, IParsable { /// /// Instantiates a new organizationalBrandingLocalization and sets the default values. diff --git a/src/Microsoft.Graph/Generated/Models/OutlookCategory.cs b/src/Microsoft.Graph/Generated/Models/OutlookCategory.cs index 5c77cc510bf..51cfc59d7ef 100644 --- a/src/Microsoft.Graph/Generated/Models/OutlookCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/OutlookCategory.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class OutlookCategory : Entity, IParsable { /// A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. See the note below. public CategoryColor? Color { diff --git a/src/Microsoft.Graph/Generated/Models/OutlookItem.cs b/src/Microsoft.Graph/Generated/Models/OutlookItem.cs index f5d6b497201..8ee54193c0a 100644 --- a/src/Microsoft.Graph/Generated/Models/OutlookItem.cs +++ b/src/Microsoft.Graph/Generated/Models/OutlookItem.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class OutlookItem : Entity, IParsable { /// The categories associated with the item public List Categories { diff --git a/src/Microsoft.Graph/Generated/Models/Participant.cs b/src/Microsoft.Graph/Generated/Models/Participant.cs index 3a64a4b1aad..12f1097f729 100644 --- a/src/Microsoft.Graph/Generated/Models/Participant.cs +++ b/src/Microsoft.Graph/Generated/Models/Participant.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Participant : Entity, IParsable { /// The info property public ParticipantInfo Info { diff --git a/src/Microsoft.Graph/Generated/Models/PayloadDeliveryPlatform.cs b/src/Microsoft.Graph/Generated/Models/PayloadDeliveryPlatform.cs index da09469c189..4c54b9ffe74 100644 --- a/src/Microsoft.Graph/Generated/Models/PayloadDeliveryPlatform.cs +++ b/src/Microsoft.Graph/Generated/Models/PayloadDeliveryPlatform.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum PayloadDeliveryPlatform { Unknown, Sms, diff --git a/src/Microsoft.Graph/Generated/Models/PermissionClassificationType.cs b/src/Microsoft.Graph/Generated/Models/PermissionClassificationType.cs index 057b661f66b..dbb806e990b 100644 --- a/src/Microsoft.Graph/Generated/Models/PermissionClassificationType.cs +++ b/src/Microsoft.Graph/Generated/Models/PermissionClassificationType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum PermissionClassificationType { Low, Medium, diff --git a/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSet.cs b/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSet.cs index e18bc3f8ef2..e455a9e5ec2 100644 --- a/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSet.cs +++ b/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSet.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class PermissionGrantConditionSet : Entity, IParsable { /// A list of appId values for the client applications to match with, or a list with the single value all to match any client application. Default is the single value all. public List ClientApplicationIds { diff --git a/src/Microsoft.Graph/Generated/Models/PermissionType.cs b/src/Microsoft.Graph/Generated/Models/PermissionType.cs index 396199ad9bc..c9fb88229f0 100644 --- a/src/Microsoft.Graph/Generated/Models/PermissionType.cs +++ b/src/Microsoft.Graph/Generated/Models/PermissionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum PermissionType { Application, Delegated, diff --git a/src/Microsoft.Graph/Generated/Models/PersistentBrowserSessionMode.cs b/src/Microsoft.Graph/Generated/Models/PersistentBrowserSessionMode.cs index 60b8938c3e7..f3b112039d8 100644 --- a/src/Microsoft.Graph/Generated/Models/PersistentBrowserSessionMode.cs +++ b/src/Microsoft.Graph/Generated/Models/PersistentBrowserSessionMode.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum PersistentBrowserSessionMode { Always, Never, diff --git a/src/Microsoft.Graph/Generated/Models/Person.cs b/src/Microsoft.Graph/Generated/Models/Person.cs index 38294dca4b6..74d58db676d 100644 --- a/src/Microsoft.Graph/Generated/Models/Person.cs +++ b/src/Microsoft.Graph/Generated/Models/Person.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Person : Entity, IParsable { /// The person's birthday. public string Birthday { diff --git a/src/Microsoft.Graph/Generated/Models/PhoneType.cs b/src/Microsoft.Graph/Generated/Models/PhoneType.cs index 50ff6f6702e..e171a332fc4 100644 --- a/src/Microsoft.Graph/Generated/Models/PhoneType.cs +++ b/src/Microsoft.Graph/Generated/Models/PhoneType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum PhoneType { Home, Business, diff --git a/src/Microsoft.Graph/Generated/Models/PinnedChatMessageInfo.cs b/src/Microsoft.Graph/Generated/Models/PinnedChatMessageInfo.cs index d958538dedc..315599dc06e 100644 --- a/src/Microsoft.Graph/Generated/Models/PinnedChatMessageInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/PinnedChatMessageInfo.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class PinnedChatMessageInfo : Entity, IParsable { /// Represents details about the chat message that is pinned. public ChatMessage Message { diff --git a/src/Microsoft.Graph/Generated/Models/PlannerBucket.cs b/src/Microsoft.Graph/Generated/Models/PlannerBucket.cs index e063219881e..b0c6485c85e 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerBucket.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerBucket.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class PlannerBucket : Entity, IParsable { /// Name of the bucket. public string Name { diff --git a/src/Microsoft.Graph/Generated/Models/PlannerContainerType.cs b/src/Microsoft.Graph/Generated/Models/PlannerContainerType.cs index 3e9ac70b95b..b0b1b7f76a4 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerContainerType.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerContainerType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum PlannerContainerType { Group, UnknownFutureValue, diff --git a/src/Microsoft.Graph/Generated/Models/PlannerPlan.cs b/src/Microsoft.Graph/Generated/Models/PlannerPlan.cs index 3122023c3c9..2539d6a21f6 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerPlan.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerPlan.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class PlannerPlan : Entity, IParsable { /// Read-only. Nullable. Collection of buckets in the plan. public List Buckets { diff --git a/src/Microsoft.Graph/Generated/Models/PlannerPreviewType.cs b/src/Microsoft.Graph/Generated/Models/PlannerPreviewType.cs index e07a7804fa2..ad34c108343 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerPreviewType.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerPreviewType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum PlannerPreviewType { Automatic, NoPreview, diff --git a/src/Microsoft.Graph/Generated/Models/PlannerTask.cs b/src/Microsoft.Graph/Generated/Models/PlannerTask.cs index c38abb8196f..d6c4d3f3af0 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerTask.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerTask.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class PlannerTask : Entity, IParsable { /// Number of checklist items with value set to false, representing incomplete items. public int? ActiveChecklistItemCount { diff --git a/src/Microsoft.Graph/Generated/Models/PolicyBase.cs b/src/Microsoft.Graph/Generated/Models/PolicyBase.cs index 942a356ee8b..a753c0b5e5f 100644 --- a/src/Microsoft.Graph/Generated/Models/PolicyBase.cs +++ b/src/Microsoft.Graph/Generated/Models/PolicyBase.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class PolicyBase : DirectoryObject, IParsable { /// Description for this policy. Required. public string Description { diff --git a/src/Microsoft.Graph/Generated/Models/PolicyPlatformType.cs b/src/Microsoft.Graph/Generated/Models/PolicyPlatformType.cs index d91af34240c..64d52c35c94 100644 --- a/src/Microsoft.Graph/Generated/Models/PolicyPlatformType.cs +++ b/src/Microsoft.Graph/Generated/Models/PolicyPlatformType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum PolicyPlatformType { /// Android. Android, diff --git a/src/Microsoft.Graph/Generated/Models/PrereleaseFeatures.cs b/src/Microsoft.Graph/Generated/Models/PrereleaseFeatures.cs index 93efd2a6fd7..565d38d7f86 100644 --- a/src/Microsoft.Graph/Generated/Models/PrereleaseFeatures.cs +++ b/src/Microsoft.Graph/Generated/Models/PrereleaseFeatures.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum PrereleaseFeatures { /// User Defined, default value, no intent. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/PrintConnector.cs b/src/Microsoft.Graph/Generated/Models/PrintConnector.cs index ccff7c25f9d..acada347d1b 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintConnector.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintConnector.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of agreement entities. public class PrintConnector : Entity, IParsable { /// The connector's version. public string AppVersion { @@ -36,7 +37,7 @@ public DateTimeOffset? RegisteredDateTime { set { BackingStore?.Set("registeredDateTime", value); } } /// - /// Instantiates a new PrintConnector and sets the default values. + /// Instantiates a new printConnector and sets the default values. /// public PrintConnector() : base() { OdataType = "#microsoft.graph.printConnector"; diff --git a/src/Microsoft.Graph/Generated/Models/PrintEvent.cs b/src/Microsoft.Graph/Generated/Models/PrintEvent.cs index a84640e8806..5bdb2d426c6 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintEvent.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintEvent.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum PrintEvent { JobStarted, UnknownFutureValue, diff --git a/src/Microsoft.Graph/Generated/Models/PrintOperation.cs b/src/Microsoft.Graph/Generated/Models/PrintOperation.cs index a8eb5ed5fa8..ed7d924a1ec 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintOperation.cs @@ -5,6 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of agreement entities. public class PrintOperation : Entity, IParsable { /// The DateTimeOffset when the operation was created. Read-only. public DateTimeOffset? CreatedDateTime { @@ -17,7 +18,7 @@ public PrintOperationStatus Status { set { BackingStore?.Set("status", value); } } /// - /// Instantiates a new PrintOperation and sets the default values. + /// Instantiates a new printOperation and sets the default values. /// public PrintOperation() : base() { OdataType = "#microsoft.graph.printOperation"; diff --git a/src/Microsoft.Graph/Generated/Models/PrintTask.cs b/src/Microsoft.Graph/Generated/Models/PrintTask.cs index f74d2f1dc0e..bc97fa8fb56 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintTask.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintTask.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class PrintTask : Entity, IParsable { /// The definition property public PrintTaskDefinition Definition { diff --git a/src/Microsoft.Graph/Generated/Models/PrintTaskDefinition.cs b/src/Microsoft.Graph/Generated/Models/PrintTaskDefinition.cs index 3894e939df6..133dc340dcf 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintTaskDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintTaskDefinition.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class PrintTaskDefinition : Entity, IParsable { /// The createdBy property public AppIdentity CreatedBy { diff --git a/src/Microsoft.Graph/Generated/Models/PrintTaskProcessingState.cs b/src/Microsoft.Graph/Generated/Models/PrintTaskProcessingState.cs index 8c5719d22b6..325c59fa604 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintTaskProcessingState.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintTaskProcessingState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum PrintTaskProcessingState { Pending, Processing, diff --git a/src/Microsoft.Graph/Generated/Models/PrintTaskTrigger.cs b/src/Microsoft.Graph/Generated/Models/PrintTaskTrigger.cs index 463e7e83d7d..8386c59c029 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintTaskTrigger.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintTaskTrigger.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class PrintTaskTrigger : Entity, IParsable { /// The definition property public PrintTaskDefinition Definition { diff --git a/src/Microsoft.Graph/Generated/Models/PrintUsage.cs b/src/Microsoft.Graph/Generated/Models/PrintUsage.cs index 215c53740a8..1bfd459944e 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintUsage.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintUsage.cs @@ -6,7 +6,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class PrintUsage : Entity, IParsable { /// The completedBlackAndWhiteJobCount property public long? CompletedBlackAndWhiteJobCount { diff --git a/src/Microsoft.Graph/Generated/Models/ProcessIntegrityLevel.cs b/src/Microsoft.Graph/Generated/Models/ProcessIntegrityLevel.cs index 351c269d0a1..8d50ecdfe80 100644 --- a/src/Microsoft.Graph/Generated/Models/ProcessIntegrityLevel.cs +++ b/src/Microsoft.Graph/Generated/Models/ProcessIntegrityLevel.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum ProcessIntegrityLevel { Unknown, Untrusted, diff --git a/src/Microsoft.Graph/Generated/Models/PromptLoginBehavior.cs b/src/Microsoft.Graph/Generated/Models/PromptLoginBehavior.cs index 283e301f0d0..54bbc106482 100644 --- a/src/Microsoft.Graph/Generated/Models/PromptLoginBehavior.cs +++ b/src/Microsoft.Graph/Generated/Models/PromptLoginBehavior.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum PromptLoginBehavior { TranslateToFreshPasswordAuthentication, NativeSupport, diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningAction.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningAction.cs index 2a2d7cb5b09..5d1050deae5 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningAction.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningAction.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ProvisioningAction { Other, Create, diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummary.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummary.cs index 9dc873fc370..f9a8ebaafe1 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummary.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class ProvisioningObjectSummary : Entity, IParsable { /// 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 public DateTimeOffset? ActivityDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummaryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummaryCollectionResponse.cs index e12a61f2401..2d7b98837d5 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummaryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummaryCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the provisioning property of the microsoft.graph.auditLogRoot entity. public class ProvisioningObjectSummaryCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningResult.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningResult.cs index adf1c46547d..104d60caa3a 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningResult.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningResult.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ProvisioningResult { Success, Failure, diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningStatusErrorCategory.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningStatusErrorCategory.cs index de37b5dfddb..43f150c14d4 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningStatusErrorCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningStatusErrorCategory.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ProvisioningStatusErrorCategory { Failure, NonServiceFailure, diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningStepType.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningStepType.cs index d10c7138fda..2ca55f5690a 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningStepType.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningStepType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ProvisioningStepType { Import, Scoping, diff --git a/src/Microsoft.Graph/Generated/Models/RatingAppsType.cs b/src/Microsoft.Graph/Generated/Models/RatingAppsType.cs index 3a15c1dac68..ce1d5fa40b3 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingAppsType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingAppsType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingAppsType { /// Default value, allow all apps content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingAustraliaMoviesType.cs b/src/Microsoft.Graph/Generated/Models/RatingAustraliaMoviesType.cs index 3b30195f2fd..3812384c8c2 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingAustraliaMoviesType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingAustraliaMoviesType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingAustraliaMoviesType { /// Default value, allow all movies content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingAustraliaTelevisionType.cs b/src/Microsoft.Graph/Generated/Models/RatingAustraliaTelevisionType.cs index abcfb2adb6e..b28913bc2e5 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingAustraliaTelevisionType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingAustraliaTelevisionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingAustraliaTelevisionType { /// Default value, allow all TV shows content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingCanadaMoviesType.cs b/src/Microsoft.Graph/Generated/Models/RatingCanadaMoviesType.cs index 69c44c4937f..35cc51bf19f 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingCanadaMoviesType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingCanadaMoviesType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingCanadaMoviesType { /// Default value, allow all movies content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingCanadaTelevisionType.cs b/src/Microsoft.Graph/Generated/Models/RatingCanadaTelevisionType.cs index 2cf7290e49a..68d6ff51318 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingCanadaTelevisionType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingCanadaTelevisionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingCanadaTelevisionType { /// Default value, allow all TV shows content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingFranceMoviesType.cs b/src/Microsoft.Graph/Generated/Models/RatingFranceMoviesType.cs index f525350326a..7699ced3d4d 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingFranceMoviesType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingFranceMoviesType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingFranceMoviesType { /// Default value, allow all movies content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingFranceTelevisionType.cs b/src/Microsoft.Graph/Generated/Models/RatingFranceTelevisionType.cs index e1356c14191..042ac01453d 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingFranceTelevisionType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingFranceTelevisionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingFranceTelevisionType { /// Default value, allow all TV shows content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingGermanyMoviesType.cs b/src/Microsoft.Graph/Generated/Models/RatingGermanyMoviesType.cs index eea4d86de18..da9acb75461 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingGermanyMoviesType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingGermanyMoviesType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingGermanyMoviesType { /// Default value, allow all movies content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingGermanyTelevisionType.cs b/src/Microsoft.Graph/Generated/Models/RatingGermanyTelevisionType.cs index 3fd8b36dc89..568aae40d59 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingGermanyTelevisionType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingGermanyTelevisionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingGermanyTelevisionType { /// Default value, allow all TV shows content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingIrelandMoviesType.cs b/src/Microsoft.Graph/Generated/Models/RatingIrelandMoviesType.cs index d370695faed..28569113491 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingIrelandMoviesType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingIrelandMoviesType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingIrelandMoviesType { /// Default value, allow all movies content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingIrelandTelevisionType.cs b/src/Microsoft.Graph/Generated/Models/RatingIrelandTelevisionType.cs index b489ce69059..a0d6c926946 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingIrelandTelevisionType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingIrelandTelevisionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingIrelandTelevisionType { /// Default value, allow all TV shows content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingJapanMoviesType.cs b/src/Microsoft.Graph/Generated/Models/RatingJapanMoviesType.cs index 9a624c43f47..0a4dec16d2f 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingJapanMoviesType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingJapanMoviesType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingJapanMoviesType { /// Default value, allow all movies content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingJapanTelevisionType.cs b/src/Microsoft.Graph/Generated/Models/RatingJapanTelevisionType.cs index a06601cca63..555dca311dc 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingJapanTelevisionType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingJapanTelevisionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingJapanTelevisionType { /// Default value, allow all TV shows content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingNewZealandMoviesType.cs b/src/Microsoft.Graph/Generated/Models/RatingNewZealandMoviesType.cs index d81ecb7859c..b64548def4a 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingNewZealandMoviesType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingNewZealandMoviesType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingNewZealandMoviesType { /// Default value, allow all movies content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingNewZealandTelevisionType.cs b/src/Microsoft.Graph/Generated/Models/RatingNewZealandTelevisionType.cs index fbe82eceb83..639d0c54022 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingNewZealandTelevisionType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingNewZealandTelevisionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingNewZealandTelevisionType { /// Default value, allow all TV shows content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingUnitedKingdomMoviesType.cs b/src/Microsoft.Graph/Generated/Models/RatingUnitedKingdomMoviesType.cs index 53ef8ab13ad..12c0248628e 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingUnitedKingdomMoviesType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingUnitedKingdomMoviesType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingUnitedKingdomMoviesType { /// Default value, allow all movies content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingUnitedKingdomTelevisionType.cs b/src/Microsoft.Graph/Generated/Models/RatingUnitedKingdomTelevisionType.cs index 0de86ac6928..ee5c129f545 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingUnitedKingdomTelevisionType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingUnitedKingdomTelevisionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingUnitedKingdomTelevisionType { /// Default value, allow all TV shows content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingUnitedStatesMoviesType.cs b/src/Microsoft.Graph/Generated/Models/RatingUnitedStatesMoviesType.cs index 171955f1c1f..e3da5a9e41a 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingUnitedStatesMoviesType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingUnitedStatesMoviesType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingUnitedStatesMoviesType { /// Default value, allow all movies content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RatingUnitedStatesTelevisionType.cs b/src/Microsoft.Graph/Generated/Models/RatingUnitedStatesTelevisionType.cs index 1e5ebdce933..10eb19e16e3 100644 --- a/src/Microsoft.Graph/Generated/Models/RatingUnitedStatesTelevisionType.cs +++ b/src/Microsoft.Graph/Generated/Models/RatingUnitedStatesTelevisionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RatingUnitedStatesTelevisionType { /// Default value, allow all TV shows content AllAllowed, diff --git a/src/Microsoft.Graph/Generated/Models/RecordingStatus.cs b/src/Microsoft.Graph/Generated/Models/RecordingStatus.cs index 97d7a614ae7..0f5fa1125f5 100644 --- a/src/Microsoft.Graph/Generated/Models/RecordingStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/RecordingStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum RecordingStatus { Unknown, NotRecording, diff --git a/src/Microsoft.Graph/Generated/Models/RecurrencePatternType.cs b/src/Microsoft.Graph/Generated/Models/RecurrencePatternType.cs index 77a5f2c5396..5fc069fc810 100644 --- a/src/Microsoft.Graph/Generated/Models/RecurrencePatternType.cs +++ b/src/Microsoft.Graph/Generated/Models/RecurrencePatternType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum RecurrencePatternType { Daily, Weekly, diff --git a/src/Microsoft.Graph/Generated/Models/RecurrenceRangeType.cs b/src/Microsoft.Graph/Generated/Models/RecurrenceRangeType.cs index 77a29e85e77..e49a8381d67 100644 --- a/src/Microsoft.Graph/Generated/Models/RecurrenceRangeType.cs +++ b/src/Microsoft.Graph/Generated/Models/RecurrenceRangeType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum RecurrenceRangeType { EndDate, NoEnd, diff --git a/src/Microsoft.Graph/Generated/Models/RemoteAssistanceOnboardingStatus.cs b/src/Microsoft.Graph/Generated/Models/RemoteAssistanceOnboardingStatus.cs index c0ef99a66fe..13d81ace117 100644 --- a/src/Microsoft.Graph/Generated/Models/RemoteAssistanceOnboardingStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/RemoteAssistanceOnboardingStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum RemoteAssistanceOnboardingStatus { /// The status reported when there is no active TeamViewer connector configured or active NotOnboarded, diff --git a/src/Microsoft.Graph/Generated/Models/Request.cs b/src/Microsoft.Graph/Generated/Models/Request.cs index 3620d342ba4..c0f0aae1b45 100644 --- a/src/Microsoft.Graph/Generated/Models/Request.cs +++ b/src/Microsoft.Graph/Generated/Models/Request.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Request : Entity, IParsable { /// The identifier of the approval of the request. public string ApprovalId { diff --git a/src/Microsoft.Graph/Generated/Models/RequiredPasswordType.cs b/src/Microsoft.Graph/Generated/Models/RequiredPasswordType.cs index 3d3b1f80872..30d9e8b49b3 100644 --- a/src/Microsoft.Graph/Generated/Models/RequiredPasswordType.cs +++ b/src/Microsoft.Graph/Generated/Models/RequiredPasswordType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RequiredPasswordType { /// Device default value, no intent. DeviceDefault, diff --git a/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermissionGrant.cs b/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermissionGrant.cs index 6424a90346c..1834fa19d15 100644 --- a/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermissionGrant.cs +++ b/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermissionGrant.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class ResourceSpecificPermissionGrant : DirectoryObject, IParsable { /// ID of the service principal of the Azure AD app that has been granted access. Read-only. public string ClientAppId { diff --git a/src/Microsoft.Graph/Generated/Models/ResponseType.cs b/src/Microsoft.Graph/Generated/Models/ResponseType.cs index 9e7faa78b83..62b71aa2a41 100644 --- a/src/Microsoft.Graph/Generated/Models/ResponseType.cs +++ b/src/Microsoft.Graph/Generated/Models/ResponseType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ResponseType { None, Organizer, diff --git a/src/Microsoft.Graph/Generated/Models/RiskDetail.cs b/src/Microsoft.Graph/Generated/Models/RiskDetail.cs index d13b85ab927..61b06ea447c 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskDetail.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum RiskDetail { None, AdminGeneratedTemporaryPassword, diff --git a/src/Microsoft.Graph/Generated/Models/RiskDetectionTimingType.cs b/src/Microsoft.Graph/Generated/Models/RiskDetectionTimingType.cs index 2edc05f09d8..cfb86fd1b77 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskDetectionTimingType.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskDetectionTimingType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum RiskDetectionTimingType { NotDefined, Realtime, diff --git a/src/Microsoft.Graph/Generated/Models/RiskEventType.cs b/src/Microsoft.Graph/Generated/Models/RiskEventType.cs index e88bd814562..7fbb97ced33 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskEventType.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskEventType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum RiskEventType { UnlikelyTravel, AnonymizedIPAddress, diff --git a/src/Microsoft.Graph/Generated/Models/RiskLevel.cs b/src/Microsoft.Graph/Generated/Models/RiskLevel.cs index bced265d753..5e1124d7e62 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskLevel.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskLevel.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum RiskLevel { Low, Medium, diff --git a/src/Microsoft.Graph/Generated/Models/RiskState.cs b/src/Microsoft.Graph/Generated/Models/RiskState.cs index a18c385dc40..74789ecad87 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskState.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum RiskState { None, ConfirmedSafe, diff --git a/src/Microsoft.Graph/Generated/Models/RiskyUserHistoryItem.cs b/src/Microsoft.Graph/Generated/Models/RiskyUserHistoryItem.cs index 7abccdf6eeb..a15202e3627 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskyUserHistoryItem.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskyUserHistoryItem.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class RiskyUserHistoryItem : RiskyUser, IParsable { /// The activity related to user risk level change. public RiskUserActivity Activity { diff --git a/src/Microsoft.Graph/Generated/Models/RoleDefinition.cs b/src/Microsoft.Graph/Generated/Models/RoleDefinition.cs index 2b16dfa820a..cf24632e8b8 100644 --- a/src/Microsoft.Graph/Generated/Models/RoleDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/RoleDefinition.cs @@ -5,6 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.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. public class RoleDefinition : Entity, IParsable { /// Description of the Role definition. public string Description { diff --git a/src/Microsoft.Graph/Generated/Models/RoutingMode.cs b/src/Microsoft.Graph/Generated/Models/RoutingMode.cs index 2b0475f3bb6..117184079c3 100644 --- a/src/Microsoft.Graph/Generated/Models/RoutingMode.cs +++ b/src/Microsoft.Graph/Generated/Models/RoutingMode.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum RoutingMode { OneToOne, Multicast, diff --git a/src/Microsoft.Graph/Generated/Models/RoutingType.cs b/src/Microsoft.Graph/Generated/Models/RoutingType.cs index 84ee3ec3fe0..005f907e945 100644 --- a/src/Microsoft.Graph/Generated/Models/RoutingType.cs +++ b/src/Microsoft.Graph/Generated/Models/RoutingType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum RoutingType { Forwarded, Lookup, diff --git a/src/Microsoft.Graph/Generated/Models/RunAsAccountType.cs b/src/Microsoft.Graph/Generated/Models/RunAsAccountType.cs index 2f65fcc0115..7632707b6f9 100644 --- a/src/Microsoft.Graph/Generated/Models/RunAsAccountType.cs +++ b/src/Microsoft.Graph/Generated/Models/RunAsAccountType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RunAsAccountType { /// System context System, diff --git a/src/Microsoft.Graph/Generated/Models/SafeSearchFilterType.cs b/src/Microsoft.Graph/Generated/Models/SafeSearchFilterType.cs index 5d9a3e79320..92651e1567e 100644 --- a/src/Microsoft.Graph/Generated/Models/SafeSearchFilterType.cs +++ b/src/Microsoft.Graph/Generated/Models/SafeSearchFilterType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum SafeSearchFilterType { /// User Defined, default value, no intent. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/ScopedRoleMembership.cs b/src/Microsoft.Graph/Generated/Models/ScopedRoleMembership.cs index f30aec8f76b..4a57bfb06b6 100644 --- a/src/Microsoft.Graph/Generated/Models/ScopedRoleMembership.cs +++ b/src/Microsoft.Graph/Generated/Models/ScopedRoleMembership.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class ScopedRoleMembership : Entity, IParsable { /// Unique identifier for the administrative unit that the directory role is scoped to public string AdministrativeUnitId { diff --git a/src/Microsoft.Graph/Generated/Models/SecureScore.cs b/src/Microsoft.Graph/Generated/Models/SecureScore.cs index 46036771490..c92ffc449fa 100644 --- a/src/Microsoft.Graph/Generated/Models/SecureScore.cs +++ b/src/Microsoft.Graph/Generated/Models/SecureScore.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class SecureScore : Entity, IParsable { /// Active user count of the given tenant. public int? ActiveUserCount { diff --git a/src/Microsoft.Graph/Generated/Models/SecureScoreControlProfile.cs b/src/Microsoft.Graph/Generated/Models/SecureScoreControlProfile.cs index fc61ec96ae7..4ff54ea843b 100644 --- a/src/Microsoft.Graph/Generated/Models/SecureScoreControlProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/SecureScoreControlProfile.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class SecureScoreControlProfile : Entity, IParsable { /// Control action type (Config, Review, Behavior). public string ActionType { diff --git a/src/Microsoft.Graph/Generated/Models/Security/Case.cs b/src/Microsoft.Graph/Generated/Models/Security/Case.cs index 8ad7b743f59..9c17b882e13 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Case.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Case.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Case : Entity, IParsable { /// The createdDateTime property public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/Security/CaseAction.cs b/src/Microsoft.Graph/Generated/Models/Security/CaseAction.cs index 59837680ba9..3433b537492 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/CaseAction.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/CaseAction.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CaseAction { ContentExport, ApplyTags, diff --git a/src/Microsoft.Graph/Generated/Models/Security/CaseOperationStatus.cs b/src/Microsoft.Graph/Generated/Models/Security/CaseOperationStatus.cs index bf087b04b77..c298efa751c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/CaseOperationStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/CaseOperationStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CaseOperationStatus { NotStarted, SubmissionFailed, diff --git a/src/Microsoft.Graph/Generated/Models/Security/CaseStatus.cs b/src/Microsoft.Graph/Generated/Models/Security/CaseStatus.cs index 2114282dc33..6092e982b0a 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/CaseStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/CaseStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum CaseStatus { Unknown, Active, diff --git a/src/Microsoft.Graph/Generated/Models/Security/ChildSelectability.cs b/src/Microsoft.Graph/Generated/Models/Security/ChildSelectability.cs index 6226c7d1a30..b16488b29aa 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ChildSelectability.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ChildSelectability.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ChildSelectability { One, Many, diff --git a/src/Microsoft.Graph/Generated/Models/Security/DataSource.cs b/src/Microsoft.Graph/Generated/Models/Security/DataSource.cs index 8083bd8a348..4acb2912442 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DataSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DataSource.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class DataSource : Entity, IParsable { /// The user who created the dataSource. public Microsoft.Graph.Models.IdentitySet CreatedBy { diff --git a/src/Microsoft.Graph/Generated/Models/Security/DataSourceContainer.cs b/src/Microsoft.Graph/Generated/Models/Security/DataSourceContainer.cs index 824f83c4449..0a313948dcd 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DataSourceContainer.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DataSourceContainer.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class DataSourceContainer : Entity, IParsable { /// Created date and time of the dataSourceContainer entity. public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/Security/DataSourceContainerStatus.cs b/src/Microsoft.Graph/Generated/Models/Security/DataSourceContainerStatus.cs index 0c44751f778..ef63b0d8ca0 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DataSourceContainerStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DataSourceContainerStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DataSourceContainerStatus { Active, Released, diff --git a/src/Microsoft.Graph/Generated/Models/Security/DataSourceHoldStatus.cs b/src/Microsoft.Graph/Generated/Models/Security/DataSourceHoldStatus.cs index 5eda958bab6..0065ce2893b 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DataSourceHoldStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DataSourceHoldStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum DataSourceHoldStatus { NotApplied, Applied, diff --git a/src/Microsoft.Graph/Generated/Models/Security/DataSourceScopes.cs b/src/Microsoft.Graph/Generated/Models/Security/DataSourceScopes.cs index 3c79eb0d40c..536115079b5 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DataSourceScopes.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DataSourceScopes.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum DataSourceScopes { None, AllTenantMailboxes, diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs index eba89b589b7..b4809baa04d 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class EdiscoveryNoncustodialDataSource : DataSourceContainer, IParsable { /// User source or SharePoint site data source as non-custodial data source. public Microsoft.Graph.Models.Security.DataSource DataSource { diff --git a/src/Microsoft.Graph/Generated/Models/Security/Search.cs b/src/Microsoft.Graph/Generated/Models/Security/Search.cs index ee1ded57069..e657cac41fe 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Search.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Search.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Search : Entity, IParsable { /// The contentQuery property public string ContentQuery { diff --git a/src/Microsoft.Graph/Generated/Models/Security/SourceType.cs b/src/Microsoft.Graph/Generated/Models/Security/SourceType.cs index e6d56612817..7b0738f5ec6 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/SourceType.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/SourceType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum SourceType { Mailbox, Site, diff --git a/src/Microsoft.Graph/Generated/Models/Security/Tag.cs b/src/Microsoft.Graph/Generated/Models/Security/Tag.cs index f6a8313424b..73ee9d533af 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Tag.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Tag.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.Security { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Tag : Entity, IParsable { /// The createdBy property public Microsoft.Graph.Models.IdentitySet CreatedBy { diff --git a/src/Microsoft.Graph/Generated/Models/SelectionLikelihoodInfo.cs b/src/Microsoft.Graph/Generated/Models/SelectionLikelihoodInfo.cs index 352ffe00506..8adcd82e456 100644 --- a/src/Microsoft.Graph/Generated/Models/SelectionLikelihoodInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/SelectionLikelihoodInfo.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SelectionLikelihoodInfo { NotSpecified, High, diff --git a/src/Microsoft.Graph/Generated/Models/Sensitivity.cs b/src/Microsoft.Graph/Generated/Models/Sensitivity.cs index dd4c577dce0..04b7b6f75b0 100644 --- a/src/Microsoft.Graph/Generated/Models/Sensitivity.cs +++ b/src/Microsoft.Graph/Generated/Models/Sensitivity.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum Sensitivity { Normal, Personal, diff --git a/src/Microsoft.Graph/Generated/Models/ServiceHealthIssueCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ServiceHealthIssueCollectionResponse.cs index 7811fdd77c2..c3f1f2cc649 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceHealthIssueCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceHealthIssueCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the issues property of the microsoft.graph.serviceHealth entity. public class ServiceHealthIssueCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/ServicePrincipalCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ServicePrincipalCollectionResponse.cs index 26def44ab62..ea6f3f4df37 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePrincipalCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePrincipalCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Casts the previous resource to servicePrincipal. public class ServicePrincipalCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessageCollectionResponse.cs index be56383c9ba..2e1bdea86c4 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessageCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessageCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the messages property of the microsoft.graph.serviceAnnouncement entity. public class ServiceUpdateMessageCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/SettingSourceType.cs b/src/Microsoft.Graph/Generated/Models/SettingSourceType.cs index 2cb46645327..cc315657633 100644 --- a/src/Microsoft.Graph/Generated/Models/SettingSourceType.cs +++ b/src/Microsoft.Graph/Generated/Models/SettingSourceType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SettingSourceType { DeviceConfiguration, DeviceIntent, diff --git a/src/Microsoft.Graph/Generated/Models/SharedInsight.cs b/src/Microsoft.Graph/Generated/Models/SharedInsight.cs index a77b5e78138..ff3a44f147a 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedInsight.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedInsight.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class SharedInsight : Entity, IParsable { /// Details about the shared item. Read only. public SharingDetail LastShared { diff --git a/src/Microsoft.Graph/Generated/Models/SharedPCAccountDeletionPolicyType.cs b/src/Microsoft.Graph/Generated/Models/SharedPCAccountDeletionPolicyType.cs index ffabb1dbfe5..df422295d4c 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedPCAccountDeletionPolicyType.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedPCAccountDeletionPolicyType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum SharedPCAccountDeletionPolicyType { /// Delete immediately. Immediate, diff --git a/src/Microsoft.Graph/Generated/Models/SharedPCAllowedAccountType.cs b/src/Microsoft.Graph/Generated/Models/SharedPCAllowedAccountType.cs index 020f781e703..f0b73a64794 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedPCAllowedAccountType.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedPCAllowedAccountType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum SharedPCAllowedAccountType { /// Only guest accounts. Guest, diff --git a/src/Microsoft.Graph/Generated/Models/SignIn.cs b/src/Microsoft.Graph/Generated/Models/SignIn.cs index 79936f76f44..7dc2097fac1 100644 --- a/src/Microsoft.Graph/Generated/Models/SignIn.cs +++ b/src/Microsoft.Graph/Generated/Models/SignIn.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class SignIn : Entity, IParsable { /// App name displayed in the Azure Portal. Supports $filter (eq and startsWith operators only). public string AppDisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/SignInCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SignInCollectionResponse.cs index 1956fd5cd26..fccd433ec66 100644 --- a/src/Microsoft.Graph/Generated/Models/SignInCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SignInCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the signIns property of the microsoft.graph.auditLogRoot entity. public class SignInCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/SignInFrequencyAuthenticationType.cs b/src/Microsoft.Graph/Generated/Models/SignInFrequencyAuthenticationType.cs index 620c019ffa4..2a81cc265bc 100644 --- a/src/Microsoft.Graph/Generated/Models/SignInFrequencyAuthenticationType.cs +++ b/src/Microsoft.Graph/Generated/Models/SignInFrequencyAuthenticationType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SignInFrequencyAuthenticationType { PrimaryAndSecondaryAuthentication, SecondaryAuthentication, diff --git a/src/Microsoft.Graph/Generated/Models/SignInFrequencyInterval.cs b/src/Microsoft.Graph/Generated/Models/SignInFrequencyInterval.cs index 746c5271f03..50ff4bbbb33 100644 --- a/src/Microsoft.Graph/Generated/Models/SignInFrequencyInterval.cs +++ b/src/Microsoft.Graph/Generated/Models/SignInFrequencyInterval.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SignInFrequencyInterval { TimeBased, EveryTime, diff --git a/src/Microsoft.Graph/Generated/Models/SigninFrequencyType.cs b/src/Microsoft.Graph/Generated/Models/SigninFrequencyType.cs index 329ac020a43..483097995f0 100644 --- a/src/Microsoft.Graph/Generated/Models/SigninFrequencyType.cs +++ b/src/Microsoft.Graph/Generated/Models/SigninFrequencyType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SigninFrequencyType { Days, Hours, diff --git a/src/Microsoft.Graph/Generated/Models/Simulation.cs b/src/Microsoft.Graph/Generated/Models/Simulation.cs index 9178964b33e..9610719e2ce 100644 --- a/src/Microsoft.Graph/Generated/Models/Simulation.cs +++ b/src/Microsoft.Graph/Generated/Models/Simulation.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Simulation : Entity, IParsable { /// The social engineering technique used in the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, credentialHarvesting, attachmentMalware, driveByUrl, linkInAttachment, linkToMalwareFile, unknownFutureValue. For more information on the types of social engineering attack techniques, see simulations. public SimulationAttackTechnique? AttackTechnique { diff --git a/src/Microsoft.Graph/Generated/Models/SimulationAttackTechnique.cs b/src/Microsoft.Graph/Generated/Models/SimulationAttackTechnique.cs index 8694846f1c5..fc659d3236b 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationAttackTechnique.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationAttackTechnique.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SimulationAttackTechnique { Unknown, CredentialHarvesting, diff --git a/src/Microsoft.Graph/Generated/Models/SimulationAttackType.cs b/src/Microsoft.Graph/Generated/Models/SimulationAttackType.cs index 71cfe10b38c..78931415ddc 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationAttackType.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationAttackType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SimulationAttackType { Unknown, Social, diff --git a/src/Microsoft.Graph/Generated/Models/SimulationAutomation.cs b/src/Microsoft.Graph/Generated/Models/SimulationAutomation.cs index a983ff775a2..54dfd0039fe 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationAutomation.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationAutomation.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class SimulationAutomation : Entity, IParsable { /// Identity of the user who created the attack simulation automation. public EmailIdentity CreatedBy { diff --git a/src/Microsoft.Graph/Generated/Models/SimulationAutomationRun.cs b/src/Microsoft.Graph/Generated/Models/SimulationAutomationRun.cs index 5c28be57242..0d6e34aa262 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationAutomationRun.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationAutomationRun.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class SimulationAutomationRun : Entity, IParsable { /// Date and time when the run ends in an attack simulation automation. public DateTimeOffset? EndDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/SimulationAutomationRunStatus.cs b/src/Microsoft.Graph/Generated/Models/SimulationAutomationRunStatus.cs index 9251415c482..0287d0c0146 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationAutomationRunStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationAutomationRunStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SimulationAutomationRunStatus { Unknown, Running, diff --git a/src/Microsoft.Graph/Generated/Models/SimulationAutomationStatus.cs b/src/Microsoft.Graph/Generated/Models/SimulationAutomationStatus.cs index fa242c28530..540ba5f5d14 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationAutomationStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationAutomationStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SimulationAutomationStatus { Unknown, Draft, diff --git a/src/Microsoft.Graph/Generated/Models/SimulationStatus.cs b/src/Microsoft.Graph/Generated/Models/SimulationStatus.cs index f63afc56858..064ea3f9182 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SimulationStatus { Unknown, Draft, diff --git a/src/Microsoft.Graph/Generated/Models/SingleValueLegacyExtendedProperty.cs b/src/Microsoft.Graph/Generated/Models/SingleValueLegacyExtendedProperty.cs index 2c3bce09314..0ac239ccaf3 100644 --- a/src/Microsoft.Graph/Generated/Models/SingleValueLegacyExtendedProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/SingleValueLegacyExtendedProperty.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class SingleValueLegacyExtendedProperty : Entity, IParsable { /// A property value. public string Value { diff --git a/src/Microsoft.Graph/Generated/Models/SiteSecurityLevel.cs b/src/Microsoft.Graph/Generated/Models/SiteSecurityLevel.cs index ae6feebc01f..2f7a311cade 100644 --- a/src/Microsoft.Graph/Generated/Models/SiteSecurityLevel.cs +++ b/src/Microsoft.Graph/Generated/Models/SiteSecurityLevel.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum SiteSecurityLevel { /// User Defined, default value, no intent. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/StagedFeatureName.cs b/src/Microsoft.Graph/Generated/Models/StagedFeatureName.cs index a001ace9b4a..522489a13fc 100644 --- a/src/Microsoft.Graph/Generated/Models/StagedFeatureName.cs +++ b/src/Microsoft.Graph/Generated/Models/StagedFeatureName.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum StagedFeatureName { PassthroughAuthentication, SeamlessSso, diff --git a/src/Microsoft.Graph/Generated/Models/StateManagementSetting.cs b/src/Microsoft.Graph/Generated/Models/StateManagementSetting.cs index c454a8628f0..168b8dd4728 100644 --- a/src/Microsoft.Graph/Generated/Models/StateManagementSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/StateManagementSetting.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum StateManagementSetting { /// Not configured. NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/Status.cs b/src/Microsoft.Graph/Generated/Models/Status.cs index 8333470dae3..6bac914640f 100644 --- a/src/Microsoft.Graph/Generated/Models/Status.cs +++ b/src/Microsoft.Graph/Generated/Models/Status.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum Status { Active, Updated, diff --git a/src/Microsoft.Graph/Generated/Models/StringCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/StringCollectionResponse.cs index 744849a659f..767fc499429 100644 --- a/src/Microsoft.Graph/Generated/Models/StringCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/StringCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of application entities. public class StringCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStage.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStage.cs index 90deb0a5eff..5d91f48cc94 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStage.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStage.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SubjectRightsRequestStage { ContentRetrieval, ContentReview, diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStageStatus.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStageStatus.cs index 1b91e4c4a1d..8b45aba57c5 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStageStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStageStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SubjectRightsRequestStageStatus { NotStarted, Current, diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStatus.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStatus.cs index 68959a2c0ae..e5c0cfb27f9 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SubjectRightsRequestStatus { Active, Closed, diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestType.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestType.cs index 60bcdfd9dd7..21502939803 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestType.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum SubjectRightsRequestType { Export, Delete, diff --git a/src/Microsoft.Graph/Generated/Models/Subscription.cs b/src/Microsoft.Graph/Generated/Models/Subscription.cs index 48132f27e79..fbe5ed3ee21 100644 --- a/src/Microsoft.Graph/Generated/Models/Subscription.cs +++ b/src/Microsoft.Graph/Generated/Models/Subscription.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class Subscription : Entity, IParsable { /// Optional. Identifier of the application used to create the subscription. Read-only. public string ApplicationId { diff --git a/src/Microsoft.Graph/Generated/Models/TaskStatus.cs b/src/Microsoft.Graph/Generated/Models/TaskStatus.cs index fe277591f56..9af7195611e 100644 --- a/src/Microsoft.Graph/Generated/Models/TaskStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/TaskStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum TaskStatus { NotStarted, InProgress, diff --git a/src/Microsoft.Graph/Generated/Models/Team.cs b/src/Microsoft.Graph/Generated/Models/Team.cs index d7642e738ba..a5ebcea9660 100644 --- a/src/Microsoft.Graph/Generated/Models/Team.cs +++ b/src/Microsoft.Graph/Generated/Models/Team.cs @@ -115,7 +115,7 @@ public TeamSummary Summary { get { return BackingStore?.Get("summary"); } set { BackingStore?.Set("summary", value); } } - /// The tags property + /// The tags associated with the team. public List Tags { get { return BackingStore?.Get>("tags"); } set { BackingStore?.Set("tags", value); } diff --git a/src/Microsoft.Graph/Generated/Models/TeamInfo.cs b/src/Microsoft.Graph/Generated/Models/TeamInfo.cs index 8feb9b33fd2..1d1143dfd2b 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamInfo.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class TeamInfo : Entity, IParsable { /// The name of the team. public string DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/TeamSpecialization.cs b/src/Microsoft.Graph/Generated/Models/TeamSpecialization.cs index 8b51adf802b..73da4e2e1c6 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamSpecialization.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamSpecialization.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum TeamSpecialization { None, EducationStandard, diff --git a/src/Microsoft.Graph/Generated/Models/TeamVisibilityType.cs b/src/Microsoft.Graph/Generated/Models/TeamVisibilityType.cs index 9770d7bde7e..baea52764a4 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamVisibilityType.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamVisibilityType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum TeamVisibilityType { Private, Public, diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppCollectionResponse.cs index ada99a2dad9..8d5bef38428 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the teamsApps property of the microsoft.graph.appCatalogs entity. public class TeamsAppCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs index bb00a3e5521..fab3aabb2bc 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class TeamsAppDefinition : Entity, IParsable { /// The details of the bot specified in the Teams app manifest. public TeamworkBot Bot { diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDistributionMethod.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDistributionMethod.cs index 5b5c4136891..5bc1bcaeca1 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppDistributionMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDistributionMethod.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum TeamsAppDistributionMethod { Store, Organization, diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppInstallation.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppInstallation.cs index 38d43d8bc8d..bfe3722031a 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppInstallation.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppInstallation.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class TeamsAppInstallation : Entity, IParsable { /// The app that is installed. public Microsoft.Graph.Models.TeamsApp TeamsApp { diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppInstallationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppInstallationCollectionResponse.cs index c92bc17f527..5238afc7047 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppInstallationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppInstallationCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the installedApps property of the microsoft.graph.chat entity. public class TeamsAppInstallationCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppPublishingState.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppPublishingState.cs index 66a92b76208..1ee3977c5c4 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppPublishingState.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppPublishingState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum TeamsAppPublishingState { Submitted, Rejected, diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperation.cs b/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperation.cs index 501a2ab274b..e6534541219 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperation.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class TeamsAsyncOperation : Entity, IParsable { /// Number of times the operation was attempted before being marked successful or failed. public int? AttemptsCount { diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperationStatus.cs b/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperationStatus.cs index 2b116efaca9..913f93d96de 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperationStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperationStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum TeamsAsyncOperationStatus { Invalid, NotStarted, diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperationType.cs b/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperationType.cs index 9369409678d..267cb925bf3 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperationType.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperationType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum TeamsAsyncOperationType { Invalid, CloneTeam, diff --git a/src/Microsoft.Graph/Generated/Models/TeamsTab.cs b/src/Microsoft.Graph/Generated/Models/TeamsTab.cs index 857a023e06a..45a694b12bb 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsTab.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsTab.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class TeamsTab : Entity, IParsable { /// Container for custom settings applied to a tab. The tab is considered configured only once this property is set. public TeamsTabConfiguration Configuration { diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkApplicationIdentityType.cs b/src/Microsoft.Graph/Generated/Models/TeamworkApplicationIdentityType.cs index f2fe50328a3..345f029085f 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkApplicationIdentityType.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkApplicationIdentityType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum TeamworkApplicationIdentityType { AadApplication, Bot, diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkCallEventType.cs b/src/Microsoft.Graph/Generated/Models/TeamworkCallEventType.cs index c8dd657f48d..b43f33aef05 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkCallEventType.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkCallEventType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum TeamworkCallEventType { Call, Meeting, diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkConversationIdentityType.cs b/src/Microsoft.Graph/Generated/Models/TeamworkConversationIdentityType.cs index d1cfbd5605c..bbb4f654c2c 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkConversationIdentityType.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkConversationIdentityType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum TeamworkConversationIdentityType { Team, Channel, diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkHostedContent.cs b/src/Microsoft.Graph/Generated/Models/TeamworkHostedContent.cs index 4f6a794ef05..07346f64501 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkHostedContent.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkHostedContent.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class TeamworkHostedContent : Entity, IParsable { /// Write only. Bytes for the hosted content (such as images). public byte[] ContentBytes { diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkTag.cs b/src/Microsoft.Graph/Generated/Models/TeamworkTag.cs index 6bdd16f0275..98f091455c2 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkTag.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkTag.cs @@ -4,34 +4,34 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class TeamworkTag : Entity, IParsable { - /// The description property + /// The description of the tag as it will appear to the user in Microsoft Teams. public string Description { get { return BackingStore?.Get("description"); } set { BackingStore?.Set("description", value); } } - /// The displayName property + /// The name of the tag as it will appear to the user in Microsoft Teams. public string DisplayName { get { return BackingStore?.Get("displayName"); } set { BackingStore?.Set("displayName", value); } } - /// The memberCount property + /// The number of users assigned to the tag. public int? MemberCount { get { return BackingStore?.Get("memberCount"); } set { BackingStore?.Set("memberCount", value); } } - /// The members property + /// Users assigned to the tag. public List Members { get { return BackingStore?.Get>("members"); } set { BackingStore?.Set("members", value); } } - /// The tagType property + /// The type of the tag. Default is standard. public TeamworkTagType? TagType { get { return BackingStore?.Get("tagType"); } set { BackingStore?.Set("tagType", value); } } - /// The teamId property + /// ID of the team in which the tag is defined. public string TeamId { get { return BackingStore?.Get("teamId"); } set { BackingStore?.Set("teamId", value); } diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkTagMember.cs b/src/Microsoft.Graph/Generated/Models/TeamworkTagMember.cs index 34abb4a2e4c..982864078d4 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkTagMember.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkTagMember.cs @@ -4,19 +4,19 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class TeamworkTagMember : Entity, IParsable { - /// The displayName property + /// The member's display name. public string DisplayName { get { return BackingStore?.Get("displayName"); } set { BackingStore?.Set("displayName", value); } } - /// The tenantId property + /// The ID of the tenant that the tag member is a part of. public string TenantId { get { return BackingStore?.Get("tenantId"); } set { BackingStore?.Set("tenantId", value); } } - /// The userId property + /// The user ID of the member. public string UserId { get { return BackingStore?.Get("userId"); } set { BackingStore?.Set("userId", value); } diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkTagType.cs b/src/Microsoft.Graph/Generated/Models/TeamworkTagType.cs index ad9e4d25f11..9bcd510da5e 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkTagType.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkTagType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum TeamworkTagType { Standard, UnknownFutureValue, diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkUserIdentityType.cs b/src/Microsoft.Graph/Generated/Models/TeamworkUserIdentityType.cs index 444d11c1890..42c4c337ab1 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkUserIdentityType.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkUserIdentityType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum TeamworkUserIdentityType { AadUser, OnPremiseAadUser, diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/Group.cs b/src/Microsoft.Graph/Generated/Models/TermStore/Group.cs index 902fa5110cd..b984488193f 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/Group.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/Group.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.TermStore { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class Group : Entity, IParsable { /// Date and time of the group creation. Read-only. public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/Relation.cs b/src/Microsoft.Graph/Generated/Models/TermStore/Relation.cs index 6c5a2e69c27..5d7295eb149 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/Relation.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/Relation.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models.TermStore { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class Relation : Entity, IParsable { /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. public Term FromTerm { diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/RelationType.cs b/src/Microsoft.Graph/Generated/Models/TermStore/RelationType.cs index dcc46008ff9..30a4664c20e 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/RelationType.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/RelationType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.TermStore { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum RelationType { Pin, Reuse, diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/TermGroupScope.cs b/src/Microsoft.Graph/Generated/Models/TermStore/TermGroupScope.cs index a27abb2be76..74c7252b223 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/TermGroupScope.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/TermGroupScope.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models.TermStore { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum TermGroupScope { Global, System, diff --git a/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs b/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs index 77341766b9b..f1f76fc50de 100644 --- a/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs +++ b/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs @@ -4,7 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// A termsAndConditions entity represents the metadata and contents of a given Terms and Conditions (T&C) policy. T&C policies’ contents are presented to users upon their first attempt to enroll into Intune and subsequently upon edits where an administrator has required re-acceptance. They enable administrators to communicate the provisions to which a user must agree in order to have devices enrolled into Intune. public class TermsAndConditions : Entity, IParsable { /// Administrator-supplied explanation of the terms and conditions, typically describing what it means to accept the terms and conditions set out in the T&C policy. This is shown to the user on prompts to accept the T&C policy. public string AcceptanceStatement { diff --git a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentContentType.cs b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentContentType.cs index b8043aa94a2..768434b4b7c 100644 --- a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentContentType.cs +++ b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentContentType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ThreatAssessmentContentType { Mail, Url, diff --git a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequest.cs b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequest.cs index cfe818a7859..dd11b183dcf 100644 --- a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequest.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class ThreatAssessmentRequest : Entity, IParsable { /// The category property public ThreatCategory? Category { diff --git a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequestSource.cs b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequestSource.cs index a4429888c51..db7dd8ade57 100644 --- a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequestSource.cs +++ b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequestSource.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ThreatAssessmentRequestSource { Undefined, User, diff --git a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResult.cs b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResult.cs index 411d634669d..ed7cf3d8493 100644 --- a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResult.cs +++ b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResult.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class ThreatAssessmentResult : Entity, IParsable { /// 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. public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResultType.cs b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResultType.cs index 092cae588ef..04e3bc6c0c9 100644 --- a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResultType.cs +++ b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResultType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ThreatAssessmentResultType { CheckPolicy, Rescan, diff --git a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentStatus.cs b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentStatus.cs index 1908a67b4ba..929eaf56fbc 100644 --- a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ThreatAssessmentStatus { Pending, Completed, diff --git a/src/Microsoft.Graph/Generated/Models/ThreatCategory.cs b/src/Microsoft.Graph/Generated/Models/ThreatCategory.cs index 34d51d5afeb..2a09980d5c2 100644 --- a/src/Microsoft.Graph/Generated/Models/ThreatCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/ThreatCategory.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ThreatCategory { Undefined, Spam, diff --git a/src/Microsoft.Graph/Generated/Models/ThreatExpectedAssessment.cs b/src/Microsoft.Graph/Generated/Models/ThreatExpectedAssessment.cs index e6343d82483..b31774faf69 100644 --- a/src/Microsoft.Graph/Generated/Models/ThreatExpectedAssessment.cs +++ b/src/Microsoft.Graph/Generated/Models/ThreatExpectedAssessment.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum ThreatExpectedAssessment { Block, Unblock, diff --git a/src/Microsoft.Graph/Generated/Models/TodoTask.cs b/src/Microsoft.Graph/Generated/Models/TodoTask.cs index 0c1f2c7966f..a6075d0e80e 100644 --- a/src/Microsoft.Graph/Generated/Models/TodoTask.cs +++ b/src/Microsoft.Graph/Generated/Models/TodoTask.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class TodoTask : Entity, IParsable { /// The attachments property public List Attachments { diff --git a/src/Microsoft.Graph/Generated/Models/TodoTaskList.cs b/src/Microsoft.Graph/Generated/Models/TodoTaskList.cs index 5fb0cac5c3e..82003fa93ab 100644 --- a/src/Microsoft.Graph/Generated/Models/TodoTaskList.cs +++ b/src/Microsoft.Graph/Generated/Models/TodoTaskList.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class TodoTaskList : Entity, IParsable { /// The name of the task list. public string DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/TokenIssuerType.cs b/src/Microsoft.Graph/Generated/Models/TokenIssuerType.cs index abb0507cc05..927931f43b6 100644 --- a/src/Microsoft.Graph/Generated/Models/TokenIssuerType.cs +++ b/src/Microsoft.Graph/Generated/Models/TokenIssuerType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum TokenIssuerType { AzureAD, ADFederationServices, diff --git a/src/Microsoft.Graph/Generated/Models/TokenLifetimePolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TokenLifetimePolicyCollectionResponse.cs index 372ead69246..95e9027412a 100644 --- a/src/Microsoft.Graph/Generated/Models/TokenLifetimePolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TokenLifetimePolicyCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the tokenLifetimePolicies property of the microsoft.graph.application entity. public class TokenLifetimePolicyCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/Tone.cs b/src/Microsoft.Graph/Generated/Models/Tone.cs index 043eb29da43..d568377dc66 100644 --- a/src/Microsoft.Graph/Generated/Models/Tone.cs +++ b/src/Microsoft.Graph/Generated/Models/Tone.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum Tone { Tone0, Tone1, diff --git a/src/Microsoft.Graph/Generated/Models/Trending.cs b/src/Microsoft.Graph/Generated/Models/Trending.cs index 2bccf74f53e..9e10ba6ab09 100644 --- a/src/Microsoft.Graph/Generated/Models/Trending.cs +++ b/src/Microsoft.Graph/Generated/Models/Trending.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class Trending : Entity, IParsable { /// The lastModifiedDateTime property public DateTimeOffset? LastModifiedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignment.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignment.cs index abc81d05026..d7bccc41101 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignment.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class UnifiedRoleAssignment : Entity, IParsable { /// Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand. public Microsoft.Graph.Models.AppScope AppScope { diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicy.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicy.cs index 143eddcb7fb..76ee75b47e4 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicy.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class UnifiedRoleManagementPolicy : Entity, IParsable { /// Description for the policy. public string Description { diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAssignment.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAssignment.cs index f1316f8b41b..4aa549cbd96 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAssignment.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class UnifiedRoleManagementPolicyAssignment : Entity, IParsable { /// The policy that's associated with a policy assignment. Supports $expand and a nested $expand of the rules and effectiveRules relationships for the policy. public UnifiedRoleManagementPolicy Policy { diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRule.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRule.cs index 33b84d7ea42..bdb8c972766 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRule.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRule.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class UnifiedRoleManagementPolicyRule : Entity, IParsable { /// Defines details of scope that's targeted by role management policy rule. The details can include the principal type, the role assignment type, and actions affecting a role. Supports $filter (eq, ne). public UnifiedRoleManagementPolicyRuleTarget Target { diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRuleTargetOperations.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRuleTargetOperations.cs index af727fb532e..4c9cc2e95d1 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRuleTargetOperations.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRuleTargetOperations.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum UnifiedRoleManagementPolicyRuleTargetOperations { All, Activate, diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleBase.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleBase.cs index 5b16e7c9cb3..4f85341896f 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleBase.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleBase.cs @@ -5,6 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Provides operations to manage the collection of agreement entities. public class UnifiedRoleScheduleBase : Entity, IParsable { /// Read-only property with details of the app-specific scope when the role eligibility or assignment is scoped to an app. Nullable. public Microsoft.Graph.Models.AppScope AppScope { diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleInstanceBase.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleInstanceBase.cs index ec7b1a6235a..8671c1fe763 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleInstanceBase.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleInstanceBase.cs @@ -5,7 +5,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class UnifiedRoleScheduleInstanceBase : Entity, IParsable { /// Read-only property with details of the app-specific scope when the assignment or role eligibility is scoped to an app. Nullable. public Microsoft.Graph.Models.AppScope AppScope { diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleRequestActions.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleRequestActions.cs index 2b1160a7c1a..f2ec160c933 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleRequestActions.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleRequestActions.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum UnifiedRoleScheduleRequestActions { AdminAssign, AdminUpdate, diff --git a/src/Microsoft.Graph/Generated/Models/UsedInsight.cs b/src/Microsoft.Graph/Generated/Models/UsedInsight.cs index 64053e0455e..2fb9485be92 100644 --- a/src/Microsoft.Graph/Generated/Models/UsedInsight.cs +++ b/src/Microsoft.Graph/Generated/Models/UsedInsight.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class UsedInsight : Entity, IParsable { /// Information about when the item was last viewed or modified by the user. Read only. public UsageDetails LastUsed { diff --git a/src/Microsoft.Graph/Generated/Models/UserActivity.cs b/src/Microsoft.Graph/Generated/Models/UserActivity.cs index fc4c617de07..8c3653c799b 100644 --- a/src/Microsoft.Graph/Generated/Models/UserActivity.cs +++ b/src/Microsoft.Graph/Generated/Models/UserActivity.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class UserActivity : Entity, IParsable { /// Required. URL used to launch the activity in the best native experience represented by the appId. Might launch a web-based app if no native app exists. public string ActivationUrl { diff --git a/src/Microsoft.Graph/Generated/Models/UserCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserCollectionResponse.cs index c666d3f0fa7..d2214a73409 100644 --- a/src/Microsoft.Graph/Generated/Models/UserCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserCollectionResponse.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// Casts the previous resource to user. public class UserCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDevicePerformance.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDevicePerformance.cs index db3cf4a7bfd..8c49eab6bac 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDevicePerformance.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDevicePerformance.cs @@ -5,17 +5,17 @@ using System.Linq; namespace Microsoft.Graph.Models { public class UserExperienceAnalyticsDevicePerformance : Entity, IParsable { - /// Average (mean) number of Blue Screens per device in the last 14 days. Valid values 0 to 9999999 + /// Average (mean) number of Blue Screens per device in the last 30 days. Valid values 0 to 9999999 public double? AverageBlueScreens { get { return BackingStore?.Get("averageBlueScreens"); } set { BackingStore?.Set("averageBlueScreens", value); } } - /// Average (mean) number of Restarts per device in the last 14 days. Valid values 0 to 9999999 + /// Average (mean) number of Restarts per device in the last 30 days. Valid values 0 to 9999999 public double? AverageRestarts { get { return BackingStore?.Get("averageRestarts"); } set { BackingStore?.Set("averageRestarts", value); } } - /// Number of Blue Screens in the last 14 days. Valid values 0 to 9999999 + /// Number of Blue Screens in the last 30 days. Valid values 0 to 9999999 public int? BlueScreenCount { get { return BackingStore?.Get("blueScreenCount"); } set { BackingStore?.Set("blueScreenCount", value); } @@ -95,7 +95,7 @@ public int? ResponsiveDesktopTimeInMs { get { return BackingStore?.Get("responsiveDesktopTimeInMs"); } set { BackingStore?.Set("responsiveDesktopTimeInMs", value); } } - /// Number of Restarts in the last 14 days. Valid values 0 to 9999999 + /// Number of Restarts in the last 30 days. Valid values 0 to 9999999 public int? RestartCount { get { return BackingStore?.Get("restartCount"); } set { BackingStore?.Set("restartCount", value); } diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsHealthState.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsHealthState.cs index d99e64bbbb5..e1e086c6742 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsHealthState.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsHealthState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum UserExperienceAnalyticsHealthState { Unknown, InsufficientData, diff --git a/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfiguration.cs b/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfiguration.cs index 317b9353a7e..8ca7289f69d 100644 --- a/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfiguration.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class UserFlowLanguageConfiguration : Entity, IParsable { /// Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. public List DefaultPages { diff --git a/src/Microsoft.Graph/Generated/Models/UserFlowLanguagePage.cs b/src/Microsoft.Graph/Generated/Models/UserFlowLanguagePage.cs index 7fcf226e165..fb49922aa1d 100644 --- a/src/Microsoft.Graph/Generated/Models/UserFlowLanguagePage.cs +++ b/src/Microsoft.Graph/Generated/Models/UserFlowLanguagePage.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class UserFlowLanguagePage : Entity, IParsable { /// /// Instantiates a new userFlowLanguagePage and sets the default values. diff --git a/src/Microsoft.Graph/Generated/Models/UserFlowType.cs b/src/Microsoft.Graph/Generated/Models/UserFlowType.cs index bce7cbebd41..a26158bb9bb 100644 --- a/src/Microsoft.Graph/Generated/Models/UserFlowType.cs +++ b/src/Microsoft.Graph/Generated/Models/UserFlowType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum UserFlowType { SignUp, SignIn, diff --git a/src/Microsoft.Graph/Generated/Models/UserPurpose.cs b/src/Microsoft.Graph/Generated/Models/UserPurpose.cs index 62276106942..656d141d4a5 100644 --- a/src/Microsoft.Graph/Generated/Models/UserPurpose.cs +++ b/src/Microsoft.Graph/Generated/Models/UserPurpose.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum UserPurpose { User, Linked, diff --git a/src/Microsoft.Graph/Generated/Models/VisibilitySetting.cs b/src/Microsoft.Graph/Generated/Models/VisibilitySetting.cs index c8bfef4b25b..0d49b7c2fa3 100644 --- a/src/Microsoft.Graph/Generated/Models/VisibilitySetting.cs +++ b/src/Microsoft.Graph/Generated/Models/VisibilitySetting.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum VisibilitySetting { /// Not configured. NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/VolumeType.cs b/src/Microsoft.Graph/Generated/Models/VolumeType.cs index 8b5f281b72c..28d129b039f 100644 --- a/src/Microsoft.Graph/Generated/Models/VolumeType.cs +++ b/src/Microsoft.Graph/Generated/Models/VolumeType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum VolumeType { OperatingSystemVolume, FixedDataVolume, diff --git a/src/Microsoft.Graph/Generated/Models/VppTokenAccountType.cs b/src/Microsoft.Graph/Generated/Models/VppTokenAccountType.cs index 1dff08f0ca4..0351a5754d8 100644 --- a/src/Microsoft.Graph/Generated/Models/VppTokenAccountType.cs +++ b/src/Microsoft.Graph/Generated/Models/VppTokenAccountType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum VppTokenAccountType { /// Apple Volume Purchase Program token associated with an business program. Business, diff --git a/src/Microsoft.Graph/Generated/Models/VppTokenState.cs b/src/Microsoft.Graph/Generated/Models/VppTokenState.cs index 26fc6940266..95dd8995db9 100644 --- a/src/Microsoft.Graph/Generated/Models/VppTokenState.cs +++ b/src/Microsoft.Graph/Generated/Models/VppTokenState.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum VppTokenState { /// Default state. Unknown, diff --git a/src/Microsoft.Graph/Generated/Models/VppTokenSyncStatus.cs b/src/Microsoft.Graph/Generated/Models/VppTokenSyncStatus.cs index 01b29243f83..bbed0e366bb 100644 --- a/src/Microsoft.Graph/Generated/Models/VppTokenSyncStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/VppTokenSyncStatus.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum VppTokenSyncStatus { /// Default status. None, diff --git a/src/Microsoft.Graph/Generated/Models/WebBrowserCookieSettings.cs b/src/Microsoft.Graph/Generated/Models/WebBrowserCookieSettings.cs index cc14e51607e..3ccec3a7aca 100644 --- a/src/Microsoft.Graph/Generated/Models/WebBrowserCookieSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/WebBrowserCookieSettings.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WebBrowserCookieSettings { /// Browser default value, no intent. BrowserDefault, diff --git a/src/Microsoft.Graph/Generated/Models/WebsiteType.cs b/src/Microsoft.Graph/Generated/Models/WebsiteType.cs index c7b76c83270..d943014cd98 100644 --- a/src/Microsoft.Graph/Generated/Models/WebsiteType.cs +++ b/src/Microsoft.Graph/Generated/Models/WebsiteType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum WebsiteType { Other, Home, diff --git a/src/Microsoft.Graph/Generated/Models/WeekIndex.cs b/src/Microsoft.Graph/Generated/Models/WeekIndex.cs index 42e82c6617a..4aa3fb853f5 100644 --- a/src/Microsoft.Graph/Generated/Models/WeekIndex.cs +++ b/src/Microsoft.Graph/Generated/Models/WeekIndex.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum WeekIndex { First, Second, diff --git a/src/Microsoft.Graph/Generated/Models/WeeklySchedule.cs b/src/Microsoft.Graph/Generated/Models/WeeklySchedule.cs index 64df3d1fd0d..b4a2e02effb 100644 --- a/src/Microsoft.Graph/Generated/Models/WeeklySchedule.cs +++ b/src/Microsoft.Graph/Generated/Models/WeeklySchedule.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WeeklySchedule { /// User Defined, default value, no intent. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/WelcomeScreenMeetingInformation.cs b/src/Microsoft.Graph/Generated/Models/WelcomeScreenMeetingInformation.cs index 4e622f03650..a70c71cb24b 100644 --- a/src/Microsoft.Graph/Generated/Models/WelcomeScreenMeetingInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/WelcomeScreenMeetingInformation.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WelcomeScreenMeetingInformation { /// User Defined, default value, no intent. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/WellknownListName.cs b/src/Microsoft.Graph/Generated/Models/WellknownListName.cs index 6fa81a263b1..efaa9e6bc16 100644 --- a/src/Microsoft.Graph/Generated/Models/WellknownListName.cs +++ b/src/Microsoft.Graph/Generated/Models/WellknownListName.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum WellknownListName { None, DefaultList, diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppDeliveryOptimizationPriority.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppDeliveryOptimizationPriority.cs index 53388fa691b..75fe6dead4e 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppDeliveryOptimizationPriority.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppDeliveryOptimizationPriority.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum Win32LobAppDeliveryOptimizationPriority { /// Not configured or background normal delivery optimization priority. NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppFileSystemOperationType.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppFileSystemOperationType.cs index 862e8123be7..a2fee3e767f 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppFileSystemOperationType.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppFileSystemOperationType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum Win32LobAppFileSystemOperationType { /// Not configured. NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppMsiPackageType.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppMsiPackageType.cs index 2882ab861a9..6a835d61171 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppMsiPackageType.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppMsiPackageType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum Win32LobAppMsiPackageType { /// Indicates a per-machine app package. PerMachine, diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppNotification.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppNotification.cs index 1acec4d954f..59e1d9641b1 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppNotification.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppNotification.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum Win32LobAppNotification { /// Show all notifications. ShowAll, diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppPowerShellScriptRuleOperationType.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppPowerShellScriptRuleOperationType.cs index bda6f620c83..3401272f72b 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppPowerShellScriptRuleOperationType.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppPowerShellScriptRuleOperationType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum Win32LobAppPowerShellScriptRuleOperationType { /// Not configured. NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppRegistryRuleOperationType.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppRegistryRuleOperationType.cs index aefa5454280..11c2a4104cf 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppRegistryRuleOperationType.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppRegistryRuleOperationType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum Win32LobAppRegistryRuleOperationType { /// Not configured. NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppRestartBehavior.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppRestartBehavior.cs index d115b395608..91542bd17ad 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppRestartBehavior.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppRestartBehavior.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum Win32LobAppRestartBehavior { /// Intune will restart the device after running the app installation if the operation returns a reboot code. BasedOnReturnCode, diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppReturnCodeType.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppReturnCodeType.cs index 7cc40f3a62f..67bacca5fcb 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppReturnCodeType.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppReturnCodeType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum Win32LobAppReturnCodeType { /// Failed. Failed, diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppRuleOperator.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppRuleOperator.cs index 7cc1ab7f9c8..9f6d63dab3f 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppRuleOperator.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppRuleOperator.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum Win32LobAppRuleOperator { /// Not configured. NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppRuleType.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppRuleType.cs index d18baeaabee..6d6b3c6085d 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppRuleType.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppRuleType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum Win32LobAppRuleType { /// Detection rule. Detection, diff --git a/src/Microsoft.Graph/Generated/Models/Windows10EditionType.cs b/src/Microsoft.Graph/Generated/Models/Windows10EditionType.cs index 4019a29e553..cfb0a36047e 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10EditionType.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10EditionType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum Windows10EditionType { /// Windows 10 Enterprise Windows10Enterprise, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsArchitecture.cs b/src/Microsoft.Graph/Generated/Models/WindowsArchitecture.cs index 1cb3b1716ba..c640a8b2eff 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsArchitecture.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsArchitecture.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WindowsArchitecture { /// No flags set. None, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDeliveryOptimizationMode.cs b/src/Microsoft.Graph/Generated/Models/WindowsDeliveryOptimizationMode.cs index 3b82b679ec0..340872b285c 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDeliveryOptimizationMode.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDeliveryOptimizationMode.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WindowsDeliveryOptimizationMode { /// Allow the user to set. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDeviceType.cs b/src/Microsoft.Graph/Generated/Models/WindowsDeviceType.cs index 56a89f87a59..80eea4ff656 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDeviceType.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDeviceType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WindowsDeviceType { /// No flags set. None, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessPinUsage.cs b/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessPinUsage.cs index defd28fd922..60d36ecc391 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessPinUsage.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessPinUsage.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum WindowsHelloForBusinessPinUsage { /// Allowed the usage of certain pin rule Allowed, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionEnforcementLevel.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionEnforcementLevel.cs index 2b8c2f6b061..64c689047fd 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionEnforcementLevel.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionEnforcementLevel.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum WindowsInformationProtectionEnforcementLevel { /// No protection enforcement NoProtection, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionPinCharacterRequirements.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionPinCharacterRequirements.cs index 18b05ac424c..15407147137 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionPinCharacterRequirements.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionPinCharacterRequirements.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum WindowsInformationProtectionPinCharacterRequirements { /// Not allow NotAllow, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsSpotlightEnablementSettings.cs b/src/Microsoft.Graph/Generated/Models/WindowsSpotlightEnablementSettings.cs index 0fe7ae7f928..ab6237ada6c 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsSpotlightEnablementSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsSpotlightEnablementSettings.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WindowsSpotlightEnablementSettings { /// Spotlight on lock screen is not configured NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsStartMenuAppListVisibilityType.cs b/src/Microsoft.Graph/Generated/Models/WindowsStartMenuAppListVisibilityType.cs index f24ad0067a0..f6c1da657ef 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsStartMenuAppListVisibilityType.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsStartMenuAppListVisibilityType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WindowsStartMenuAppListVisibilityType { /// User defined. Default value. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsStartMenuModeType.cs b/src/Microsoft.Graph/Generated/Models/WindowsStartMenuModeType.cs index 98bdf918c4f..8c2156a6001 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsStartMenuModeType.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsStartMenuModeType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WindowsStartMenuModeType { /// User defined. Default value. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessUpdateWeeks.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessUpdateWeeks.cs index 57b646a65ac..2695da36b11 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessUpdateWeeks.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessUpdateWeeks.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WindowsUpdateForBusinessUpdateWeeks { /// Allow the user to set. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdateNotificationDisplayOption.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdateNotificationDisplayOption.cs index 130f06f1710..eb116ca7906 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdateNotificationDisplayOption.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdateNotificationDisplayOption.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WindowsUpdateNotificationDisplayOption { /// Not configured NotConfigured, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdateType.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdateType.cs index fec67ec8d05..c8a67180d16 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdateType.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdateType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WindowsUpdateType { /// Allow the user to set. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUserAccountControlSettings.cs b/src/Microsoft.Graph/Generated/Models/WindowsUserAccountControlSettings.cs index 6712e9549a5..49d684aeb46 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUserAccountControlSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUserAccountControlSettings.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public enum WindowsUserAccountControlSettings { /// User Defined, default value, no intent. UserDefined, diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChart.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChart.cs index 6bd165fc72a..b0fdef9a1d7 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChart.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChart.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class WorkbookChart : Entity, IParsable { /// Represents chart axes. Read-only. public WorkbookChartAxes Axes { diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartPoint.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartPoint.cs index 506d2074ac6..d66219a5603 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartPoint.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartPoint.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class WorkbookChartPoint : Entity, IParsable { /// Encapsulates the format properties chart point. Read-only. public WorkbookChartPointFormat Format { diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartSeries.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartSeries.cs index 14ebf6edc60..931218a4f9b 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartSeries.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartSeries.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class WorkbookChartSeries : Entity, IParsable { /// Represents the formatting of a chart series, which includes fill and line formatting. Read-only. public WorkbookChartSeriesFormat Format { diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookNamedItem.cs b/src/Microsoft.Graph/Generated/Models/WorkbookNamedItem.cs index af30c2795b5..f1ed7a4b9da 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookNamedItem.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookNamedItem.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class WorkbookNamedItem : Entity, IParsable { /// Represents the comment associated with this name. public string Comment { diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookPivotTable.cs b/src/Microsoft.Graph/Generated/Models/WorkbookPivotTable.cs index 7adcd256dda..742015d634d 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookPivotTable.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookPivotTable.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class WorkbookPivotTable : Entity, IParsable { /// Name of the PivotTable. public string Name { diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRangeBorder.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRangeBorder.cs index f1331a5d187..112d4d8ce92 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRangeBorder.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRangeBorder.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public class WorkbookRangeBorder : Entity, IParsable { /// HTML color code representing the color of the border line, of the form #RRGGBB (e.g. 'FFA500') or as a named HTML color (e.g. 'orange'). public string Color { diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookTable.cs b/src/Microsoft.Graph/Generated/Models/WorkbookTable.cs index a34117529c2..dddbc3b487f 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookTable.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookTable.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class WorkbookTable : Entity, IParsable { /// Represents a collection of all the columns in the table. Read-only. public List Columns { diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookTableColumn.cs b/src/Microsoft.Graph/Generated/Models/WorkbookTableColumn.cs index b48d3479770..849a67623da 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookTableColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookTableColumn.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class WorkbookTableColumn : Entity, IParsable { /// Retrieve the filter applied to the column. Read-only. public WorkbookFilter Filter { diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookTableRow.cs b/src/Microsoft.Graph/Generated/Models/WorkbookTableRow.cs index d9294775471..96db03dfcc7 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookTableRow.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookTableRow.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreementAcceptance entities. + /// Provides operations to manage the collection of agreement entities. public class WorkbookTableRow : Entity, IParsable { /// Returns the index number of the row within the rows collection of the table. Zero-indexed. Read-only. public int? Index { diff --git a/src/Microsoft.Graph/Generated/Models/X509CertificateAuthenticationMode.cs b/src/Microsoft.Graph/Generated/Models/X509CertificateAuthenticationMode.cs index 65593314685..c027309bec1 100644 --- a/src/Microsoft.Graph/Generated/Models/X509CertificateAuthenticationMode.cs +++ b/src/Microsoft.Graph/Generated/Models/X509CertificateAuthenticationMode.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum X509CertificateAuthenticationMode { X509CertificateSingleFactor, X509CertificateMultiFactor, diff --git a/src/Microsoft.Graph/Generated/Models/X509CertificateRuleType.cs b/src/Microsoft.Graph/Generated/Models/X509CertificateRuleType.cs index 62f25fcedd3..45bad86fe24 100644 --- a/src/Microsoft.Graph/Generated/Models/X509CertificateRuleType.cs +++ b/src/Microsoft.Graph/Generated/Models/X509CertificateRuleType.cs @@ -1,5 +1,5 @@ namespace Microsoft.Graph.Models { - /// Provides operations to manage the collection of agreement entities. + /// Provides operations to manage the collection of agreementAcceptance entities. public enum X509CertificateRuleType { IssuerSubject, PolicyOID, diff --git a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaResponse.cs index 47ff893c681..41a03d2a31f 100644 --- a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Oauth2PermissionGrants.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OAuth2PermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 04a0994927b..f34d80b2b94 100644 --- a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Organization.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsResponse.cs index ed3f5eba646..c7b492592f1 100644 --- a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Organization.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 91a1e8320d8..041e4bb86c4 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Organization.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index abe8783317f..c20697cf9ca 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Organization.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 674533adcf2..cb178053a46 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Organization.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 9893ebe3755..22559a8bdb0 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Organization.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 063b3e22115..bf60fa73359 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.PermissionGrants.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsResponse.cs index 3d5db87a01d..68b1eee16f7 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.PermissionGrants.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index d90569c64aa..826c3cbebbf 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.PermissionGrants.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 5e98ddff029..829090b429e 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.PermissionGrants.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 3792d9363e5..8469d695109 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.PermissionGrants.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs index abd19d6c675..aeb2b32d61a 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.PermissionGrants.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 3b8c350c34a..aa59b3cabee 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsResponse.cs index 9731fe59b47..bc8fb3e0288 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs index adef18b664a..ce358b89173 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -18,16 +18,16 @@ public class GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTim private string UrlTemplate { get; set; } /// /// Instantiates a new GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. - /// Usage: endDateTime='{endDateTime}' + /// Usage: endDateTime={endDateTime} /// Usage: groupId='{groupId}' /// Path parameters for the request /// The request adapter to use to execute the requests. - /// Usage: startDateTime='{startDateTime}' + /// Usage: startDateTime={startDateTime} /// public GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, DateTimeOffset? endDateTime = default, string groupId = default, DateTimeOffset? startDateTime = default) { _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/reports/microsoft.graph.getGroupArchivedPrintJobs(groupId='{groupId}',startDateTime='{startDateTime}',endDateTime='{endDateTime}'){?%24top,%24skip,%24search,%24filter,%24count}"; + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getGroupArchivedPrintJobs(groupId='{groupId}',startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}"; var urlTplParams = new Dictionary(pathParameters); urlTplParams.Add("endDateTime", endDateTime); urlTplParams.Add("groupId", groupId); @@ -43,7 +43,7 @@ public GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeReque public GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/reports/microsoft.graph.getGroupArchivedPrintJobs(groupId='{groupId}',startDateTime='{startDateTime}',endDateTime='{endDateTime}'){?%24top,%24skip,%24search,%24filter,%24count}"; + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getGroupArchivedPrintJobs(groupId='{groupId}',startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}"; var urlTplParams = new Dictionary(); urlTplParams.Add("request-raw-url", rawUrl); PathParameters = urlTplParams; diff --git a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse.cs index a6048cd8b5f..83cd907b151 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Reports.GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime { /// Provides operations to call the getGroupArchivedPrintJobs method. - public class GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse and sets the default values. - /// - public GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ArchivedPrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Reports/GetM365AppPlatformUserCountsWithPeriod/GetM365AppPlatformUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetM365AppPlatformUserCountsWithPeriod/GetM365AppPlatformUserCountsWithPeriodRequestBuilder.cs new file mode 100644 index 00000000000..0d10c810d86 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/GetM365AppPlatformUserCountsWithPeriod/GetM365AppPlatformUserCountsWithPeriodRequestBuilder.cs @@ -0,0 +1,95 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Reports.GetM365AppPlatformUserCountsWithPeriod { + /// Provides operations to call the getM365AppPlatformUserCounts method. + public class GetM365AppPlatformUserCountsWithPeriodRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new GetM365AppPlatformUserCountsWithPeriodRequestBuilder and sets the default values. + /// Path parameters for the request + /// Usage: period='{period}' + /// The request adapter to use to execute the requests. + /// + public GetM365AppPlatformUserCountsWithPeriodRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string period = default) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getM365AppPlatformUserCounts(period='{period}')"; + var urlTplParams = new Dictionary(pathParameters); + urlTplParams.Add("period", period); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new GetM365AppPlatformUserCountsWithPeriodRequestBuilder and sets the default values. + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + /// + public GetM365AppPlatformUserCountsWithPeriodRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getM365AppPlatformUserCounts(period='{period}')"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function getM365AppPlatformUserCounts + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new GetM365AppPlatformUserCountsWithPeriodRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function getM365AppPlatformUserCounts + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// Response handler to use in place of the default response handling provided by the core service + /// + public async Task GetAsync(Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + var requestInfo = CreateGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, responseHandler, errorMapping, cancellationToken); + } + /// Configuration for the request such as headers, query parameters, and middleware options. + public class GetM365AppPlatformUserCountsWithPeriodRequestBuilderGetRequestConfiguration { + /// Request headers + public IDictionary Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new getM365AppPlatformUserCountsWithPeriodRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GetM365AppPlatformUserCountsWithPeriodRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new Dictionary(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/GetM365AppUserCountsWithPeriod/GetM365AppUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetM365AppUserCountsWithPeriod/GetM365AppUserCountsWithPeriodRequestBuilder.cs new file mode 100644 index 00000000000..36e6ec4344c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/GetM365AppUserCountsWithPeriod/GetM365AppUserCountsWithPeriodRequestBuilder.cs @@ -0,0 +1,95 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Reports.GetM365AppUserCountsWithPeriod { + /// Provides operations to call the getM365AppUserCounts method. + public class GetM365AppUserCountsWithPeriodRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new GetM365AppUserCountsWithPeriodRequestBuilder and sets the default values. + /// Path parameters for the request + /// Usage: period='{period}' + /// The request adapter to use to execute the requests. + /// + public GetM365AppUserCountsWithPeriodRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string period = default) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getM365AppUserCounts(period='{period}')"; + var urlTplParams = new Dictionary(pathParameters); + urlTplParams.Add("period", period); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new GetM365AppUserCountsWithPeriodRequestBuilder and sets the default values. + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + /// + public GetM365AppUserCountsWithPeriodRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getM365AppUserCounts(period='{period}')"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function getM365AppUserCounts + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new GetM365AppUserCountsWithPeriodRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function getM365AppUserCounts + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// Response handler to use in place of the default response handling provided by the core service + /// + public async Task GetAsync(Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + var requestInfo = CreateGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, responseHandler, errorMapping, cancellationToken); + } + /// Configuration for the request such as headers, query parameters, and middleware options. + public class GetM365AppUserCountsWithPeriodRequestBuilderGetRequestConfiguration { + /// Request headers + public IDictionary Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new getM365AppUserCountsWithPeriodRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GetM365AppUserCountsWithPeriodRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new Dictionary(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithDate/GetM365AppUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithDate/GetM365AppUserDetailWithDateRequestBuilder.cs new file mode 100644 index 00000000000..3772d244fc0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithDate/GetM365AppUserDetailWithDateRequestBuilder.cs @@ -0,0 +1,95 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Reports.GetM365AppUserDetailWithDate { + /// Provides operations to call the getM365AppUserDetail method. + public class GetM365AppUserDetailWithDateRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new GetM365AppUserDetailWithDateRequestBuilder and sets the default values. + /// Usage: date={date} + /// Path parameters for the request + /// The request adapter to use to execute the requests. + /// + public GetM365AppUserDetailWithDateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, Date? date = default) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getM365AppUserDetail(date={date})"; + var urlTplParams = new Dictionary(pathParameters); + urlTplParams.Add("date", date); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new GetM365AppUserDetailWithDateRequestBuilder and sets the default values. + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + /// + public GetM365AppUserDetailWithDateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getM365AppUserDetail(date={date})"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function getM365AppUserDetail + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new GetM365AppUserDetailWithDateRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function getM365AppUserDetail + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// Response handler to use in place of the default response handling provided by the core service + /// + public async Task GetAsync(Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + var requestInfo = CreateGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, responseHandler, errorMapping, cancellationToken); + } + /// Configuration for the request such as headers, query parameters, and middleware options. + public class GetM365AppUserDetailWithDateRequestBuilderGetRequestConfiguration { + /// Request headers + public IDictionary Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new getM365AppUserDetailWithDateRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GetM365AppUserDetailWithDateRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new Dictionary(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithPeriod/GetM365AppUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithPeriod/GetM365AppUserDetailWithPeriodRequestBuilder.cs new file mode 100644 index 00000000000..7c8a564585d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithPeriod/GetM365AppUserDetailWithPeriodRequestBuilder.cs @@ -0,0 +1,95 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Reports.GetM365AppUserDetailWithPeriod { + /// Provides operations to call the getM365AppUserDetail method. + public class GetM365AppUserDetailWithPeriodRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new GetM365AppUserDetailWithPeriodRequestBuilder and sets the default values. + /// Path parameters for the request + /// Usage: period='{period}' + /// The request adapter to use to execute the requests. + /// + public GetM365AppUserDetailWithPeriodRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string period = default) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getM365AppUserDetail(period='{period}')"; + var urlTplParams = new Dictionary(pathParameters); + urlTplParams.Add("period", period); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new GetM365AppUserDetailWithPeriodRequestBuilder and sets the default values. + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + /// + public GetM365AppUserDetailWithPeriodRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getM365AppUserDetail(period='{period}')"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function getM365AppUserDetail + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new GetM365AppUserDetailWithPeriodRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function getM365AppUserDetail + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// Response handler to use in place of the default response handling provided by the core service + /// + public async Task GetAsync(Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + var requestInfo = CreateGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, responseHandler, errorMapping, cancellationToken); + } + /// Configuration for the request such as headers, query parameters, and middleware options. + public class GetM365AppUserDetailWithPeriodRequestBuilderGetRequestConfiguration { + /// Request headers + public IDictionary Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new getM365AppUserDetailWithPeriodRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GetM365AppUserDetailWithPeriodRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new Dictionary(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs index b2608ddfe67..b46e45b62f0 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -18,16 +18,16 @@ public class GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDat private string UrlTemplate { get; set; } /// /// Instantiates a new GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. - /// Usage: endDateTime='{endDateTime}' + /// Usage: endDateTime={endDateTime} /// Path parameters for the request /// Usage: printerId='{printerId}' /// The request adapter to use to execute the requests. - /// Usage: startDateTime='{startDateTime}' + /// Usage: startDateTime={startDateTime} /// public GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, DateTimeOffset? endDateTime = default, string printerId = default, DateTimeOffset? startDateTime = default) { _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/reports/microsoft.graph.getPrinterArchivedPrintJobs(printerId='{printerId}',startDateTime='{startDateTime}',endDateTime='{endDateTime}'){?%24top,%24skip,%24search,%24filter,%24count}"; + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getPrinterArchivedPrintJobs(printerId='{printerId}',startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}"; var urlTplParams = new Dictionary(pathParameters); urlTplParams.Add("endDateTime", endDateTime); urlTplParams.Add("printerId", printerId); @@ -43,7 +43,7 @@ public GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeR public GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/reports/microsoft.graph.getPrinterArchivedPrintJobs(printerId='{printerId}',startDateTime='{startDateTime}',endDateTime='{endDateTime}'){?%24top,%24skip,%24search,%24filter,%24count}"; + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getPrinterArchivedPrintJobs(printerId='{printerId}',startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}"; var urlTplParams = new Dictionary(); urlTplParams.Add("request-raw-url", rawUrl); PathParameters = urlTplParams; diff --git a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse.cs index bffe0a54cd7..923522ab4ba 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Reports.GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime { /// Provides operations to call the getPrinterArchivedPrintJobs method. - public class GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse and sets the default values. - /// - public GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ArchivedPrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs index d21e73aebe7..a3ae3793679 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -18,16 +18,16 @@ public class GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeR private string UrlTemplate { get; set; } /// /// Instantiates a new GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. - /// Usage: endDateTime='{endDateTime}' + /// Usage: endDateTime={endDateTime} /// Path parameters for the request /// The request adapter to use to execute the requests. - /// Usage: startDateTime='{startDateTime}' + /// Usage: startDateTime={startDateTime} /// Usage: userId='{userId}' /// public GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, DateTimeOffset? endDateTime = default, DateTimeOffset? startDateTime = default, string userId = default) { _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/reports/microsoft.graph.getUserArchivedPrintJobs(userId='{userId}',startDateTime='{startDateTime}',endDateTime='{endDateTime}'){?%24top,%24skip,%24search,%24filter,%24count}"; + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getUserArchivedPrintJobs(userId='{userId}',startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}"; var urlTplParams = new Dictionary(pathParameters); urlTplParams.Add("endDateTime", endDateTime); urlTplParams.Add("startDateTime", startDateTime); @@ -43,7 +43,7 @@ public GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequest public GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/reports/microsoft.graph.getUserArchivedPrintJobs(userId='{userId}',startDateTime='{startDateTime}',endDateTime='{endDateTime}'){?%24top,%24skip,%24search,%24filter,%24count}"; + UrlTemplate = "{+baseurl}/reports/microsoft.graph.getUserArchivedPrintJobs(userId='{userId}',startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}"; var urlTplParams = new Dictionary(); urlTplParams.Add("request-raw-url", rawUrl); PathParameters = urlTplParams; diff --git a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse.cs index 25a020965bc..665009f1c26 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Reports.GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime { /// Provides operations to call the getUserArchivedPrintJobs method. - public class GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse and sets the default values. - /// - public GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ArchivedPrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Reports/ReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/ReportsRequestBuilder.cs index a1cda3ec094..562b5a214d1 100644 --- a/src/Microsoft.Graph/Generated/Reports/ReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/ReportsRequestBuilder.cs @@ -14,6 +14,10 @@ using Microsoft.Graph.Reports.GetEmailAppUsageUserDetailWithPeriod; using Microsoft.Graph.Reports.GetEmailAppUsageVersionsUserCountsWithPeriod; using Microsoft.Graph.Reports.GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime; +using Microsoft.Graph.Reports.GetM365AppPlatformUserCountsWithPeriod; +using Microsoft.Graph.Reports.GetM365AppUserCountsWithPeriod; +using Microsoft.Graph.Reports.GetM365AppUserDetailWithDate; +using Microsoft.Graph.Reports.GetM365AppUserDetailWithPeriod; using Microsoft.Graph.Reports.GetMailboxUsageDetailWithPeriod; using Microsoft.Graph.Reports.GetMailboxUsageMailboxCountsWithPeriod; using Microsoft.Graph.Reports.GetMailboxUsageQuotaStatusMailboxCountsWithPeriod; @@ -303,9 +307,9 @@ public GetEmailAppUsageVersionsUserCountsWithPeriodRequestBuilder GetEmailAppUsa } /// /// Provides operations to call the getGroupArchivedPrintJobs method. - /// Usage: endDateTime='{endDateTime}' + /// Usage: endDateTime={endDateTime} /// Usage: groupId='{groupId}' - /// Usage: startDateTime='{startDateTime}' + /// Usage: startDateTime={startDateTime} /// public GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime(DateTimeOffset? endDateTime, string groupId, DateTimeOffset? startDateTime) { _ = endDateTime ?? throw new ArgumentNullException(nameof(endDateTime)); @@ -314,6 +318,38 @@ public GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeReque return new GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, groupId, startDateTime); } /// + /// Provides operations to call the getM365AppPlatformUserCounts method. + /// Usage: period='{period}' + /// + public GetM365AppPlatformUserCountsWithPeriodRequestBuilder GetM365AppPlatformUserCountsWithPeriod(string period) { + if(string.IsNullOrEmpty(period)) throw new ArgumentNullException(nameof(period)); + return new GetM365AppPlatformUserCountsWithPeriodRequestBuilder(PathParameters, RequestAdapter, period); + } + /// + /// Provides operations to call the getM365AppUserCounts method. + /// Usage: period='{period}' + /// + public GetM365AppUserCountsWithPeriodRequestBuilder GetM365AppUserCountsWithPeriod(string period) { + if(string.IsNullOrEmpty(period)) throw new ArgumentNullException(nameof(period)); + return new GetM365AppUserCountsWithPeriodRequestBuilder(PathParameters, RequestAdapter, period); + } + /// + /// Provides operations to call the getM365AppUserDetail method. + /// Usage: date={date} + /// + public GetM365AppUserDetailWithDateRequestBuilder GetM365AppUserDetailWithDate(Date? date) { + _ = date ?? throw new ArgumentNullException(nameof(date)); + return new GetM365AppUserDetailWithDateRequestBuilder(PathParameters, RequestAdapter, date); + } + /// + /// Provides operations to call the getM365AppUserDetail method. + /// Usage: period='{period}' + /// + public GetM365AppUserDetailWithPeriodRequestBuilder GetM365AppUserDetailWithPeriod(string period) { + if(string.IsNullOrEmpty(period)) throw new ArgumentNullException(nameof(period)); + return new GetM365AppUserDetailWithPeriodRequestBuilder(PathParameters, RequestAdapter, period); + } + /// /// Provides operations to call the getMailboxUsageDetail method. /// Usage: period='{period}' /// @@ -517,9 +553,9 @@ public GetOneDriveUsageStorageWithPeriodRequestBuilder GetOneDriveUsageStorageWi } /// /// Provides operations to call the getPrinterArchivedPrintJobs method. - /// Usage: endDateTime='{endDateTime}' + /// Usage: endDateTime={endDateTime} /// Usage: printerId='{printerId}' - /// Usage: startDateTime='{startDateTime}' + /// Usage: startDateTime={startDateTime} /// public GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime(DateTimeOffset? endDateTime, string printerId, DateTimeOffset? startDateTime) { _ = endDateTime ?? throw new ArgumentNullException(nameof(endDateTime)); @@ -817,8 +853,8 @@ public GetTeamsUserActivityUserDetailWithPeriodRequestBuilder GetTeamsUserActivi } /// /// Provides operations to call the getUserArchivedPrintJobs method. - /// Usage: endDateTime='{endDateTime}' - /// Usage: startDateTime='{startDateTime}' + /// Usage: endDateTime={endDateTime} + /// Usage: startDateTime={startDateTime} /// Usage: userId='{userId}' /// public GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime(DateTimeOffset? endDateTime, DateTimeOffset? startDateTime, string userId) { diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersResponse.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersResponse.cs index 165d94adb0c..294820c26cf 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Reports.Security.GetAttackSimulationRepeatOffenders { /// Provides operations to call the getAttackSimulationRepeatOffenders method. - public class GetAttackSimulationRepeatOffendersResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAttackSimulationRepeatOffendersResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAttackSimulationRepeatOffendersResponse and sets the default values. - /// - public GetAttackSimulationRepeatOffendersResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAttackSimulationRepeatOffendersResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAttackSimulationRepeatOffendersResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAttackSimulationRepeatOffendersResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationRepeatOffender.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageResponse.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageResponse.cs index f06e7bd6fcd..0d196cf7974 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Reports.Security.GetAttackSimulationSimulationUserCoverage { /// Provides operations to call the getAttackSimulationSimulationUserCoverage method. - public class GetAttackSimulationSimulationUserCoverageResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAttackSimulationSimulationUserCoverageResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAttackSimulationSimulationUserCoverageResponse and sets the default values. - /// - public GetAttackSimulationSimulationUserCoverageResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAttackSimulationSimulationUserCoverageResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAttackSimulationSimulationUserCoverageResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAttackSimulationSimulationUserCoverageResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationSimulationUserCoverage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageResponse.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageResponse.cs index fbd95987559..e1feab85814 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Reports.Security.GetAttackSimulationTrainingUserCoverage { /// Provides operations to call the getAttackSimulationTrainingUserCoverage method. - public class GetAttackSimulationTrainingUserCoverageResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAttackSimulationTrainingUserCoverageResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAttackSimulationTrainingUserCoverageResponse and sets the default values. - /// - public GetAttackSimulationTrainingUserCoverageResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAttackSimulationTrainingUserCoverageResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAttackSimulationTrainingUserCoverageResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAttackSimulationTrainingUserCoverageResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationTrainingUserCoverage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index bd26e6424ba..6ad407b3430 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleAssignmentScheduleInstances.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index ef124944f6d..3ccfb546e09 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleAssignmentScheduleRequests.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index c4c4e866823..d42972e8ee9 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleAssignmentSchedules.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 90add8817d9..cb8a9d52a11 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleEligibilityScheduleInstances.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index b6feceec85a..6517ccd3c47 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleEligibilityScheduleRequests.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 5dfcf59da7c..2de6089ee4b 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleEligibilitySchedules.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 8abff515bcd..8cd67b9e358 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleAssignmentScheduleInstances.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 3364c45666b..288d54b6040 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleAssignmentScheduleRequests.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 7d98ba7cce3..203e9d3a4c1 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleAssignmentSchedules.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index adb5b150c2b..d6d01a288d6 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleEligibilityScheduleInstances.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 9265c269e35..172f1e6774d 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleEligibilityScheduleRequests.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 2b1cf1fc696..0b62cd44f77 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleEligibilitySchedules.FilterByCurrentUserWithOn { /// Provides operations to call the filterByCurrentUser method. - public class FilterByCurrentUserWithOnResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new filterByCurrentUserWithOnResponse and sets the default values. - /// - public FilterByCurrentUserWithOnResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Search/Query/QueryResponse.cs b/src/Microsoft.Graph/Generated/Search/Query/QueryResponse.cs index 4d69d1cab87..de1c86c29df 100644 --- a/src/Microsoft.Graph/Generated/Search/Query/QueryResponse.cs +++ b/src/Microsoft.Graph/Generated/Search/Query/QueryResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Search.Query { /// Provides operations to call the query method. - public class QueryResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class QueryResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new queryResponse and sets the default values. - /// - public QueryResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static QueryResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new QueryResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new QueryResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SearchResponse.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/AsHierarchy/AsHierarchyResponse.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/AsHierarchy/AsHierarchyResponse.cs index 4312633efcd..72ca71b6d13 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/AsHierarchy/AsHierarchyResponse.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/AsHierarchy/AsHierarchyResponse.cs @@ -1,45 +1,31 @@ +using Microsoft.Graph.Models; using Microsoft.Graph.Models.Security; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Security.Cases.EdiscoveryCases.Item.Tags.AsHierarchy { /// Provides operations to call the asHierarchy method. - public class AsHierarchyResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AsHierarchyResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new asHierarchyResponse and sets the default values. - /// - public AsHierarchyResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AsHierarchyResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AsHierarchyResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AsHierarchyResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EdiscoveryReviewTag.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +33,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaResponse.cs index 093b42705b6..70dd979eba8 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.ServicePrincipals.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.ServicePrincipal.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 3c8cb93f59a..6dbee8a0759 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.ServicePrincipals.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsResponse.cs index ea9c9f1950a..4330434532c 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.ServicePrincipals.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 81cb8a87fc0..ece814077b6 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.ServicePrincipals.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index f65892cd9c1..558ed91cc58 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.ServicePrincipals.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 0f3abf25888..6d03cb58aaf 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.ServicePrincipals.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsResponse.cs index ff5c4f6625e..4c4143fad50 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.ServicePrincipals.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 29170f5cb8e..084571aa1ca 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Shares.Item.List.ContentTypes.GetCompatibleHubContentTypes { /// Provides operations to call the getCompatibleHubContentTypes method. - public class GetCompatibleHubContentTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - /// - public GetCompatibleHubContentTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index ba767584f5f..5f5fcdd7af6 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Shares.Item.List.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 63b4cdde9de..98defd5c06e 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Shares.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Shares/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index a8105a87290..3544035c2f6 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Shares.Item.ListItem.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Shares/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index a571383453d..1430a242f98 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Shares.Item.ListItem.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantResponse.cs index c5d1372a000..1f8f6c5fb68 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Shares.Item.Permission.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Sites/Add/AddResponse.cs index 0829000c6ef..821ebce1a22 100644 --- a/src/Microsoft.Graph/Generated/Sites/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Sites.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index fc9bbad16d6..7d50d3b1e26 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Sites.Item.ContentTypes.GetCompatibleHubContentTypes { /// Provides operations to call the getCompatibleHubContentTypes method. - public class GetCompatibleHubContentTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - /// - public GetCompatibleHubContentTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 8d8549721cc..9a83fced5f8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Sites.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index cf3c8734252..d3fc53d6c58 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Sites.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs index 780220c0a34..4122eb232de 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Sites.Item.GetApplicableContentTypesForListWithListId { /// Provides operations to call the getApplicableContentTypesForList method. - public class GetApplicableContentTypesForListWithListIdResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetApplicableContentTypesForListWithListIdResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getApplicableContentTypesForListWithListIdResponse and sets the default values. - /// - public GetApplicableContentTypesForListWithListIdResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetApplicableContentTypesForListWithListIdResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetApplicableContentTypesForListWithListIdResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetApplicableContentTypesForListWithListIdResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 7fdc50a8604..6b3e03562e7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Sites.Item.Lists.Item.ContentTypes.GetCompatibleHubContentTypes { /// Provides operations to call the getCompatibleHubContentTypes method. - public class GetCompatibleHubContentTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - /// - public GetCompatibleHubContentTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index e39129b17af..6a9db2b8852 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index fc8eda70649..f85a5ace94c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs index 8c1d864d446..a513208a6db 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Sites.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { /// Provides operations to call the getRecentNotebooks method. - public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getRecentNotebooksWithIncludePersonalNotebooksResponse and sets the default values. - /// - public GetRecentNotebooksWithIncludePersonalNotebooksResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetRecentNotebooksWithIncludePersonalNotebooksResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetRecentNotebooksWithIncludePersonalNotebooksResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetRecentNotebooksWithIncludePersonalNotebooksResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantResponse.cs index e74d3ca9a5f..71db248bdd6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Sites.Item.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Remove/RemoveResponse.cs b/src/Microsoft.Graph/Generated/Sites/Remove/RemoveResponse.cs index 720cf821077..2ef99c4996d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Remove/RemoveResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Remove/RemoveResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Sites.Remove { /// Provides operations to call the remove method. - public class RemoveResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class RemoveResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new removeResponse and sets the default values. - /// - public RemoveResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static RemoveResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RemoveResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RemoveResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityResponse.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityResponse.cs index b9054df0492..fa15cda7b60 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityResponse.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Solutions.BookingBusinesses.Item.GetStaffAvailability { /// Provides operations to call the getStaffAvailability method. - public class GetStaffAvailabilityResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetStaffAvailabilityResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getStaffAvailabilityResponse and sets the default values. - /// - public GetStaffAvailabilityResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetStaffAvailabilityResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetStaffAvailabilityResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetStaffAvailabilityResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(StaffAvailabilityItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesResponse.cs index bcb52267336..aa67b8e9530 100644 --- a/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Teams.GetAllMessages { /// Provides operations to call the getAllMessages method. - public class GetAllMessagesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAllMessagesResponse and sets the default values. - /// - public GetAllMessagesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs index a7f38be35b8..8fa1fab612d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Teams.Item.Channels.GetAllMessages { /// Provides operations to call the getAllMessages method. - public class GetAllMessagesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAllMessagesResponse and sets the default values. - /// - public GetAllMessagesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddResponse.cs index ab59a1e0d43..52c9c0c18fd 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Teams.Item.Channels.Item.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs index 542a7a7d5cb..909123ced58 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Teams.Item.Channels.Item.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index b0c0b416902..2761536be5c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Teams.Item.Channels.Item.Messages.Item.Replies.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddResponse.cs index b1935ed8b99..ce73e9d9668 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Teams.Item.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddResponse.cs index 8c498eed0c5..571ea9500b2 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Teams.Item.PrimaryChannel.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs index b3c4a0f55b6..05562cc5670 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Teams.Item.PrimaryChannel.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs index 6acda40dba5..6acfd181017 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Teams.Item.PrimaryChannel.Messages.Item.Replies.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.cs index 1a18ee30a2c..15fdd4d92a2 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.cs @@ -137,17 +137,17 @@ public RequestInformation CreateGetRequestInformation(Action /// Configuration for the request such as headers, query parameters, and middleware options. /// - public RequestInformation CreatePatchRequestInformation(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default) { + public RequestInformation CreatePutRequestInformation(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, + HttpMethod = Method.PUT, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; requestInfo.Headers.Add("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { - var requestConfig = new ScheduleRequestBuilderPatchRequestConfiguration(); + var requestConfig = new ScheduleRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -189,9 +189,9 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service /// - public async Task PatchAsync(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = CreatePatchRequestInformation(body, requestConfiguration); + var requestInfo = CreatePutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, @@ -238,15 +238,15 @@ public ScheduleRequestBuilderGetRequestConfiguration() { } } /// Configuration for the request such as headers, query parameters, and middleware options. - public class ScheduleRequestBuilderPatchRequestConfiguration { + public class ScheduleRequestBuilderPutRequestConfiguration { /// Request headers public IDictionary Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new scheduleRequestBuilderPatchRequestConfiguration and sets the default values. + /// Instantiates a new scheduleRequestBuilderPutRequestConfiguration and sets the default values. /// - public ScheduleRequestBuilderPatchRequestConfiguration() { + public ScheduleRequestBuilderPutRequestConfiguration() { Options = new List(); Headers = new Dictionary(); } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index d044a1738de..baf349d0e07 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs @@ -63,7 +63,7 @@ public RequestInformation CreateDeleteRequestInformation(Action - /// Get members from teams + /// Users assigned to the tag. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -119,7 +119,7 @@ public async Task DeleteAsync(Action - /// Get members from teams + /// Users assigned to the tag. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -162,7 +162,7 @@ public TeamworkTagMemberItemRequestBuilderDeleteRequestConfiguration() { Headers = new Dictionary(); } } - /// Get members from teams + /// Users assigned to the tag. public class TeamworkTagMemberItemRequestBuilderGetQueryParameters { /// Expand related entities [QueryParameter("%24expand")] diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.cs index 94af0edc953..6ca0def2201 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.cs @@ -57,7 +57,7 @@ public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get members from teams + /// Get a list of the members of a standard tag in a team and their properties. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -77,7 +77,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Create new navigation property to members for teams + /// Create a new teamworkTagMember object in a team. /// /// Configuration for the request such as headers, query parameters, and middleware options. /// @@ -99,7 +99,7 @@ public RequestInformation CreatePostRequestInformation(TeamworkTagMember body, A return requestInfo; } /// - /// Get members from teams + /// Get a list of the members of a standard tag in a team and their properties. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -113,7 +113,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagMemberCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } /// - /// Create new navigation property to members for teams + /// Create a new teamworkTagMember object in a team. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -128,7 +128,7 @@ public async Task PostAsync(TeamworkTagMember body, Action(requestInfo, TeamworkTagMember.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get members from teams + /// Get a list of the members of a standard tag in a team and their properties. public class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs index bdded9978b3..f5052667b93 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -68,7 +68,7 @@ public RequestInformation CreateDeleteRequestInformation(Action - /// Get tags from teams + /// The tags associated with the team. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -124,7 +124,7 @@ public async Task DeleteAsync(Action - /// Get tags from teams + /// The tags associated with the team. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -167,7 +167,7 @@ public TeamworkTagItemRequestBuilderDeleteRequestConfiguration() { Headers = new Dictionary(); } } - /// Get tags from teams + /// The tags associated with the team. public class TeamworkTagItemRequestBuilderGetQueryParameters { /// Expand related entities [QueryParameter("%24expand")] diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/TagsRequestBuilder.cs index 297a4c3613c..66f117a8797 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/TagsRequestBuilder.cs @@ -57,7 +57,7 @@ public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get tags from teams + /// Get a list of the tag objects and their properties. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -77,7 +77,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Create new navigation property to tags for teams + /// Create a standard tag for members in a team. /// /// Configuration for the request such as headers, query parameters, and middleware options. /// @@ -99,7 +99,7 @@ public RequestInformation CreatePostRequestInformation(TeamworkTag body, Action< return requestInfo; } /// - /// Get tags from teams + /// Get a list of the tag objects and their properties. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -113,7 +113,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } /// - /// Create new navigation property to tags for teams + /// Create a standard tag for members in a team. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -128,7 +128,7 @@ public async Task PostAsync(TeamworkTag body, Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get tags from teams + /// Get a list of the tag objects and their properties. public class TagsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsPostRequestBody.cs new file mode 100644 index 00000000000..4484fffaff3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsPostRequestBody.cs @@ -0,0 +1,98 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Teamwork.SendActivityNotificationToRecipients { + /// Provides operations to call the sendActivityNotificationToRecipients method. + public class SendActivityNotificationToRecipientsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// The activityType property + public string ActivityType { + get { return BackingStore?.Get("activityType"); } + set { BackingStore?.Set("activityType", value); } + } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The chainId property + public long? ChainId { + get { return BackingStore?.Get("chainId"); } + set { BackingStore?.Set("chainId", value); } + } + /// The previewText property + public ItemBody PreviewText { + get { return BackingStore?.Get("previewText"); } + set { BackingStore?.Set("previewText", value); } + } + /// The recipients property + public List Recipients { + get { return BackingStore?.Get>("recipients"); } + set { BackingStore?.Set("recipients", value); } + } + /// The teamsAppId property + public string TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } + /// The templateParameters property + public List TemplateParameters { + get { return BackingStore?.Get>("templateParameters"); } + set { BackingStore?.Set("templateParameters", value); } + } + /// The topic property + public TeamworkActivityTopic Topic { + get { return BackingStore?.Get("topic"); } + set { BackingStore?.Set("topic", value); } + } + /// + /// Instantiates a new sendActivityNotificationToRecipientsPostRequestBody and sets the default values. + /// + public SendActivityNotificationToRecipientsPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// The parse node to use to read the discriminator value and create the object + /// + public static SendActivityNotificationToRecipientsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SendActivityNotificationToRecipientsPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"activityType", n => { ActivityType = n.GetStringValue(); } }, + {"chainId", n => { ChainId = n.GetLongValue(); } }, + {"previewText", n => { PreviewText = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, + {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(TeamworkNotificationRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, + {"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, + {"templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, + {"topic", n => { Topic = n.GetObjectValue(TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// Serialization writer to use to serialize this model + /// + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("activityType", ActivityType); + writer.WriteLongValue("chainId", ChainId); + writer.WriteObjectValue("previewText", PreviewText); + writer.WriteCollectionOfObjectValues("recipients", Recipients); + writer.WriteStringValue("teamsAppId", TeamsAppId); + writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); + writer.WriteObjectValue("topic", Topic); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.cs new file mode 100644 index 00000000000..9db86a5df03 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.cs @@ -0,0 +1,98 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Teamwork.SendActivityNotificationToRecipients { + /// Provides operations to call the sendActivityNotificationToRecipients method. + public class SendActivityNotificationToRecipientsRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new SendActivityNotificationToRecipientsRequestBuilder and sets the default values. + /// Path parameters for the request + /// The request adapter to use to execute the requests. + /// + public SendActivityNotificationToRecipientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/teamwork/microsoft.graph.sendActivityNotificationToRecipients"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new SendActivityNotificationToRecipientsRequestBuilder and sets the default values. + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + /// + public SendActivityNotificationToRecipientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/teamwork/microsoft.graph.sendActivityNotificationToRecipients"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke action sendActivityNotificationToRecipients + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public RequestInformation CreatePostRequestInformation(SendActivityNotificationToRecipientsPostRequestBody body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new SendActivityNotificationToRecipientsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke action sendActivityNotificationToRecipients + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// Response handler to use in place of the default response handling provided by the core service + /// + public async Task PostAsync(SendActivityNotificationToRecipientsPostRequestBody body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = CreatePostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler, errorMapping, cancellationToken); + } + /// Configuration for the request such as headers, query parameters, and middleware options. + public class SendActivityNotificationToRecipientsRequestBuilderPostRequestConfiguration { + /// Request headers + public IDictionary Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new sendActivityNotificationToRecipientsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public SendActivityNotificationToRecipientsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new Dictionary(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamworkRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamworkRequestBuilder.cs index 5b8a3be7201..ad72caedb90 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamworkRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamworkRequestBuilder.cs @@ -1,5 +1,6 @@ using Microsoft.Graph.Models; using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Teamwork.SendActivityNotificationToRecipients; using Microsoft.Graph.Teamwork.WorkforceIntegrations; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; @@ -16,6 +17,10 @@ public class TeamworkRequestBuilder { private Dictionary PathParameters { get; set; } /// The request adapter to use to execute the requests. private IRequestAdapter RequestAdapter { get; set; } + /// The sendActivityNotificationToRecipients property + public SendActivityNotificationToRecipientsRequestBuilder SendActivityNotificationToRecipients { get => + new SendActivityNotificationToRecipientsRequestBuilder(PathParameters, RequestAdapter); + } /// Url template to use to build the URL for the current request builder private string UrlTemplate { get; set; } /// The workforceIntegrations property diff --git a/src/Microsoft.Graph/Generated/Users/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Delta/DeltaResponse.cs index 0376267fcd2..be3466c0acc 100644 --- a/src/Microsoft.Graph/Generated/Users/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.User.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 787cd125ba2..ba5b5442581 100644 --- a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.GetAvailableExtensionProperties { /// Provides operations to call the getAvailableExtensionProperties method. - public class GetAvailableExtensionPropertiesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesResponse and sets the default values. - /// - public GetAvailableExtensionPropertiesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsResponse.cs index 769d2c5b0ac..1a8e5a4c6f3 100644 --- a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.GetByIds { /// Provides operations to call the getByIds method. - public class GetByIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getByIdsResponse and sets the default values. - /// - public GetByIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentResponse.cs index 42af4821501..12f272094ec 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Activities.Recent { /// Provides operations to call the recent method. - public class RecentResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class RecentResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new recentResponse and sets the default values. - /// - public RecentResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RecentResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserActivity.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs index bb82a560794..214d0ef04ab 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Authentication.MicrosoftAuthenticatorMethods.Item.Device.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs index 15d922727a7..780122f227f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Authentication.MicrosoftAuthenticatorMethods.Item.Device.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs index b9f69c66647..d3ffd536442 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Authentication.MicrosoftAuthenticatorMethods.Item.Device.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs index c1eade86bc5..e78b6dbd877 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Authentication.MicrosoftAuthenticatorMethods.Item.Device.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs index c58f43102ec..2a7ed49ec89 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Authentication.WindowsHelloForBusinessMethods.Item.Device.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs index c9d2086aa4a..c65cb3ddb3b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Authentication.WindowsHelloForBusinessMethods.Item.Device.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs index 29949b511d4..eb4e27a1e55 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Authentication.WindowsHelloForBusinessMethods.Item.Device.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs index 24b7ceb0578..fdbb2c403f2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Authentication.WindowsHelloForBusinessMethods.Item.Device.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index 0949eccecb0..8a3a5a5a51d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser { /// Provides operations to call the allowedCalendarSharingRoles method. - public class AllowedCalendarSharingRolesWithUserResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new allowedCalendarSharingRolesWithUserResponse and sets the default values. - /// - public AllowedCalendarSharingRolesWithUserResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaResponse.cs index 455ab62889d..bad53aff3b4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Calendar.CalendarView.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs index bc257040d6b..b5a274f4ea3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Calendar.CalendarView.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaResponse.cs index 87ac69921cf..2a6fccf60a0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Calendar.Events.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs index bed4fd4c8c7..bd0afa8eb00 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Calendar.Events.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleResponse.cs index 06e8eff13be..bb3efe480d4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Calendar.GetSchedule { /// Provides operations to call the getSchedule method. - public class GetScheduleResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getScheduleResponse and sets the default values. - /// - public GetScheduleResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index f1f0b941cd4..0a47e0feadd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser { /// Provides operations to call the allowedCalendarSharingRoles method. - public class AllowedCalendarSharingRolesWithUserResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new allowedCalendarSharingRolesWithUserResponse and sets the default values. - /// - public AllowedCalendarSharingRolesWithUserResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs index 2275a5db8e1..879254d8f31 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs index c438d32e2a0..945d6c566d5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs index c59e3fa6b89..301743f275f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs index 5e5ac7a71ee..9959bdc602e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs index e47a85b534f..680d9b0c75f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule { /// Provides operations to call the getSchedule method. - public class GetScheduleResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getScheduleResponse and sets the default values. - /// - public GetScheduleResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaResponse.cs index 2de0b1338d3..d557adaff44 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.CalendarView.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs index 26fbc11881a..754939c8ba1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.CalendarView.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index 8516bdb2db6..e3c26a5efd5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser { /// Provides operations to call the allowedCalendarSharingRoles method. - public class AllowedCalendarSharingRolesWithUserResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new allowedCalendarSharingRolesWithUserResponse and sets the default values. - /// - public AllowedCalendarSharingRolesWithUserResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs index 353fb38e5d9..f2555bc2e33 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Calendars.Item.CalendarView.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs index 9ecabc0b70f..ddf529cd865 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Calendars.Item.CalendarView.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaResponse.cs index 1ba3934f1c3..2d9fbe2a652 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Calendars.Item.Events.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs index c1b9c296d61..8324e60127c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Calendars.Item.Events.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs index 62aea6fa88d..3edf3457ac7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Calendars.Item.GetSchedule { /// Provides operations to call the getSchedule method. - public class GetScheduleResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getScheduleResponse and sets the default values. - /// - public GetScheduleResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesResponse.cs index 4b9eb31e88b..e66076be513 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Chats.GetAllMessages { /// Provides operations to call the getAllMessages method. - public class GetAllMessagesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAllMessagesResponse and sets the default values. - /// - public GetAllMessagesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddResponse.cs index 24fdced73bd..51a386af86b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Chats.Item.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaResponse.cs index e3945f1a9a5..36580acfdef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Chats.Item.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index 2d8e3d3a0f4..58cca7fa1ae 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Chats.Item.Messages.Item.Replies.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index ee6f85c3805..349e4bfc993 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.CheckMemberGroups { /// Provides operations to call the checkMemberGroups method. - public class CheckMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberGroupsResponse and sets the default values. - /// - public CheckMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 73e25418d25..bd680481871 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.CheckMemberObjects { /// Provides operations to call the checkMemberObjects method. - public class CheckMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new checkMemberObjectsResponse and sets the default values. - /// - public CheckMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaResponse.cs index 778077004a8..6ee469853cf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.ContactFolders.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs index eb9c1900bdf..da340247ab3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.ContactFolders.Item.ChildFolders.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs index d099c59c9e7..de5ddc9e00f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.ContactFolders.Item.ChildFolders.Item.Contacts.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs index 81429237051..ecf793745e6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.ContactFolders.Item.Contacts.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaResponse.cs index 15e09666d77..cc897b46000 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Contacts.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/Delta/DeltaResponse.cs index 5e37fd57be0..075984608d1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Items.Item.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs index c9652130d37..06705423ad5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Items.Item.DeltaWithToken { /// Provides operations to call the delta method. - public class DeltaWithTokenResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaWithTokenResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaWithTokenResponse and sets the default values. - /// - public DeltaWithTokenResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaWithTokenResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 197c5ff6191..e912899780a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 18c5da1b3b5..6b838ad8c4e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/Invite/InviteResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/Invite/InviteResponse.cs index 63598d16b35..6580ff86d24 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/Invite/InviteResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/Invite/InviteResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Items.Item.Invite { /// Provides operations to call the invite method. - public class InviteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class InviteResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new inviteResponse and sets the default values. - /// - public InviteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InviteResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 98ad1083a3c..804b90bfc44 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Items.Item.ListItem.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index e7ecff7df06..1c20b7b0f8f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Items.Item.ListItem.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs index 4e88b1f0997..4e393839aad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Items.Item.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs index e76e76c0bef..444f7ac13c3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Items.Item.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 3769d260e0b..ea8b67fc110 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.List.ContentTypes.GetCompatibleHubContentTypes { /// Provides operations to call the getCompatibleHubContentTypes method. - public class GetCompatibleHubContentTypesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getCompatibleHubContentTypesResponse and sets the default values. - /// - public GetCompatibleHubContentTypesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetCompatibleHubContentTypesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index e76cf73b34c..ebbd8badafa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.List.Items.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index c33dfabc26f..4d2ff06410b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Recent/RecentResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Recent/RecentResponse.cs index 5ac37c8fdc5..319a41a7a1f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Recent/RecentResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Recent/RecentResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Recent { /// Provides operations to call the recent method. - public class RecentResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class RecentResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new recentResponse and sets the default values. - /// - public RecentResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RecentResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RecentResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/Delta/DeltaResponse.cs index 82d3cdc6f13..cee497ed5d7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Root.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs index 4eb61a603d7..9bd1b14956a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/DeltaWithToken/DeltaWithTokenResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Root.DeltaWithToken { /// Provides operations to call the delta method. - public class DeltaWithTokenResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaWithTokenResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaWithTokenResponse and sets the default values. - /// - public DeltaWithTokenResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaWithTokenResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 98312c6d911..a38d9cf8953 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Root.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 3c020065179..3fc5622ca41 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Root.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/Invite/InviteResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/Invite/InviteResponse.cs index c34792ee42e..62a994d664e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/Invite/InviteResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/Invite/InviteResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Root.Invite { /// Provides operations to call the invite method. - public class InviteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class InviteResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new inviteResponse and sets the default values. - /// - public InviteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InviteResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 80ddaa5032d..869962ac5f8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Root.ListItem.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index af86d78b922..612e98f74de 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Root.ListItem.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs index 531fdf8c3fb..1b228d91a13 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Root.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs index b60537633ca..b15339b87c1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/Root/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.Root.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/SearchWithQ/SearchWithQResponse.cs index 229c31b1da7..d94cda64df2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/SharedWithMe/SharedWithMeResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/SharedWithMe/SharedWithMeResponse.cs index 13de60f5d5c..d19e7b6bc32 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/SharedWithMe/SharedWithMeResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/SharedWithMe/SharedWithMeResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Drives.Item.SharedWithMe { /// Provides operations to call the sharedWithMe method. - public class SharedWithMeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SharedWithMeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new sharedWithMeResponse and sets the default values. - /// - public SharedWithMeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SharedWithMeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SharedWithMeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SharedWithMeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaResponse.cs index e4fef17f491..e798df24f68 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Events.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaResponse.cs index 805dac0676b..47fde064dc6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Events.Item.Instances.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsResponse.cs index 51fb07fc51e..4e9e1ef3d90 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.GetMailTips { /// Provides operations to call the getMailTips method. - public class GetMailTipsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMailTipsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMailTipsResponse and sets the default values. - /// - public GetMailTipsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMailTipsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMailTipsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMailTipsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailTips.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs index 68dc08bcf64..b77cb668bc2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.GetManagedAppDiagnosticStatuses { /// Provides operations to call the getManagedAppDiagnosticStatuses method. - public class GetManagedAppDiagnosticStatusesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetManagedAppDiagnosticStatusesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getManagedAppDiagnosticStatusesResponse and sets the default values. - /// - public GetManagedAppDiagnosticStatusesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetManagedAppDiagnosticStatusesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetManagedAppDiagnosticStatusesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetManagedAppDiagnosticStatusesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppDiagnosticStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs index 6596e413338..d60cebc7b95 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.GetManagedAppPolicies { /// Provides operations to call the getManagedAppPolicies method. - public class GetManagedAppPoliciesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetManagedAppPoliciesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getManagedAppPoliciesResponse and sets the default values. - /// - public GetManagedAppPoliciesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetManagedAppPoliciesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetManagedAppPoliciesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetManagedAppPoliciesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsResponse.cs index efd7d7ef539..42b3a88de24 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.GetMemberGroups { /// Provides operations to call the getMemberGroups method. - public class GetMemberGroupsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsResponse and sets the default values. - /// - public GetMemberGroupsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 4826c54ffb0..ba33c18507f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,44 +1,30 @@ +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.GetMemberObjects { /// Provides operations to call the getMemberObjects method. - public class GetMemberObjectsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsResponse and sets the default values. - /// - public GetMemberObjectsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -46,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs index 89536b93403..d0a352f7421 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.JoinedTeams.GetAllMessages { /// Provides operations to call the getAllMessages method. - public class GetAllMessagesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAllMessagesResponse and sets the default values. - /// - public GetAllMessagesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs index e74306133fa..e74efc3c4ee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.GetAllMessages { /// Provides operations to call the getAllMessages method. - public class GetAllMessagesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAllMessagesResponse and sets the default values. - /// - public GetAllMessagesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAllMessagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs index 87e1ed9576b..b1f264901dd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.Item.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs index 23ccb3a5983..13fdc1caca6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.Item.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index 766f8395782..161046857b0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.Item.Messages.Item.Replies.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddResponse.cs index 131f1862b08..e4bf765ec2c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs index 10cde1e4e4d..30aae36f97e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PrimaryChannel.Members.Add { /// Provides operations to call the add method. - public class AddResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new addResponse and sets the default values. - /// - public AddResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs index ec33549bc5c..5fa228956e7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PrimaryChannel.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs index 8c6f4311d30..6d5b98832db 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PrimaryChannel.Messages.Item.Replies.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs index 2089f7f0cfb..64ddbcb910b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs @@ -137,17 +137,17 @@ public RequestInformation CreateGetRequestInformation(Action /// Configuration for the request such as headers, query parameters, and middleware options. /// - public RequestInformation CreatePatchRequestInformation(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default) { + public RequestInformation CreatePutRequestInformation(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, + HttpMethod = Method.PUT, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; requestInfo.Headers.Add("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { - var requestConfig = new ScheduleRequestBuilderPatchRequestConfiguration(); + var requestConfig = new ScheduleRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -189,9 +189,9 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service /// - public async Task PatchAsync(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Microsoft.Graph.Models.Schedule body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = CreatePatchRequestInformation(body, requestConfiguration); + var requestInfo = CreatePutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, @@ -238,15 +238,15 @@ public ScheduleRequestBuilderGetRequestConfiguration() { } } /// Configuration for the request such as headers, query parameters, and middleware options. - public class ScheduleRequestBuilderPatchRequestConfiguration { + public class ScheduleRequestBuilderPutRequestConfiguration { /// Request headers public IDictionary Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new scheduleRequestBuilderPatchRequestConfiguration and sets the default values. + /// Instantiates a new scheduleRequestBuilderPutRequestConfiguration and sets the default values. /// - public ScheduleRequestBuilderPatchRequestConfiguration() { + public ScheduleRequestBuilderPutRequestConfiguration() { Options = new List(); Headers = new Dictionary(); } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index 812eb2f5139..5a36e759ab0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs @@ -63,7 +63,7 @@ public RequestInformation CreateDeleteRequestInformation(Action - /// Get members from users + /// Users assigned to the tag. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -119,7 +119,7 @@ public async Task DeleteAsync(Action - /// Get members from users + /// Users assigned to the tag. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -162,7 +162,7 @@ public TeamworkTagMemberItemRequestBuilderDeleteRequestConfiguration() { Headers = new Dictionary(); } } - /// Get members from users + /// Users assigned to the tag. public class TeamworkTagMemberItemRequestBuilderGetQueryParameters { /// Expand related entities [QueryParameter("%24expand")] diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs index 39e41e25a3c..070385b5e44 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs @@ -57,7 +57,7 @@ public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get members from users + /// Get a list of the members of a standard tag in a team and their properties. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -77,7 +77,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Create new navigation property to members for users + /// Create a new teamworkTagMember object in a team. /// /// Configuration for the request such as headers, query parameters, and middleware options. /// @@ -99,7 +99,7 @@ public RequestInformation CreatePostRequestInformation(TeamworkTagMember body, A return requestInfo; } /// - /// Get members from users + /// Get a list of the members of a standard tag in a team and their properties. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -113,7 +113,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagMemberCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } /// - /// Create new navigation property to members for users + /// Create a new teamworkTagMember object in a team. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -128,7 +128,7 @@ public async Task PostAsync(TeamworkTagMember body, Action(requestInfo, TeamworkTagMember.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get members from users + /// Get a list of the members of a standard tag in a team and their properties. public class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs index 604ff97f4b3..dd073497ff2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -68,7 +68,7 @@ public RequestInformation CreateDeleteRequestInformation(Action - /// Get tags from users + /// The tags associated with the team. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -124,7 +124,7 @@ public async Task DeleteAsync(Action - /// Get tags from users + /// The tags associated with the team. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -167,7 +167,7 @@ public TeamworkTagItemRequestBuilderDeleteRequestConfiguration() { Headers = new Dictionary(); } } - /// Get tags from users + /// The tags associated with the team. public class TeamworkTagItemRequestBuilderGetQueryParameters { /// Expand related entities [QueryParameter("%24expand")] diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.cs index 8277bf13c71..01f8112f00f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.cs @@ -57,7 +57,7 @@ public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get tags from users + /// Get a list of the tag objects and their properties. /// Configuration for the request such as headers, query parameters, and middleware options. /// public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { @@ -77,7 +77,7 @@ public RequestInformation CreateGetRequestInformation(Action - /// Create new navigation property to tags for users + /// Create a standard tag for members in a team. /// /// Configuration for the request such as headers, query parameters, and middleware options. /// @@ -99,7 +99,7 @@ public RequestInformation CreatePostRequestInformation(TeamworkTag body, Action< return requestInfo; } /// - /// Get tags from users + /// Get a list of the tag objects and their properties. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// Response handler to use in place of the default response handling provided by the core service @@ -113,7 +113,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } /// - /// Create new navigation property to tags for users + /// Create a standard tag for members in a team. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -128,7 +128,7 @@ public async Task PostAsync(TeamworkTag body, Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } - /// Get tags from users + /// Get a list of the tag objects and their properties. public class TagsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaResponse.cs index 9fa075b422e..c878c146fbd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.MailFolders.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs index 023d2047fc3..c22c70cfadf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.MailFolders.Item.ChildFolders.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs index e867b24df25..b9c1c24e5e6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaResponse.cs index c2912a50c24..4deb93bfc52 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.MailFolders.Item.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs index 4cdf563dfc4..53524e7d8e4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs @@ -18,6 +18,7 @@ using Microsoft.Graph.Users.Item.ManagedDevices.Item.ShutDown; using Microsoft.Graph.Users.Item.ManagedDevices.Item.SyncDevice; using Microsoft.Graph.Users.Item.ManagedDevices.Item.UpdateWindowsDeviceAccount; +using Microsoft.Graph.Users.Item.ManagedDevices.Item.Users; using Microsoft.Graph.Users.Item.ManagedDevices.Item.WindowsDefenderScan; using Microsoft.Graph.Users.Item.ManagedDevices.Item.WindowsDefenderUpdateSignatures; using Microsoft.Graph.Users.Item.ManagedDevices.Item.Wipe; @@ -110,6 +111,10 @@ public class ManagedDeviceItemRequestBuilder { } /// Url template to use to build the URL for the current request builder private string UrlTemplate { get; set; } + /// The users property + public Microsoft.Graph.Users.Item.ManagedDevices.Item.Users.UsersRequestBuilder Users { get => + new Microsoft.Graph.Users.Item.ManagedDevices.Item.Users.UsersRequestBuilder(PathParameters, RequestAdapter); + } /// The windowsDefenderScan property public WindowsDefenderScanRequestBuilder WindowsDefenderScan { get => new WindowsDefenderScanRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Users/UsersRequestBuilder.cs new file mode 100644 index 00000000000..94bc99e0711 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Users/UsersRequestBuilder.cs @@ -0,0 +1,125 @@ +using Microsoft.Graph.Models; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Users.Item.ManagedDevices.Item.Users { + /// Provides operations to manage the users property of the microsoft.graph.managedDevice entity. + public class UsersRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new UsersRequestBuilder and sets the default values. + /// Path parameters for the request + /// The request adapter to use to execute the requests. + /// + public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/users/{user%2Did}/managedDevices/{managedDevice%2Did}/users{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UsersRequestBuilder and sets the default values. + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + /// + public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/users/{user%2Did}/managedDevices/{managedDevice%2Did}/users{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// The primary users associated with the managed device. + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public RequestInformation CreateGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UsersRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The primary users associated with the managed device. + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// Response handler to use in place of the default response handling provided by the core service + /// + public async Task GetAsync(Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { + var requestInfo = CreateGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); + } + /// The primary users associated with the managed device. + public class UsersRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// Configuration for the request such as headers, query parameters, and middleware options. + public class UsersRequestBuilderGetRequestConfiguration { + /// Request headers + public IDictionary Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UsersRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UsersRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new usersRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UsersRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new Dictionary(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaResponse.cs index 506cfb477d0..749acf2cc6c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Messages.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs index d2f5a67a544..d377548e9fe 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { /// Provides operations to call the getRecentNotebooks method. - public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getRecentNotebooksWithIncludePersonalNotebooksResponse and sets the default values. - /// - public GetRecentNotebooksWithIncludePersonalNotebooksResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetRecentNotebooksWithIncludePersonalNotebooksResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetRecentNotebooksWithIncludePersonalNotebooksResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetRecentNotebooksWithIncludePersonalNotebooksResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/OutlookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/OutlookRequestBuilder.cs index a24cb400d1a..10fbd60e194 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/OutlookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/OutlookRequestBuilder.cs @@ -73,28 +73,6 @@ public RequestInformation CreateGetRequestInformation(Action - /// Update the navigation property outlook in users - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public RequestInformation CreatePatchRequestInformation(OutlookUser body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new OutlookRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get outlook from users /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,22 +87,6 @@ public async Task GetAsync(Action(requestInfo, OutlookUser.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); } /// - /// Update the navigation property outlook in users - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// Response handler to use in place of the default response handling provided by the core service - /// - public async Task PatchAsync(OutlookUser body, Action requestConfiguration = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = CreatePatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, OutlookUser.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken); - } - /// /// Provides operations to call the supportedLanguages method. /// public SupportedLanguagesRequestBuilder SupportedLanguages() { @@ -166,19 +128,5 @@ public OutlookRequestBuilderGetRequestConfiguration() { Headers = new Dictionary(); } } - /// Configuration for the request such as headers, query parameters, and middleware options. - public class OutlookRequestBuilderPatchRequestConfiguration { - /// Request headers - public IDictionary Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new outlookRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public OutlookRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new Dictionary(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs index 16315df8035..d935bcf6320 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Outlook.SupportedLanguages { /// Provides operations to call the supportedLanguages method. - public class SupportedLanguagesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SupportedLanguagesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new supportedLanguagesResponse and sets the default values. - /// - public SupportedLanguagesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SupportedLanguagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SupportedLanguagesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SupportedLanguagesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LocaleInfo.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs index 0e3097368d5..dded595f0ae 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Outlook.SupportedTimeZones { /// Provides operations to call the supportedTimeZones method. - public class SupportedTimeZonesResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SupportedTimeZonesResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new supportedTimeZonesResponse and sets the default values. - /// - public SupportedTimeZonesResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SupportedTimeZonesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SupportedTimeZonesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SupportedTimeZonesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs index f22a5c2b19b..0db20761742 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Outlook.SupportedTimeZonesWithTimeZoneStandard { /// Provides operations to call the supportedTimeZones method. - public class SupportedTimeZonesWithTimeZoneStandardResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SupportedTimeZonesWithTimeZoneStandardResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new supportedTimeZonesWithTimeZoneStandardResponse and sets the default values. - /// - public SupportedTimeZonesWithTimeZoneStandardResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SupportedTimeZonesWithTimeZoneStandardResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SupportedTimeZonesWithTimeZoneStandardResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SupportedTimeZonesWithTimeZoneStandardResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs index 98ec2e635e5..74856fbe7a2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.ReminderViewWithStartDateTimeWithEndDateTime { /// Provides operations to call the reminderView method. - public class ReminderViewWithStartDateTimeWithEndDateTimeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class ReminderViewWithStartDateTimeWithEndDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new reminderViewWithStartDateTimeWithEndDateTimeResponse and sets the default values. - /// - public ReminderViewWithStartDateTimeWithEndDateTimeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static ReminderViewWithStartDateTimeWithEndDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new ReminderViewWithStartDateTimeWithEndDateTimeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ReminderViewWithStartDateTimeWithEndDateTimeResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Reminder.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaResponse.cs index e680a63dc3f..a023800c494 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Todo.Lists.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTaskList.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs index 10d25ebacb8..3cf660b0714 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.Todo.Lists.Item.Tasks.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTask.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsResponse.cs index de05f2901c3..0ff302b2ddc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Users.Item.TranslateExchangeIds { /// Provides operations to call the translateExchangeIds method. - public class TranslateExchangeIdsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class TranslateExchangeIdsResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new translateExchangeIdsResponse and sets the default values. - /// - public TranslateExchangeIdsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static TranslateExchangeIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new TranslateExchangeIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new TranslateExchangeIdsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ConvertIdResult.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Workbooks/Item/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Workbooks/Item/Delta/DeltaResponse.cs index 62c59f138db..5d056592028 100644 --- a/src/Microsoft.Graph/Generated/Workbooks/Item/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Workbooks/Item/Delta/DeltaResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Workbooks.Item.Delta { /// Provides operations to call the delta method. - public class DeltaResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaResponse and sets the default values. - /// - public DeltaResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Workbooks/Item/DeltaWithToken/DeltaWithTokenResponse.cs b/src/Microsoft.Graph/Generated/Workbooks/Item/DeltaWithToken/DeltaWithTokenResponse.cs index 1b2fa784865..576298c062c 100644 --- a/src/Microsoft.Graph/Generated/Workbooks/Item/DeltaWithToken/DeltaWithTokenResponse.cs +++ b/src/Microsoft.Graph/Generated/Workbooks/Item/DeltaWithToken/DeltaWithTokenResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Workbooks.Item.DeltaWithToken { /// Provides operations to call the delta method. - public class DeltaWithTokenResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class DeltaWithTokenResponse : BaseDeltaFunctionResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new deltaWithTokenResponse and sets the default values. - /// - public DeltaWithTokenResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaWithTokenResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaWithTokenResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Workbooks/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Workbooks/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 3cb5065a575..c9a05bf0103 100644 --- a/src/Microsoft.Graph/Generated/Workbooks/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Workbooks/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Workbooks.Item.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Workbooks/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Workbooks/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index e3d308eb4d9..cd386441167 100644 --- a/src/Microsoft.Graph/Generated/Workbooks/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Workbooks/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Workbooks.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Workbooks/Item/Invite/InviteResponse.cs b/src/Microsoft.Graph/Generated/Workbooks/Item/Invite/InviteResponse.cs index 8a8edf346e5..d397ecf8191 100644 --- a/src/Microsoft.Graph/Generated/Workbooks/Item/Invite/InviteResponse.cs +++ b/src/Microsoft.Graph/Generated/Workbooks/Item/Invite/InviteResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Workbooks.Item.Invite { /// Provides operations to call the invite method. - public class InviteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class InviteResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new inviteResponse and sets the default values. - /// - public InviteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new InviteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InviteResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Workbooks/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Workbooks/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 4a114962333..d42be93233d 100644 --- a/src/Microsoft.Graph/Generated/Workbooks/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Workbooks/Item/ListItem/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Workbooks.Item.ListItem.GetActivitiesByInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Workbooks/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Workbooks/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 994b4d7b518..cb49efb35c4 100644 --- a/src/Microsoft.Graph/Generated/Workbooks/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Workbooks/Item/ListItem/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Workbooks.Item.ListItem.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { /// Provides operations to call the getActivitiesByInterval method. - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. - /// - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Workbooks/Item/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Workbooks/Item/Permissions/Item/Grant/GrantResponse.cs index f9efe330ed2..0d365c94f99 100644 --- a/src/Microsoft.Graph/Generated/Workbooks/Item/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Workbooks/Item/Permissions/Item/Grant/GrantResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Workbooks.Item.Permissions.Item.Grant { /// Provides operations to call the grant method. - public class GrantResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new grantResponse and sets the default values. - /// - public GrantResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GrantResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Workbooks/Item/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Workbooks/Item/SearchWithQ/SearchWithQResponse.cs index 8eee2f923fd..49d7f19f840 100644 --- a/src/Microsoft.Graph/Generated/Workbooks/Item/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Workbooks/Item/SearchWithQ/SearchWithQResponse.cs @@ -1,45 +1,30 @@ using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Workbooks.Item.SearchWithQ { /// Provides operations to call the search method. - public class SearchWithQResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property public List Value { get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new searchWithQResponse and sets the default values. - /// - public SearchWithQResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } - /// /// Creates a new instance of the appropriate class based on discriminator value /// The parse node to use to read the discriminator value and create the object /// - public static SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SearchWithQResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -47,10 +32,10 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// Serialization writer to use to serialize this model /// - public void Serialize(ISerializationWriter writer) { + public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); - writer.WriteAdditionalData(AdditionalData); } } } From 3f6601ca388c21d0ebab7ded96cf9b28a125d195 Mon Sep 17 00:00:00 2001 From: Eastman Date: Thu, 13 Oct 2022 12:35:26 +0300 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ced1af14f49..249bb4e8729 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,14 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ### Changed +- Adds OdataDeltaLink property to collection responses for delta + +## [5.0.0-preview.12] - 2022-09-29 + +### Added + +### Changed + - Fixes incorrect types for collection types referencing enums - [Kiota #1846](https://github.com/microsoft/kiota/pull/1846) - Fixes missing return object types for PATCH/POST/PUT calls - https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/issues/478 - Fixes missing QueryParameters for odata functions e.g delta