From de17d9483697e277e2458867fdfba1ef1f0c9011 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 23 Jul 2024 10:32:05 +0000 Subject: [PATCH] feat(generation): update request builders and models Update generated files with build 157162 --- .../ItemInsightsRequestBuilder.php | 146 +++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...sightsRequestBuilderGetQueryParameters.php | 34 ++ ...sRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Admin/People/PeopleRequestBuilder.php | 8 + ...edIdentityCredentialItemRequestBuilder.php | 4 +- ...ntityCredentialsWithNameRequestBuilder.php | 4 +- .../GetMemberGroupsRequestBuilder.php | 4 +- src/Generated/Chats/ChatsRequestBuilder.php | 8 + .../GetAllRetainedMessagesGetResponse.php | 72 ++++ .../GetAllRetainedMessagesRequestBuilder.php | 76 ++++ ...ssagesRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ .../ConversationMemberItemRequestBuilder.php | 6 +- ...erItemRequestBuilderGetQueryParameters.php | 2 +- .../Item/Messages/MessagesRequestBuilder.php | 6 +- .../Invite/InviteRequestBuilder.php | 6 +- .../GetMemberGroupsRequestBuilder.php | 4 +- .../GetMemberGroupsRequestBuilder.php | 4 +- .../DeviceAppManagementRequestBuilder.php | 4 +- .../TargetApps/TargetAppsRequestBuilder.php | 2 +- .../ManagedAppPoliciesRequestBuilder.php | 6 +- ...liciesRequestBuilderGetQueryParameters.php | 2 +- .../TargetApps/TargetAppsRequestBuilder.php | 2 +- .../TargetApps/TargetAppsRequestBuilder.php | 2 +- ...nagedAppRegistrationItemRequestBuilder.php | 6 +- ...onItemRequestBuilderGetQueryParameters.php | 2 +- .../ManagedAppRegistrationsRequestBuilder.php | 6 +- ...ationsRequestBuilderGetQueryParameters.php | 2 +- .../Assignments/AssignmentsRequestBuilder.php | 6 +- ...nagedEBookAssignmentItemRequestBuilder.php | 12 +- ...ntItemRequestBuilderGetQueryParameters.php | 2 +- .../ManagedEBooksRequestBuilder.php | 6 +- ...EBooksRequestBuilderGetQueryParameters.php | 2 +- .../Item/MobileAppItemRequestBuilder.php | 18 +- ...ppItemRequestBuilderGetQueryParameters.php | 2 +- .../MobileApps/MobileAppsRequestBuilder.php | 12 +- ...leAppsRequestBuilderGetQueryParameters.php | 2 +- ...DeviceCompliancePoliciesRequestBuilder.php | 12 +- ...liciesRequestBuilderGetQueryParameters.php | 2 +- ...viceCompliancePolicyItemRequestBuilder.php | 18 +- ...cyItemRequestBuilderGetQueryParameters.php | 2 +- .../DeviceConfigurationsRequestBuilder.php | 12 +- ...ationsRequestBuilderGetQueryParameters.php | 2 +- .../DeviceConfigurationItemRequestBuilder.php | 18 +- ...onItemRequestBuilderGetQueryParameters.php | 2 +- ...EnrollmentConfigurationsRequestBuilder.php | 6 +- ...ollmentConfigurationItemRequestBuilder.php | 18 +- ...onItemRequestBuilderGetQueryParameters.php | 2 +- .../DeviceManagementRequestBuilder.php | 4 +- .../Item/RoleDefinitionItemRequestBuilder.php | 6 +- .../RoleDefinitionsRequestBuilder.php | 6 +- ...itionsRequestBuilderGetQueryParameters.php | 2 +- .../GetMemberGroupsRequestBuilder.php | 4 +- .../GetMemberGroupsRequestBuilder.php | 4 +- .../CompanySubscriptionItemRequestBuilder.php | 5 +- ...onItemRequestBuilderGetQueryParameters.php | 2 +- .../SubscriptionsRequestBuilder.php | 5 +- ...ptionsRequestBuilderGetQueryParameters.php | 2 +- ...thCommerceSubscriptionIdRequestBuilder.php | 5 +- ...tionIdRequestBuilderGetQueryParameters.php | 2 +- .../GetMemberGroupsRequestBuilder.php | 4 +- .../GetMemberGroupsRequestBuilder.php | 4 +- .../GetMemberGroupsRequestBuilder.php | 4 +- .../RetentionLabelRequestBuilder.php | 6 +- .../Names/Item/Range/RangeRequestBuilder.php | 6 +- .../Workbook/Tables/Add/AddRequestBuilder.php | 6 +- .../Names/Item/Range/RangeRequestBuilder.php | 6 +- .../Item/Tables/Add/AddRequestBuilder.php | 6 +- .../Item/ExternalItemItemRequestBuilder.php | 6 +- .../GetMemberGroupsRequestBuilder.php | 4 +- src/Generated/Groups/GroupsRequestBuilder.php | 6 +- .../AddFavorite/AddFavoriteRequestBuilder.php | 4 +- .../ConversationsRequestBuilder.php | 6 +- .../Item/ConversationItemRequestBuilder.php | 8 +- ...onItemRequestBuilderGetQueryParameters.php | 2 +- .../GetMemberGroupsRequestBuilder.php | 4 +- .../Team/Channels/ChannelsRequestBuilder.php | 8 + .../GetAllRetainedMessagesGetResponse.php | 72 ++++ .../GetAllRetainedMessagesRequestBuilder.php | 76 ++++ ...ssagesRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ .../Item/Archive/ArchivePostRequestBody.php | 114 ++++++ .../Item/Archive/ArchiveRequestBuilder.php | 77 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Item/ChannelItemRequestBuilder.php | 16 + .../Unarchive/UnarchiveRequestBuilder.php | 74 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Archive/ArchivePostRequestBody.php | 114 ++++++ .../Archive/ArchiveRequestBuilder.php | 77 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../PrimaryChannelRequestBuilder.php | 16 + .../Unarchive/UnarchiveRequestBuilder.php | 74 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../ConversationThreadItemRequestBuilder.php | 6 +- ...adItemRequestBuilderGetQueryParameters.php | 2 +- .../Item/ExtensionItemRequestBuilder.php | 4 +- .../Item/Posts/PostsRequestBuilder.php | 6 +- .../PostsRequestBuilderGetQueryParameters.php | 2 +- ...alUsersSelfServiceSignUpRequestBuilder.php | 12 +- ...alUsersSelfServiceSignUpRequestBuilder.php | 12 +- ...ombinationConfigurationsRequestBuilder.php | 8 +- ...ationsRequestBuilderGetQueryParameters.php | 2 +- ...inationConfigurationItemRequestBuilder.php | 4 +- .../Item/NamedLocationItemRequestBuilder.php | 12 +- ...onItemRequestBuilderGetQueryParameters.php | 2 +- .../Item/AccessPackageItemRequestBuilder.php | 6 +- ...geItemRequestBuilderGetQueryParameters.php | 2 +- ...kageAssignmentPolicyItemRequestBuilder.php | 5 +- ...stomCalloutExtensionItemRequestBuilder.php | 6 +- .../Item/AgreementItemRequestBuilder.php | 6 +- ...ntItemRequestBuilderGetQueryParameters.php | 2 +- .../Invitations/InvitationsRequestBuilder.php | 22 +- .../InvitedUser/InvitedUserRequestBuilder.php | 8 +- ...edUserRequestBuilderGetQueryParameters.php | 2 +- ...rRequestBuilderGetRequestConfiguration.php | 2 +- .../MailboxSettingsRequestBuilder.php | 6 +- ...ttingsRequestBuilderGetQueryParameters.php | 2 +- ...sRequestBuilderGetRequestConfiguration.php | 2 +- ...equestBuilderPatchRequestConfiguration.php | 2 +- .../Count/CountRequestBuilder.php | 4 +- .../CountRequestBuilderGetQueryParameters.php | 2 +- ...tRequestBuilderGetRequestConfiguration.php | 2 +- ...erviceProvisioningErrorsRequestBuilder.php | 8 +- ...ErrorsRequestBuilderGetQueryParameters.php | 2 +- ...sRequestBuilderGetRequestConfiguration.php | 2 +- .../Count/CountRequestBuilder.php | 4 +- .../CountRequestBuilderGetQueryParameters.php | 2 +- ...tRequestBuilderGetRequestConfiguration.php | 2 +- .../InvitedUserSponsorsRequestBuilder.php | 8 +- ...onsorsRequestBuilderGetQueryParameters.php | 2 +- ...sRequestBuilderGetRequestConfiguration.php | 2 +- .../DirectoryObjectItemRequestBuilder.php | 4 +- ...ctItemRequestBuilderGetQueryParameters.php | 2 +- ...mRequestBuilderGetRequestConfiguration.php | 2 +- ...mRequestBuilderGetRequestConfiguration.php | 39 -- src/Generated/Models/AccessPackage.php | 4 +- .../AppManagementApplicationConfiguration.php | 46 +++ .../Models/AppManagementConfiguration.php | 9 + src/Generated/Models/AppManagementPolicy.php | 12 +- ...anagementServicePrincipalConfiguration.php | 46 +++ src/Generated/Models/Application.php | 22 ++ .../Models/AppliedConditionalAccessPolicy.php | 8 +- src/Generated/Models/AssignmentType.php | 1 + src/Generated/Models/Authentication.php | 4 +- ...AuthenticationCombinationConfiguration.php | 4 +- src/Generated/Models/BookingAppointment.php | 89 +++++ src/Generated/Models/BookingBusiness.php | 67 ++++ .../Models/BookingCustomQuestion.php | 45 +++ src/Generated/Models/BookingCustomer.php | 45 +++ .../Models/BookingPageAccessControl.php | 11 + src/Generated/Models/BookingPageSettings.php | 356 ++++++++++++++++++ .../Models/BookingSchedulingPolicy.php | 69 ++++ src/Generated/Models/BookingService.php | 67 ++++ src/Generated/Models/BookingStaffMember.php | 45 +++ src/Generated/Models/BookingsAvailability.php | 168 +++++++++ .../Models/BookingsAvailabilityWindow.php | 91 +++++ .../BookingsServiceAvailabilityType.php | 12 + src/Generated/Models/CallTranscript.php | 4 +- src/Generated/Models/Channel.php | 22 ++ src/Generated/Models/CompanySubscription.php | 48 +-- .../Models/ConditionalAccessConditionSet.php | 4 +- .../CrossTenantAccessPolicyB2BSetting.php | 7 + ...TenantAccessPolicyConfigurationDefault.php | 22 ++ ...TenantAccessPolicyConfigurationPartner.php | 22 ++ .../Models/CrossTenantAccessPolicyTarget.php | 4 +- ...ssTenantAccessPolicyTenantRestrictions.php | 68 ++++ .../CustomAppManagementConfiguration.php | 46 +++ src/Generated/Models/DevicesFilter.php | 158 ++++++++ src/Generated/Models/Directory.php | 4 +- src/Generated/Models/EducationRubric.php | 12 +- src/Generated/Models/Entity.php | 15 + .../ExternalConnectors/PropertyRule.php | 4 +- src/Generated/Models/Group.php | 4 +- src/Generated/Models/Identity.php | 8 +- src/Generated/Models/InsightsSettings.php | 89 +++++ src/Generated/Models/ItemInsights.php | 45 +++ .../Models/MeetingParticipantInfo.php | 7 + .../NativeAuthenticationApisEnabled.php | 11 + src/Generated/Models/OfficeGraphInsights.php | 19 +- src/Generated/Models/OnlineMeeting.php | 4 +- src/Generated/Models/PeopleAdminSettings.php | 22 ++ src/Generated/Models/SecureScore.php | 4 +- .../Models/Security/AlertEvidence.php | 2 + .../Security/CloudLogonRequestEvidence.php | 68 ++++ .../Security/CloudLogonSessionEvidence.php | 245 ++++++++++++ src/Generated/Models/Security/Incident.php | 22 ++ .../Models/Security/SslCertificate.php | 4 +- .../Models/ServiceStorageQuotaBreakdown.php | 45 +++ ...torageQuotaBreakdownCollectionResponse.php | 70 ++++ src/Generated/Models/Shared.php | 4 +- src/Generated/Models/Storage.php | 22 ++ .../Models/StorageQuotaBreakdown.php | 118 ++++++ src/Generated/Models/StorageSettings.php | 67 ++++ src/Generated/Models/SubscribedSku.php | 8 +- .../Models/SynchronizationSchedule.php | 4 +- .../Models/TeamsAsyncOperationType.php | 2 + src/Generated/Models/Teamwork.php | 4 +- .../Models/TenantAppManagementPolicy.php | 24 +- src/Generated/Models/UnifiedStorageQuota.php | 202 ++++++++++ src/Generated/Models/User.php | 12 +- src/Generated/Models/UserInsightsSettings.php | 67 ++++ .../Models/UserRegistrationDetails.php | 4 +- src/Generated/Models/UserSettings.php | 44 +++ src/Generated/Models/UserStorage.php | 67 ++++ src/Generated/Models/UserTeamwork.php | 8 +- src/Generated/Models/VirtualEvent.php | 25 ++ .../Models/VirtualEventPresenter.php | 111 ++++++ ...irtualEventPresenterCollectionResponse.php | 70 ++++ .../Models/VirtualEventPresenterDetails.php | 269 +++++++++++++ .../Models/VirtualEventPresenterInfo.php | 68 ++++ .../Models/VirtualEventRegistration.php | 68 ++++ .../VirtualEventRegistrationConfiguration.php | 121 ++++++ ...VirtualEventRegistrationCustomQuestion.php | 100 +++++ ...ualEventRegistrationPredefinedQuestion.php | 68 ++++ ...entRegistrationPredefinedQuestionLabel.php | 17 + ...entRegistrationQuestionAnswerInputType.php | 14 + .../VirtualEventRegistrationQuestionBase.php | 97 +++++ ...strationQuestionBaseCollectionResponse.php | 70 ++++ src/Generated/Models/VirtualEventTownhall.php | 139 +++++++ ...VirtualEventTownhallCollectionResponse.php | 70 ++++ src/Generated/Models/VirtualEventWebinar.php | 23 ++ ...lEventWebinarRegistrationConfiguration.php | 89 +++++ src/Generated/Models/VirtualEventsRoot.php | 24 ++ src/Generated/Models/WorkbookRange.php | 8 +- ...509CertificateCombinationConfiguration.php | 8 +- .../GetMemberGroupsRequestBuilder.php | 4 +- .../Item/OrganizationItemRequestBuilder.php | 12 +- ...onItemRequestBuilderGetQueryParameters.php | 2 +- .../OrganizationRequestBuilder.php | 6 +- ...zationRequestBuilderGetQueryParameters.php | 2 +- .../GetMemberGroupsRequestBuilder.php | 4 +- .../Item/HostItemRequestBuilder.php | 4 +- ...stItemRequestBuilderGetQueryParameters.php | 2 +- .../RelatedHostsRequestBuilder.php | 5 +- ...dHostsRequestBuilderGetQueryParameters.php | 2 +- .../GetMemberGroupsRequestBuilder.php | 4 +- src/Generated/Sites/SitesRequestBuilder.php | 6 +- .../SitesRequestBuilderGetQueryParameters.php | 2 +- .../Item/Cancel/CancelRequestBuilder.php | 73 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Presenters/Count/CountRequestBuilder.php | 78 ++++ .../CountRequestBuilderGetQueryParameters.php | 34 ++ ...tRequestBuilderGetRequestConfiguration.php | 39 ++ ...irtualEventPresenterItemRequestBuilder.php | 144 +++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...erItemRequestBuilderGetQueryParameters.php | 34 ++ ...mRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Presenters/PresentersRequestBuilder.php | 133 +++++++ ...entersRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Item/Publish/PublishRequestBuilder.php | 73 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Item/VirtualEventItemRequestBuilder.php | 24 ++ .../Townhalls/Count/CountRequestBuilder.php | 78 ++++ .../CountRequestBuilderGetQueryParameters.php | 34 ++ ...tRequestBuilderGetRequestConfiguration.php | 39 ++ .../Presenters/Count/CountRequestBuilder.php | 78 ++++ .../CountRequestBuilderGetQueryParameters.php | 34 ++ ...tRequestBuilderGetRequestConfiguration.php | 39 ++ ...irtualEventPresenterItemRequestBuilder.php | 144 +++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...erItemRequestBuilderGetQueryParameters.php | 34 ++ ...mRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Presenters/PresentersRequestBuilder.php | 133 +++++++ ...entersRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Sessions/Count/CountRequestBuilder.php | 78 ++++ .../CountRequestBuilderGetQueryParameters.php | 34 ++ ...tRequestBuilderGetRequestConfiguration.php | 39 ++ .../AttendanceReportsRequestBuilder.php | 133 +++++++ ...eportsRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Count/CountRequestBuilder.php | 78 ++++ .../CountRequestBuilderGetQueryParameters.php | 34 ++ ...tRequestBuilderGetRequestConfiguration.php | 39 ++ .../AttendanceRecordsRequestBuilder.php | 133 +++++++ ...ecordsRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Count/CountRequestBuilder.php | 78 ++++ .../CountRequestBuilderGetQueryParameters.php | 34 ++ ...tRequestBuilderGetRequestConfiguration.php | 39 ++ .../AttendanceRecordItemRequestBuilder.php | 144 +++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...rdItemRequestBuilderGetQueryParameters.php | 34 ++ ...mRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ ...tingAttendanceReportItemRequestBuilder.php | 152 ++++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...rtItemRequestBuilderGetQueryParameters.php | 34 ++ ...mRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../VirtualEventSessionItemRequestBuilder.php | 152 ++++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...onItemRequestBuilderGetQueryParameters.php | 34 ++ ...mRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Item/Sessions/SessionsRequestBuilder.php | 133 +++++++ ...ssionsRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ ...VirtualEventTownhallItemRequestBuilder.php | 160 ++++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...llItemRequestBuilderGetQueryParameters.php | 34 ++ ...mRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Townhalls/TownhallsRequestBuilder.php | 133 +++++++ ...nhallsRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../VirtualEventsRequestBuilder.php | 8 + .../Presenters/Count/CountRequestBuilder.php | 78 ++++ .../CountRequestBuilderGetQueryParameters.php | 34 ++ ...tRequestBuilderGetRequestConfiguration.php | 39 ++ ...irtualEventPresenterItemRequestBuilder.php | 144 +++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...erItemRequestBuilderGetQueryParameters.php | 34 ++ ...mRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Presenters/PresentersRequestBuilder.php | 133 +++++++ ...entersRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Questions/Count/CountRequestBuilder.php | 78 ++++ .../CountRequestBuilderGetQueryParameters.php | 34 ++ ...tRequestBuilderGetRequestConfiguration.php | 39 ++ ...strationQuestionBaseItemRequestBuilder.php | 144 +++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...seItemRequestBuilderGetQueryParameters.php | 34 ++ ...mRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Questions/QuestionsRequestBuilder.php | 133 +++++++ ...stionsRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ ...egistrationConfigurationRequestBuilder.php | 152 ++++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...rationRequestBuilderGetQueryParameters.php | 34 ++ ...nRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Item/Cancel/CancelRequestBuilder.php | 73 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Sessions/Count/CountRequestBuilder.php | 78 ++++ .../CountRequestBuilderGetQueryParameters.php | 34 ++ ...tRequestBuilderGetRequestConfiguration.php | 39 ++ .../VirtualEventSessionItemRequestBuilder.php | 77 ++++ ...onItemRequestBuilderGetQueryParameters.php | 34 ++ ...mRequestBuilderGetRequestConfiguration.php | 39 ++ .../Item/Sessions/SessionsRequestBuilder.php | 97 +++++ ...ssionsRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ ...ualEventRegistrationItemRequestBuilder.php | 16 + .../Cancel/CancelRequestBuilder.php | 73 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../RegistrationsWithEmailRequestBuilder.php | 156 ++++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...hEmailRequestBuilderGetQueryParameters.php | 34 ++ ...lRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Cancel/CancelRequestBuilder.php | 73 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../RegistrationsWithUserIdRequestBuilder.php | 156 ++++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...UserIdRequestBuilderGetQueryParameters.php | 34 ++ ...dRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ ...tingAttendanceReportItemRequestBuilder.php | 4 +- ...rtItemRequestBuilderGetQueryParameters.php | 2 +- .../VirtualEventWebinarItemRequestBuilder.php | 36 ++ .../Names/Item/Range/RangeRequestBuilder.php | 6 +- .../Workbook/Tables/Add/AddRequestBuilder.php | 6 +- .../Names/Item/Range/RangeRequestBuilder.php | 6 +- .../Item/Tables/Add/AddRequestBuilder.php | 6 +- ...FileStorageContainerItemRequestBuilder.php | 8 + .../PermanentDeleteRequestBuilder.php | 73 ++++ ...equestBuilderPostRequestConfiguration.php} | 6 +- .../Settings/Quota/QuotaRequestBuilder.php | 152 ++++++++ ...uestBuilderDeleteRequestConfiguration.php} | 6 +- ...QuotaRequestBuilderGetQueryParameters.php} | 8 +- ...aRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Services/Count/CountRequestBuilder.php | 78 ++++ .../CountRequestBuilderGetQueryParameters.php | 34 ++ ...tRequestBuilderGetRequestConfiguration.php | 39 ++ ...torageQuotaBreakdownItemRequestBuilder.php | 144 +++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...wnItemRequestBuilderGetQueryParameters.php | 34 ++ ...mRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Quota/Services/ServicesRequestBuilder.php | 133 +++++++ ...rvicesRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Settings/SettingsRequestBuilder.php | 152 ++++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...ttingsRequestBuilderGetQueryParameters.php | 34 ++ ...sRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Storage/StorageRequestBuilder.php | 8 + .../Item/Channels/ChannelsRequestBuilder.php | 8 + .../GetAllRetainedMessagesGetResponse.php | 72 ++++ .../GetAllRetainedMessagesRequestBuilder.php | 76 ++++ ...ssagesRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ .../Item/Archive/ArchivePostRequestBody.php | 114 ++++++ .../Item/Archive/ArchiveRequestBuilder.php | 77 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Item/ChannelItemRequestBuilder.php | 16 + .../ConversationMemberItemRequestBuilder.php | 12 +- .../Item/Messages/MessagesRequestBuilder.php | 6 +- .../Unarchive/UnarchiveRequestBuilder.php | 74 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Archive/ArchivePostRequestBody.php | 114 ++++++ .../Archive/ArchiveRequestBuilder.php | 77 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../PrimaryChannelRequestBuilder.php | 16 + .../Unarchive/UnarchiveRequestBuilder.php | 74 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Item/Channels/ChannelsRequestBuilder.php | 8 + .../GetAllRetainedMessagesGetResponse.php | 72 ++++ .../GetAllRetainedMessagesRequestBuilder.php | 76 ++++ ...ssagesRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ .../Item/Archive/ArchivePostRequestBody.php | 114 ++++++ .../Item/Archive/ArchiveRequestBuilder.php | 77 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Item/ChannelItemRequestBuilder.php | 16 + .../Unarchive/UnarchiveRequestBuilder.php | 74 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ ...LongRunningOperationItemRequestBuilder.php | 4 +- ...onItemRequestBuilderGetQueryParameters.php | 2 +- .../Operations/OperationsRequestBuilder.php | 4 +- ...ationsRequestBuilderGetQueryParameters.php | 2 +- .../Users/Item/Chats/ChatsRequestBuilder.php | 8 + .../GetAllRetainedMessagesGetResponse.php | 72 ++++ .../GetAllRetainedMessagesRequestBuilder.php | 76 ++++ ...ssagesRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ .../GetMemberGroupsRequestBuilder.php | 4 +- .../Item/Insights/InsightsRequestBuilder.php | 18 +- .../Item/SharedInsightItemRequestBuilder.php | 4 +- ...htItemRequestBuilderGetQueryParameters.php | 2 +- .../Insights/Shared/SharedRequestBuilder.php | 4 +- ...SharedRequestBuilderGetQueryParameters.php | 2 +- .../Item/TrendingItemRequestBuilder.php | 4 +- ...ngItemRequestBuilderGetQueryParameters.php | 2 +- .../Trending/TrendingRequestBuilder.php | 4 +- ...endingRequestBuilderGetQueryParameters.php | 2 +- .../Item/UsedInsightItemRequestBuilder.php | 4 +- ...htItemRequestBuilderGetQueryParameters.php | 2 +- .../Item/Insights/Used/UsedRequestBuilder.php | 4 +- .../UsedRequestBuilderGetQueryParameters.php | 2 +- .../Item/Channels/ChannelsRequestBuilder.php | 8 + .../GetAllRetainedMessagesGetResponse.php | 72 ++++ .../GetAllRetainedMessagesRequestBuilder.php | 76 ++++ ...ssagesRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ .../Item/Archive/ArchivePostRequestBody.php | 114 ++++++ .../Item/Archive/ArchiveRequestBuilder.php | 77 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Item/ChannelItemRequestBuilder.php | 16 + .../Unarchive/UnarchiveRequestBuilder.php | 74 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Archive/ArchivePostRequestBody.php | 114 ++++++ .../Archive/ArchiveRequestBuilder.php | 77 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../PrimaryChannelRequestBuilder.php | 16 + .../Unarchive/UnarchiveRequestBuilder.php | 74 ++++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../ItemInsightsRequestBuilder.php} | 82 ++-- ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...sightsRequestBuilderGetQueryParameters.php | 34 ++ ...sRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Item/Settings/SettingsRequestBuilder.php | 16 + .../Storage/Quota/QuotaRequestBuilder.php | 152 ++++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ .../QuotaRequestBuilderGetQueryParameters.php | 34 ++ ...aRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Services/Count/CountRequestBuilder.php | 78 ++++ .../CountRequestBuilderGetQueryParameters.php | 34 ++ ...tRequestBuilderGetRequestConfiguration.php | 39 ++ ...torageQuotaBreakdownItemRequestBuilder.php | 144 +++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...wnItemRequestBuilderGetQueryParameters.php | 34 ++ ...mRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Quota/Services/ServicesRequestBuilder.php | 133 +++++++ ...rvicesRequestBuilderGetQueryParameters.php | 82 ++++ ...sRequestBuilderGetRequestConfiguration.php | 45 +++ ...RequestBuilderPostRequestConfiguration.php | 22 ++ .../Storage/StorageRequestBuilder.php | 152 ++++++++ ...questBuilderDeleteRequestConfiguration.php | 22 ++ ...torageRequestBuilderGetQueryParameters.php | 34 ++ ...eRequestBuilderGetRequestConfiguration.php | 39 ++ ...equestBuilderPatchRequestConfiguration.php | 22 ++ .../Users/Item/UserItemRequestBuilder.php | 10 +- src/Generated/kiota-lock.json | 4 +- 506 files changed, 19101 insertions(+), 582 deletions(-) create mode 100644 src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilder.php create mode 100644 src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php create mode 100644 src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php create mode 100644 src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php create mode 100644 src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php create mode 100644 src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Groups/Item/Team/Channels/Item/Archive/ArchivePostRequestBody.php create mode 100644 src/Generated/Groups/Item/Team/Channels/Item/Archive/ArchiveRequestBuilder.php create mode 100644 src/Generated/Groups/Item/Team/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Groups/Item/Team/Channels/Item/Unarchive/UnarchiveRequestBuilder.php create mode 100644 src/Generated/Groups/Item/Team/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Groups/Item/Team/PrimaryChannel/Archive/ArchivePostRequestBody.php create mode 100644 src/Generated/Groups/Item/Team/PrimaryChannel/Archive/ArchiveRequestBuilder.php create mode 100644 src/Generated/Groups/Item/Team/PrimaryChannel/Archive/ArchiveRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Groups/Item/Team/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.php create mode 100644 src/Generated/Groups/Item/Team/PrimaryChannel/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php rename src/Generated/Invitations/{Item => }/InvitedUser/InvitedUserRequestBuilder.php (92%) rename src/Generated/Invitations/{Item => }/InvitedUser/InvitedUserRequestBuilderGetQueryParameters.php (93%) rename src/Generated/Invitations/{Item => }/InvitedUser/InvitedUserRequestBuilderGetRequestConfiguration.php (96%) rename src/Generated/Invitations/{Item => }/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.php (96%) rename src/Generated/Invitations/{Item => }/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilderGetQueryParameters.php (92%) rename src/Generated/Invitations/{Item => }/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilderGetRequestConfiguration.php (95%) rename src/Generated/Invitations/{Item => }/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilderPatchRequestConfiguration.php (89%) rename src/Generated/Invitations/{Item/InvitedUserSponsors => InvitedUser/ServiceProvisioningErrors}/Count/CountRequestBuilder.php (95%) rename src/Generated/Invitations/{Item => }/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php (89%) rename src/Generated/Invitations/{Item => }/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php (94%) rename src/Generated/Invitations/{Item => }/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php (91%) rename src/Generated/Invitations/{Item => }/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php (96%) rename src/Generated/Invitations/{Item => }/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php (96%) rename src/Generated/Invitations/{Item/InvitedUser/ServiceProvisioningErrors => InvitedUserSponsors}/Count/CountRequestBuilder.php (94%) rename src/Generated/Invitations/{Item => }/InvitedUserSponsors/Count/CountRequestBuilderGetQueryParameters.php (91%) rename src/Generated/Invitations/{Item => }/InvitedUserSponsors/Count/CountRequestBuilderGetRequestConfiguration.php (95%) rename src/Generated/Invitations/{Item => }/InvitedUserSponsors/InvitedUserSponsorsRequestBuilder.php (92%) rename src/Generated/Invitations/{Item => }/InvitedUserSponsors/InvitedUserSponsorsRequestBuilderGetQueryParameters.php (97%) rename src/Generated/Invitations/{Item => }/InvitedUserSponsors/InvitedUserSponsorsRequestBuilderGetRequestConfiguration.php (96%) rename src/Generated/Invitations/{Item => }/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilder.php (95%) rename src/Generated/Invitations/{Item => }/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php (93%) rename src/Generated/Invitations/{Item => }/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilderGetRequestConfiguration.php (95%) delete mode 100644 src/Generated/Invitations/Item/InvitationItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Models/AppManagementApplicationConfiguration.php create mode 100644 src/Generated/Models/AppManagementServicePrincipalConfiguration.php create mode 100644 src/Generated/Models/BookingPageAccessControl.php create mode 100644 src/Generated/Models/BookingPageSettings.php create mode 100644 src/Generated/Models/BookingsAvailability.php create mode 100644 src/Generated/Models/BookingsAvailabilityWindow.php create mode 100644 src/Generated/Models/BookingsServiceAvailabilityType.php create mode 100644 src/Generated/Models/CrossTenantAccessPolicyTenantRestrictions.php create mode 100644 src/Generated/Models/CustomAppManagementConfiguration.php create mode 100644 src/Generated/Models/DevicesFilter.php create mode 100644 src/Generated/Models/InsightsSettings.php create mode 100644 src/Generated/Models/ItemInsights.php create mode 100644 src/Generated/Models/NativeAuthenticationApisEnabled.php create mode 100644 src/Generated/Models/Security/CloudLogonRequestEvidence.php create mode 100644 src/Generated/Models/Security/CloudLogonSessionEvidence.php create mode 100644 src/Generated/Models/ServiceStorageQuotaBreakdown.php create mode 100644 src/Generated/Models/ServiceStorageQuotaBreakdownCollectionResponse.php create mode 100644 src/Generated/Models/StorageQuotaBreakdown.php create mode 100644 src/Generated/Models/StorageSettings.php create mode 100644 src/Generated/Models/UnifiedStorageQuota.php create mode 100644 src/Generated/Models/UserInsightsSettings.php create mode 100644 src/Generated/Models/UserStorage.php create mode 100644 src/Generated/Models/VirtualEventPresenter.php create mode 100644 src/Generated/Models/VirtualEventPresenterCollectionResponse.php create mode 100644 src/Generated/Models/VirtualEventPresenterDetails.php create mode 100644 src/Generated/Models/VirtualEventPresenterInfo.php create mode 100644 src/Generated/Models/VirtualEventRegistrationConfiguration.php create mode 100644 src/Generated/Models/VirtualEventRegistrationCustomQuestion.php create mode 100644 src/Generated/Models/VirtualEventRegistrationPredefinedQuestion.php create mode 100644 src/Generated/Models/VirtualEventRegistrationPredefinedQuestionLabel.php create mode 100644 src/Generated/Models/VirtualEventRegistrationQuestionAnswerInputType.php create mode 100644 src/Generated/Models/VirtualEventRegistrationQuestionBase.php create mode 100644 src/Generated/Models/VirtualEventRegistrationQuestionBaseCollectionResponse.php create mode 100644 src/Generated/Models/VirtualEventTownhall.php create mode 100644 src/Generated/Models/VirtualEventTownhallCollectionResponse.php create mode 100644 src/Generated/Models/VirtualEventWebinarRegistrationConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Cancel/CancelRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Count/CountRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Publish/PublishRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Events/Item/Publish/PublishRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Count/CountRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Count/CountRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Count/CountRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Count/CountRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Count/CountRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Cancel/CancelRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Count/CountRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilder.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/PermanentDelete/PermanentDeleteRequestBuilder.php rename src/Generated/{Invitations/Item/InvitationItemRequestBuilderPatchRequestConfiguration.php => Storage/FileStorage/Containers/Item/PermanentDelete/PermanentDeleteRequestBuilderPostRequestConfiguration.php} (73%) create mode 100644 src/Generated/Storage/Settings/Quota/QuotaRequestBuilder.php rename src/Generated/{Invitations/Item/InvitationItemRequestBuilderDeleteRequestConfiguration.php => Storage/Settings/Quota/QuotaRequestBuilderDeleteRequestConfiguration.php} (67%) rename src/Generated/{Invitations/Item/InvitationItemRequestBuilderGetQueryParameters.php => Storage/Settings/Quota/QuotaRequestBuilderGetQueryParameters.php} (73%) create mode 100644 src/Generated/Storage/Settings/Quota/QuotaRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/Settings/Quota/QuotaRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Storage/Settings/Quota/Services/Count/CountRequestBuilder.php create mode 100644 src/Generated/Storage/Settings/Quota/Services/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/Settings/Quota/Services/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilder.php create mode 100644 src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilder.php create mode 100644 src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Storage/Settings/SettingsRequestBuilder.php create mode 100644 src/Generated/Storage/Settings/SettingsRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Storage/Settings/SettingsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/Settings/SettingsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/Settings/SettingsRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php create mode 100644 src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php create mode 100644 src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Teams/Item/Channels/Item/Archive/ArchivePostRequestBody.php create mode 100644 src/Generated/Teams/Item/Channels/Item/Archive/ArchiveRequestBuilder.php create mode 100644 src/Generated/Teams/Item/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Teams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilder.php create mode 100644 src/Generated/Teams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Teams/Item/PrimaryChannel/Archive/ArchivePostRequestBody.php create mode 100644 src/Generated/Teams/Item/PrimaryChannel/Archive/ArchiveRequestBuilder.php create mode 100644 src/Generated/Teams/Item/PrimaryChannel/Archive/ArchiveRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Teams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.php create mode 100644 src/Generated/Teams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Archive/ArchivePostRequestBody.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilder.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilder.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php create mode 100644 src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php create mode 100644 src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Archive/ArchivePostRequestBody.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilder.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilder.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Archive/ArchivePostRequestBody.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Archive/ArchiveRequestBuilder.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Archive/ArchiveRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php rename src/Generated/{Invitations/Item/InvitationItemRequestBuilder.php => Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilder.php} (52%) create mode 100644 src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilder.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/Services/Count/CountRequestBuilder.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/Services/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/Services/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilder.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilder.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/Storage/StorageRequestBuilder.php create mode 100644 src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderPatchRequestConfiguration.php diff --git a/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilder.php b/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilder.php new file mode 100644 index 00000000000..29e8d6f8e1b --- /dev/null +++ b/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilder.php @@ -0,0 +1,146 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/admin/people/itemInsights{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property itemInsights for admin + * @param ItemInsightsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?ItemInsightsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. + * @param ItemInsightsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/peopleadminsettings-list-iteminsights?view=graph-rest-1.0 Find more info here + */ + public function get(?ItemInsightsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [InsightsSettings::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph. + * @param InsightsSettings $body The request body + * @param ItemInsightsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/insightssettings-update?view=graph-rest-1.0 Find more info here + */ + public function patch(InsightsSettings $body, ?ItemInsightsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [InsightsSettings::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property itemInsights for admin + * @param ItemInsightsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ItemInsightsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. + * @param ItemInsightsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ItemInsightsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph. + * @param InsightsSettings $body The request body + * @param ItemInsightsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(InsightsSettings $body, ?ItemInsightsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return ItemInsightsRequestBuilder + */ + public function withUrl(string $rawUrl): ItemInsightsRequestBuilder { + return new ItemInsightsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..f5e90e689d9 --- /dev/null +++ b/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ac530d65ae5 --- /dev/null +++ b/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new ItemInsightsRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..23a17294b6e --- /dev/null +++ b/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ItemInsightsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ItemInsightsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ItemInsightsRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ItemInsightsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ItemInsightsRequestBuilderGetQueryParameters { + return new ItemInsightsRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..521b6951880 --- /dev/null +++ b/src/Generated/Admin/People/ItemInsights/ItemInsightsRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/People/PeopleRequestBuilder.php b/src/Generated/Admin/People/PeopleRequestBuilder.php index 1e3ef6817b7..78eca30167c 100644 --- a/src/Generated/Admin/People/PeopleRequestBuilder.php +++ b/src/Generated/Admin/People/PeopleRequestBuilder.php @@ -4,6 +4,7 @@ use Exception; use Http\Promise\Promise; +use Microsoft\Graph\Generated\Admin\People\ItemInsights\ItemInsightsRequestBuilder; use Microsoft\Graph\Generated\Admin\People\ProfileCardProperties\ProfileCardPropertiesRequestBuilder; use Microsoft\Graph\Generated\Admin\People\Pronouns\PronounsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -18,6 +19,13 @@ */ class PeopleRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity. + */ + public function itemInsights(): ItemInsightsRequestBuilder { + return new ItemInsightsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity. */ diff --git a/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php b/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php index fabc51632f4..118e42fc2ef 100644 --- a/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php +++ b/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php @@ -61,7 +61,7 @@ public function get(?FederatedIdentityCredentialItemRequestBuilderGetRequestConf } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param FederatedIdentityCredential $body The request body * @param FederatedIdentityCredentialItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -116,7 +116,7 @@ public function toGetRequestInformation(?FederatedIdentityCredentialItemRequestB } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param FederatedIdentityCredential $body The request body * @param FederatedIdentityCredentialItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.php b/src/Generated/Applications/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.php index fb1e44a7537..496662a4c12 100644 --- a/src/Generated/Applications/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.php +++ b/src/Generated/Applications/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.php @@ -64,7 +64,7 @@ public function get(?FederatedIdentityCredentialsWithNameRequestBuilderGetReques } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param FederatedIdentityCredential $body The request body * @param FederatedIdentityCredentialsWithNameRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -119,7 +119,7 @@ public function toGetRequestInformation(?FederatedIdentityCredentialsWithNameReq } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param FederatedIdentityCredential $body The request body * @param FederatedIdentityCredentialsWithNameRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 2f40b691909..3cca9caa243 100644 --- a/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/ChatsRequestBuilder.php b/src/Generated/Chats/ChatsRequestBuilder.php index ef7c9a1ba91..bcb7c747523 100644 --- a/src/Generated/Chats/ChatsRequestBuilder.php +++ b/src/Generated/Chats/ChatsRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Chats\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Chats\GetAllMessages\GetAllMessagesRequestBuilder; +use Microsoft\Graph\Generated\Chats\GetAllRetainedMessages\GetAllRetainedMessagesRequestBuilder; use Microsoft\Graph\Generated\Chats\Item\ChatItemRequestBuilder; use Microsoft\Graph\Generated\Models\Chat; use Microsoft\Graph\Generated\Models\ChatCollectionResponse; @@ -34,6 +35,13 @@ public function getAllMessages(): GetAllMessagesRequestBuilder { return new GetAllMessagesRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the getAllRetainedMessages method. + */ + public function getAllRetainedMessages(): GetAllRetainedMessagesRequestBuilder { + return new GetAllRetainedMessagesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the collection of chat entities. * @param string $chatId The unique identifier of chat diff --git a/src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php b/src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php new file mode 100644 index 00000000000..515f836b76d --- /dev/null +++ b/src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ChatMessage::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php b/src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php new file mode 100644 index 00000000000..5a5fc20530e --- /dev/null +++ b/src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php @@ -0,0 +1,76 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function getAllRetainedMessages + * @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [GetAllRetainedMessagesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke function getAllRetainedMessages + * @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return GetAllRetainedMessagesRequestBuilder + */ + public function withUrl(string $rawUrl): GetAllRetainedMessagesRequestBuilder { + return new GetAllRetainedMessagesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php b/src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ea0dc00e7a0 --- /dev/null +++ b/src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new GetAllRetainedMessagesRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php b/src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d41d04149ba --- /dev/null +++ b/src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GetAllRetainedMessagesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GetAllRetainedMessagesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new GetAllRetainedMessagesRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return GetAllRetainedMessagesRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): GetAllRetainedMessagesRequestBuilderGetQueryParameters { + return new GetAllRetainedMessagesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php index 95257bc5ead..73cebe29760 100644 --- a/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -46,11 +46,11 @@ public function delete(?ConversationMemberItemRequestBuilderDeleteRequestConfigu } /** - * Retrieve a conversationMember from a chat. + * Retrieve a conversationMember from a chat or channel. * @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0 Find more info here */ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -94,7 +94,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder } /** - * Retrieve a conversationMember from a chat. + * Retrieve a conversationMember from a chat or channel. * @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php index 421bd7f2048..13da59c62c1 100644 --- a/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a conversationMember from a chat. + * Retrieve a conversationMember from a chat or channel. */ class ConversationMemberItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php index fc210c496a2..32f40e89a8e 100644 --- a/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php @@ -75,12 +75,12 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -112,7 +112,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + * Send a new chatMessage in the specified channel or a chat. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php index 12acddc4670..8bcf9646ece 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php @@ -31,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. * @param InvitePostRequestBody $body The request body * @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 Find more info here */ public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -47,7 +47,7 @@ public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostReque } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. * @param InvitePostRequestBody $body The request body * @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index bf274abf045..c487c9d33f9 100644 --- a/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index e7413fa2686..a0756db0e6d 100644 --- a/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php b/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php index 1846c46816c..f45ab57ce28 100644 --- a/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php @@ -155,7 +155,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param DeviceAppManagementRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-get?view=graph-rest-1.0 Find more info here */ public function get(?DeviceAppManagementRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -171,7 +171,7 @@ public function get(?DeviceAppManagementRequestBuilderGetRequestConfiguration $r * @param DeviceAppManagementRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-update?view=graph-rest-1.0 Find more info here */ public function patch(DeviceAppManagement $body, ?DeviceAppManagementRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.php index c14dff918a3..c9e0d3a0088 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.php @@ -35,7 +35,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param TargetAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 Find more info here */ public function post(TargetAppsPostRequestBody $body, ?TargetAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.php index f328140e310..afa996ecfce 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.php @@ -52,11 +52,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the targetedManagedAppProtection objects. + * List properties and relationships of the managedAppConfiguration objects. * @param ManagedAppPoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-list?view=graph-rest-1.0 Find more info here */ public function get(?ManagedAppPoliciesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -82,7 +82,7 @@ public function post(ManagedAppPolicy $body, ?ManagedAppPoliciesRequestBuilderPo } /** - * List properties and relationships of the targetedManagedAppProtection objects. + * List properties and relationships of the managedAppConfiguration objects. * @param ManagedAppPoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilderGetQueryParameters.php index 2d262d4c8b1..88d1f2c4ecd 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the targetedManagedAppProtection objects. + * List properties and relationships of the managedAppConfiguration objects. */ class ManagedAppPoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php index e141c5e3073..98d1e73293e 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php @@ -35,7 +35,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param TargetAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 Find more info here */ public function post(TargetAppsPostRequestBody $body, ?TargetAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php index ae38e904200..f8dc868a894 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php @@ -35,7 +35,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param TargetAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 Find more info here */ public function post(TargetAppsPostRequestBody $body, ?TargetAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php index f2aeb41e1d8..49c7472578f 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php @@ -69,11 +69,11 @@ public function delete(?ManagedAppRegistrationItemRequestBuilderDeleteRequestCon } /** - * Read properties and relationships of the androidManagedAppRegistration object. + * Read properties and relationships of the managedAppRegistration object. * @param ManagedAppRegistrationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-get?view=graph-rest-1.0 Find more info here */ public function get(?ManagedAppRegistrationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -117,7 +117,7 @@ public function toDeleteRequestInformation(?ManagedAppRegistrationItemRequestBui } /** - * Read properties and relationships of the androidManagedAppRegistration object. + * Read properties and relationships of the managedAppRegistration object. * @param ManagedAppRegistrationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilderGetQueryParameters.php index bae004f29fe..83949e72d79 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the androidManagedAppRegistration object. + * Read properties and relationships of the managedAppRegistration object. */ class ManagedAppRegistrationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.php index 81082a207c7..0e65ab6bf24 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.php @@ -60,11 +60,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the androidManagedAppRegistration objects. + * List properties and relationships of the managedAppRegistration objects. * @param ManagedAppRegistrationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-list?view=graph-rest-1.0 Find more info here */ public function get(?ManagedAppRegistrationsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -91,7 +91,7 @@ public function post(ManagedAppRegistration $body, ?ManagedAppRegistrationsReque } /** - * List properties and relationships of the androidManagedAppRegistration objects. + * List properties and relationships of the managedAppRegistration objects. * @param ManagedAppRegistrationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilderGetQueryParameters.php index 8163f822b71..b4f489ab30a 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the androidManagedAppRegistration objects. + * List properties and relationships of the managedAppRegistration objects. */ class ManagedAppRegistrationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.php index 01a4d78f3e1..e6210e194fc 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.php @@ -67,12 +67,12 @@ public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param ManagedEBookAssignment $body The request body * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-create?view=graph-rest-1.0 Find more info here */ public function post(ManagedEBookAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -104,7 +104,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param ManagedEBookAssignment $body The request body * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.php index 7ddb41d88fd..28836c49d2a 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.php @@ -46,11 +46,11 @@ public function delete(?ManagedEBookAssignmentItemRequestBuilderDeleteRequestCon } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. * @param ManagedEBookAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-get?view=graph-rest-1.0 Find more info here */ public function get(?ManagedEBookAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -61,12 +61,12 @@ public function get(?ManagedEBookAssignmentItemRequestBuilderGetRequestConfigura } /** - * Update the properties of a managedEBookAssignment object. + * Update the properties of a iosVppEBookAssignment object. * @param ManagedEBookAssignment $body The request body * @param ManagedEBookAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-update?view=graph-rest-1.0 Find more info here */ public function patch(ManagedEBookAssignment $body, ?ManagedEBookAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -95,7 +95,7 @@ public function toDeleteRequestInformation(?ManagedEBookAssignmentItemRequestBui } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. * @param ManagedEBookAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -116,7 +116,7 @@ public function toGetRequestInformation(?ManagedEBookAssignmentItemRequestBuilde } /** - * Update the properties of a managedEBookAssignment object. + * Update the properties of a iosVppEBookAssignment object. * @param ManagedEBookAssignment $body The request body * @param ManagedEBookAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilderGetQueryParameters.php index 854e051c551..fa920db8c52 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. */ class ManagedEBookAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.php index 336d1feb54c..f82eae537ba 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.php @@ -52,11 +52,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the iosVppEBook objects. + * List properties and relationships of the managedEBook objects. * @param ManagedEBooksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-books-iosvppebook-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-books-managedebook-list?view=graph-rest-1.0 Find more info here */ public function get(?ManagedEBooksRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -83,7 +83,7 @@ public function post(ManagedEBook $body, ?ManagedEBooksRequestBuilderPostRequest } /** - * List properties and relationships of the iosVppEBook objects. + * List properties and relationships of the managedEBook objects. * @param ManagedEBooksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilderGetQueryParameters.php index 0e5165889f1..eaa732c2dd0 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the iosVppEBook objects. + * List properties and relationships of the managedEBook objects. */ class ManagedEBooksRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.php index 8885200e4f6..e8d39ef93a9 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.php @@ -183,11 +183,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a iosLobApp. + * Deletes a windowsAppX. * @param MobileAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-apps-ioslobapp-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-windowsappx-delete?view=graph-rest-1.0 Find more info here */ public function delete(?MobileAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -198,11 +198,11 @@ public function delete(?MobileAppItemRequestBuilderDeleteRequestConfiguration $r } /** - * Read properties and relationships of the mobileLobApp object. + * Read properties and relationships of the managedMobileLobApp object. * @param MobileAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-apps-mobilelobapp-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-managedmobilelobapp-get?view=graph-rest-1.0 Find more info here */ public function get(?MobileAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -213,12 +213,12 @@ public function get(?MobileAppItemRequestBuilderGetRequestConfiguration $request } /** - * Update the properties of a iosStoreApp object. + * Update the properties of a windowsWebApp object. * @param MobileApp $body The request body * @param MobileAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-apps-iosstoreapp-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-windowswebapp-update?view=graph-rest-1.0 Find more info here */ public function patch(MobileApp $body, ?MobileAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -229,7 +229,7 @@ public function patch(MobileApp $body, ?MobileAppItemRequestBuilderPatchRequestC } /** - * Deletes a iosLobApp. + * Deletes a windowsAppX. * @param MobileAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -247,7 +247,7 @@ public function toDeleteRequestInformation(?MobileAppItemRequestBuilderDeleteReq } /** - * Read properties and relationships of the mobileLobApp object. + * Read properties and relationships of the managedMobileLobApp object. * @param MobileAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -268,7 +268,7 @@ public function toGetRequestInformation(?MobileAppItemRequestBuilderGetRequestCo } /** - * Update the properties of a iosStoreApp object. + * Update the properties of a windowsWebApp object. * @param MobileApp $body The request body * @param MobileAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilderGetQueryParameters.php index 4256f92c9a7..3a5d8b56184 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the mobileLobApp object. + * Read properties and relationships of the managedMobileLobApp object. */ class MobileAppItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.php index 36175b05f61..a43dc4b2d34 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.php @@ -180,11 +180,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the managedIOSLobApp objects. + * List properties and relationships of the macOSLobApp objects. * @param MobileAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-apps-managedioslobapp-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-macoslobapp-list?view=graph-rest-1.0 Find more info here */ public function get(?MobileAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -195,12 +195,12 @@ public function get(?MobileAppsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create a new windowsAppX object. + * Create a new iosiPadOSWebClip object. * @param MobileApp $body The request body * @param MobileAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-apps-windowsappx-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-iosipadoswebclip-create?view=graph-rest-1.0 Find more info here */ public function post(MobileApp $body, ?MobileAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -211,7 +211,7 @@ public function post(MobileApp $body, ?MobileAppsRequestBuilderPostRequestConfig } /** - * List properties and relationships of the managedIOSLobApp objects. + * List properties and relationships of the macOSLobApp objects. * @param MobileAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -232,7 +232,7 @@ public function toGetRequestInformation(?MobileAppsRequestBuilderGetRequestConfi } /** - * Create a new windowsAppX object. + * Create a new iosiPadOSWebClip object. * @param MobileApp $body The request body * @param MobileAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilderGetQueryParameters.php index e5bc8d8bb01..6f85747b153 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the managedIOSLobApp objects. + * List properties and relationships of the macOSLobApp objects. */ class MobileAppsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.php index d7ae9312f88..ae2942d0886 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.php @@ -52,11 +52,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the windows81CompliancePolicy objects. + * List properties and relationships of the macOSCompliancePolicy objects. * @param DeviceCompliancePoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-list?view=graph-rest-1.0 Find more info here */ public function get(?DeviceCompliancePoliciesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -67,12 +67,12 @@ public function get(?DeviceCompliancePoliciesRequestBuilderGetRequestConfigurati } /** - * Create a new windows10MobileCompliancePolicy object. + * Create a new androidWorkProfileCompliancePolicy object. * @param DeviceCompliancePolicy $body The request body * @param DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-create?view=graph-rest-1.0 Find more info here */ public function post(DeviceCompliancePolicy $body, ?DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -83,7 +83,7 @@ public function post(DeviceCompliancePolicy $body, ?DeviceCompliancePoliciesRequ } /** - * List properties and relationships of the windows81CompliancePolicy objects. + * List properties and relationships of the macOSCompliancePolicy objects. * @param DeviceCompliancePoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -104,7 +104,7 @@ public function toGetRequestInformation(?DeviceCompliancePoliciesRequestBuilderG } /** - * Create a new windows10MobileCompliancePolicy object. + * Create a new androidWorkProfileCompliancePolicy object. * @param DeviceCompliancePolicy $body The request body * @param DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilderGetQueryParameters.php index 82d050ad739..2f89606b58e 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the windows81CompliancePolicy objects. + * List properties and relationships of the macOSCompliancePolicy objects. */ class DeviceCompliancePoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.php index 00ade8fecab..8423c6e72f4 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.php @@ -103,11 +103,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a iosCompliancePolicy. + * Deletes a androidWorkProfileCompliancePolicy. * @param DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscompliancepolicy-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-delete?view=graph-rest-1.0 Find more info here */ public function delete(?DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -118,11 +118,11 @@ public function delete(?DeviceCompliancePolicyItemRequestBuilderDeleteRequestCon } /** - * Read properties and relationships of the windows81CompliancePolicy object. + * Read properties and relationships of the windows10MobileCompliancePolicy object. * @param DeviceCompliancePolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-get?view=graph-rest-1.0 Find more info here */ public function get(?DeviceCompliancePolicyItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -133,12 +133,12 @@ public function get(?DeviceCompliancePolicyItemRequestBuilderGetRequestConfigura } /** - * Update the properties of a windows10MobileCompliancePolicy object. + * Update the properties of a windows10CompliancePolicy object. * @param DeviceCompliancePolicy $body The request body * @param DeviceCompliancePolicyItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10compliancepolicy-update?view=graph-rest-1.0 Find more info here */ public function patch(DeviceCompliancePolicy $body, ?DeviceCompliancePolicyItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -149,7 +149,7 @@ public function patch(DeviceCompliancePolicy $body, ?DeviceCompliancePolicyItemR } /** - * Deletes a iosCompliancePolicy. + * Deletes a androidWorkProfileCompliancePolicy. * @param DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -167,7 +167,7 @@ public function toDeleteRequestInformation(?DeviceCompliancePolicyItemRequestBui } /** - * Read properties and relationships of the windows81CompliancePolicy object. + * Read properties and relationships of the windows10MobileCompliancePolicy object. * @param DeviceCompliancePolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -188,7 +188,7 @@ public function toGetRequestInformation(?DeviceCompliancePolicyItemRequestBuilde } /** - * Update the properties of a windows10MobileCompliancePolicy object. + * Update the properties of a windows10CompliancePolicy object. * @param DeviceCompliancePolicy $body The request body * @param DeviceCompliancePolicyItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilderGetQueryParameters.php index 72772bb5d47..688a52078ab 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the windows81CompliancePolicy object. + * Read properties and relationships of the windows10MobileCompliancePolicy object. */ class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.php index 4df8932a06e..d821dcd5a2e 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.php @@ -52,11 +52,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the windows10EndpointProtectionConfiguration objects. + * List properties and relationships of the macOSCustomConfiguration objects. * @param DeviceConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10endpointprotectionconfiguration-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscustomconfiguration-list?view=graph-rest-1.0 Find more info here */ public function get(?DeviceConfigurationsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -67,12 +67,12 @@ public function get(?DeviceConfigurationsRequestBuilderGetRequestConfiguration $ } /** - * Create a new windows81GeneralConfiguration object. + * Create a new windows10EndpointProtectionConfiguration object. * @param DeviceConfiguration $body The request body * @param DeviceConfigurationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81generalconfiguration-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10endpointprotectionconfiguration-create?view=graph-rest-1.0 Find more info here */ public function post(DeviceConfiguration $body, ?DeviceConfigurationsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -83,7 +83,7 @@ public function post(DeviceConfiguration $body, ?DeviceConfigurationsRequestBuil } /** - * List properties and relationships of the windows10EndpointProtectionConfiguration objects. + * List properties and relationships of the macOSCustomConfiguration objects. * @param DeviceConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -104,7 +104,7 @@ public function toGetRequestInformation(?DeviceConfigurationsRequestBuilderGetRe } /** - * Create a new windows81GeneralConfiguration object. + * Create a new windows10EndpointProtectionConfiguration object. * @param DeviceConfiguration $body The request body * @param DeviceConfigurationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilderGetQueryParameters.php index 43e8e1fef4d..842504401ae 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the windows10EndpointProtectionConfiguration objects. + * List properties and relationships of the macOSCustomConfiguration objects. */ class DeviceConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.php index 4f2143d7e7b..b5498ea15fc 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.php @@ -88,11 +88,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a windows10TeamGeneralConfiguration. + * Deletes a androidWorkProfileCustomConfiguration. * @param DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10teamgeneralconfiguration-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecustomconfiguration-delete?view=graph-rest-1.0 Find more info here */ public function delete(?DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -103,11 +103,11 @@ public function delete(?DeviceConfigurationItemRequestBuilderDeleteRequestConfig } /** - * Read properties and relationships of the androidWorkProfileGeneralDeviceConfiguration object. + * Read properties and relationships of the sharedPCConfiguration object. * @param DeviceConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilegeneraldeviceconfiguration-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-sharedpcconfiguration-get?view=graph-rest-1.0 Find more info here */ public function get(?DeviceConfigurationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -127,12 +127,12 @@ public function getOmaSettingPlainTextValueWithSecretReferenceValueId(string $se } /** - * Update the properties of a windows10EndpointProtectionConfiguration object. + * Update the properties of a macOSGeneralDeviceConfiguration object. * @param DeviceConfiguration $body The request body * @param DeviceConfigurationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10endpointprotectionconfiguration-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-macosgeneraldeviceconfiguration-update?view=graph-rest-1.0 Find more info here */ public function patch(DeviceConfiguration $body, ?DeviceConfigurationItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -143,7 +143,7 @@ public function patch(DeviceConfiguration $body, ?DeviceConfigurationItemRequest } /** - * Deletes a windows10TeamGeneralConfiguration. + * Deletes a androidWorkProfileCustomConfiguration. * @param DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -161,7 +161,7 @@ public function toDeleteRequestInformation(?DeviceConfigurationItemRequestBuilde } /** - * Read properties and relationships of the androidWorkProfileGeneralDeviceConfiguration object. + * Read properties and relationships of the sharedPCConfiguration object. * @param DeviceConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -182,7 +182,7 @@ public function toGetRequestInformation(?DeviceConfigurationItemRequestBuilderGe } /** - * Update the properties of a windows10EndpointProtectionConfiguration object. + * Update the properties of a macOSGeneralDeviceConfiguration object. * @param DeviceConfiguration $body The request body * @param DeviceConfigurationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilderGetQueryParameters.php index abc30e6ea12..f4cae3e2735 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the androidWorkProfileGeneralDeviceConfiguration object. + * Read properties and relationships of the sharedPCConfiguration object. */ class DeviceConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.php index 891599bcfb2..737b07129ef 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.php @@ -67,12 +67,12 @@ public function get(?DeviceEnrollmentConfigurationsRequestBuilderGetRequestConfi } /** - * Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param DeviceEnrollmentConfiguration $body The request body * @param DeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-create?view=graph-rest-1.0 Find more info here */ public function post(DeviceEnrollmentConfiguration $body, ?DeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -104,7 +104,7 @@ public function toGetRequestInformation(?DeviceEnrollmentConfigurationsRequestBu } /** - * Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param DeviceEnrollmentConfiguration $body The request body * @param DeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.php index e41a5ad489e..464ff7da752 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.php @@ -55,11 +55,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + * Deletes a deviceEnrollmentLimitConfiguration. * @param DeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-delete?view=graph-rest-1.0 Find more info here */ public function delete(?DeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -70,11 +70,11 @@ public function delete(?DeviceEnrollmentConfigurationItemRequestBuilderDeleteReq } /** - * Read properties and relationships of the deviceEnrollmentConfiguration object. + * Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param DeviceEnrollmentConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentconfiguration-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-get?view=graph-rest-1.0 Find more info here */ public function get(?DeviceEnrollmentConfigurationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -85,12 +85,12 @@ public function get(?DeviceEnrollmentConfigurationItemRequestBuilderGetRequestCo } /** - * Update the properties of a deviceEnrollmentLimitConfiguration object. + * Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. * @param DeviceEnrollmentConfiguration $body The request body * @param DeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-update?view=graph-rest-1.0 Find more info here */ public function patch(DeviceEnrollmentConfiguration $body, ?DeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -101,7 +101,7 @@ public function patch(DeviceEnrollmentConfiguration $body, ?DeviceEnrollmentConf } /** - * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + * Deletes a deviceEnrollmentLimitConfiguration. * @param DeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -119,7 +119,7 @@ public function toDeleteRequestInformation(?DeviceEnrollmentConfigurationItemReq } /** - * Read properties and relationships of the deviceEnrollmentConfiguration object. + * Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param DeviceEnrollmentConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -140,7 +140,7 @@ public function toGetRequestInformation(?DeviceEnrollmentConfigurationItemReques } /** - * Update the properties of a deviceEnrollmentLimitConfiguration object. + * Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. * @param DeviceEnrollmentConfiguration $body The request body * @param DeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters.php index 382c8125da1..6c181a7a96b 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the deviceEnrollmentConfiguration object. + * Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. */ class DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php b/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php index 54297938ccd..18247fa49d7 100644 --- a/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php @@ -509,7 +509,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param DeviceManagementRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-rbac-devicemanagement-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-raimportcerts-devicemanagement-get?view=graph-rest-1.0 Find more info here */ public function get(?DeviceManagementRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -534,7 +534,7 @@ public function getEffectivePermissionsWithScope(string $scope): GetEffectivePer * @param DeviceManagementRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-remoteassistance-devicemanagement-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-companyterms-devicemanagement-update?view=graph-rest-1.0 Find more info here */ public function patch(DeviceManagement $body, ?DeviceManagementRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.php b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.php index ced2af61043..6ec9cfa20af 100644 --- a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.php @@ -39,11 +39,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a roleDefinition. + * Deletes a deviceAndAppManagementRoleDefinition. * @param RoleDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-delete?view=graph-rest-1.0 Find more info here */ public function delete(?RoleDefinitionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -85,7 +85,7 @@ public function patch(RoleDefinition $body, ?RoleDefinitionItemRequestBuilderPat } /** - * Deletes a roleDefinition. + * Deletes a deviceAndAppManagementRoleDefinition. * @param RoleDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.php b/src/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.php index 1b0b00b736a..db6bd1c2b2c 100644 --- a/src/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.php @@ -52,11 +52,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the roleDefinition objects. + * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. * @param RoleDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-list?view=graph-rest-1.0 Find more info here */ public function get(?RoleDefinitionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -83,7 +83,7 @@ public function post(RoleDefinition $body, ?RoleDefinitionsRequestBuilderPostReq } /** - * List properties and relationships of the roleDefinition objects. + * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. * @param RoleDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilderGetQueryParameters.php index 5b0c2ffab4f..448a7624ee5 100644 --- a/src/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the roleDefinition objects. + * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. */ class RoleDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 5ac7811b2ad..f7c0eebfe9d 100644 --- a/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index bc9fb9e85c5..4f8db616d08 100644 --- a/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.php b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.php index b9c42a66508..973f089f4e3 100644 --- a/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.php +++ b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.php @@ -45,10 +45,11 @@ public function delete(?CompanySubscriptionItemRequestBuilderDeleteRequestConfig } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. * @param CompanySubscriptionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception + * @link https://learn.microsoft.com/graph/api/companysubscription-get?view=graph-rest-1.0 Find more info here */ public function get(?CompanySubscriptionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -92,7 +93,7 @@ public function toDeleteRequestInformation(?CompanySubscriptionItemRequestBuilde } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. * @param CompanySubscriptionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderGetQueryParameters.php b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderGetQueryParameters.php index b64db1b42a0..1f497716f98 100644 --- a/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/Subscriptions/Item/CompanySubscriptionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. */ class CompanySubscriptionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilder.php b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilder.php index c0c13b6c27b..61132f02551 100644 --- a/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilder.php +++ b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilder.php @@ -52,10 +52,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get subscriptions from directory + * Get the list of commercial subscriptions that an organization acquired. * @param SubscriptionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception + * @link https://learn.microsoft.com/graph/api/directory-list-subscriptions?view=graph-rest-1.0 Find more info here */ public function get(?SubscriptionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -81,7 +82,7 @@ public function post(CompanySubscription $body, ?SubscriptionsRequestBuilderPost } /** - * Get subscriptions from directory + * Get the list of commercial subscriptions that an organization acquired. * @param SubscriptionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderGetQueryParameters.php b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderGetQueryParameters.php index a931a226ad2..4233359b7b7 100644 --- a/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/Subscriptions/SubscriptionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get subscriptions from directory + * Get the list of commercial subscriptions that an organization acquired. */ class SubscriptionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.php b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.php index 6a75a4fb07c..af752c61d83 100644 --- a/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.php +++ b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.php @@ -48,10 +48,11 @@ public function delete(?SubscriptionsWithCommerceSubscriptionIdRequestBuilderDel } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. * @param SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception + * @link https://learn.microsoft.com/graph/api/companysubscription-get?view=graph-rest-1.0 Find more info here */ public function get(?SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -95,7 +96,7 @@ public function toDeleteRequestInformation(?SubscriptionsWithCommerceSubscriptio } /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. * @param SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters.php b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters.php index e7eae41c444..99dd8596e8c 100644 --- a/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get subscriptions from directory + * Get a specific commercial subscription that an organization acquired. */ class SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters { diff --git a/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index e6bb1745a16..37f56a3806c 100644 --- a/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index cb6fded18f5..a412bf79976 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 4c5d54e0eb3..fd86e8b4616 100644 --- a/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.php index 47be9ad9743..419c92ac755 100644 --- a/src/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.php @@ -60,12 +60,12 @@ public function get(?RetentionLabelRequestBuilderGetRequestConfiguration $reques } /** - * Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. + * Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. * @param ItemRetentionLabel $body The request body * @param RetentionLabelRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/driveitem-lockorunlockrecord?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/driveitem-setretentionlabel?view=graph-rest-1.0 Find more info here */ public function patch(ItemRetentionLabel $body, ?RetentionLabelRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -115,7 +115,7 @@ public function toGetRequestInformation(?RetentionLabelRequestBuilderGetRequestC } /** - * Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. + * Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. * @param ItemRetentionLabel $body The request body * @param RetentionLabelRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php index 85c27f4278b..b488f342865 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 Find more info here */ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -46,7 +46,7 @@ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php index 12be304bc7c..02cf8f938d1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php @@ -31,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + * Use this API to create a new Table. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 Find more info here */ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -47,7 +47,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + * Use this API to create a new Table. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php index ae6c3f7e3a8..ad91fa4ef9d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 Find more info here */ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -46,7 +46,7 @@ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php index 817867f8755..cc31d651f51 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php @@ -31,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + * Use this API to create a new Table. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 Find more info here */ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -47,7 +47,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + * Use this API to create a new Table. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php b/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php index 6c371b0f61a..814e400c329 100644 --- a/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php @@ -77,12 +77,12 @@ public function get(?ExternalItemItemRequestBuilderGetRequestConfiguration $requ } /** - * Update the properties of an externalItem object. + * Create a new externalItem object. * @param ExternalItem $body The request body * @param ExternalItemItemRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/externalconnectors-externalitem-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-put-items?view=graph-rest-1.0 Find more info here */ public function put(ExternalItem $body, ?ExternalItemItemRequestBuilderPutRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPutRequestInformation($body, $requestConfiguration); @@ -132,7 +132,7 @@ public function toGetRequestInformation(?ExternalItemItemRequestBuilderGetReques } /** - * Update the properties of an externalItem object. + * Create a new externalItem object. * @param ExternalItem $body The request body * @param ExternalItemItemRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 9fb73e27a10..805e37bd607 100644 --- a/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/GroupsRequestBuilder.php b/src/Generated/Groups/GroupsRequestBuilder.php index 53cf3f32c0e..f6a2b404f5e 100644 --- a/src/Generated/Groups/GroupsRequestBuilder.php +++ b/src/Generated/Groups/GroupsRequestBuilder.php @@ -99,12 +99,12 @@ public function get(?GroupsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param Group $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/group-upsert?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/group-post-groups?view=graph-rest-1.0 Find more info here */ public function post(Group $body, ?GroupsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -136,7 +136,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } /** - * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param Group $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.php b/src/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.php index 9a04ec16c29..f85abc9f3d6 100644 --- a/src/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.php +++ b/src/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. * @param AddFavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -45,7 +45,7 @@ public function post(?AddFavoriteRequestBuilderPostRequestConfiguration $request } /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. * @param AddFavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php b/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php index 8598f814057..c4618ce7781 100644 --- a/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php @@ -67,12 +67,12 @@ public function get(?ConversationsRequestBuilderGetRequestConfiguration $request } /** - * Use reply thread or reply post to further post to that conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param Conversation $body The request body * @param ConversationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/group-post-conversations?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 Find more info here */ public function post(Conversation $body, ?ConversationsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -104,7 +104,7 @@ public function toGetRequestInformation(?ConversationsRequestBuilderGetRequestCo } /** - * Use reply thread or reply post to further post to that conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param Conversation $body The request body * @param ConversationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php index 964d49d05dc..7ed4daa3440 100644 --- a/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php @@ -43,7 +43,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param ConversationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/conversation-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/group-delete-conversation?view=graph-rest-1.0 Find more info here */ public function delete(?ConversationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -54,11 +54,11 @@ public function delete(?ConversationItemRequestBuilderDeleteRequestConfiguration } /** - * The group's conversations. + * Retrieve the properties and relationships of conversation object. * @param ConversationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/group-get-conversation?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/conversation-get?view=graph-rest-1.0 Find more info here */ public function get(?ConversationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -87,7 +87,7 @@ public function toDeleteRequestInformation(?ConversationItemRequestBuilderDelete } /** - * The group's conversations. + * Retrieve the properties and relationships of conversation object. * @param ConversationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilderGetQueryParameters.php index 54b516ea9f8..7065f9e0262 100644 --- a/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The group's conversations. + * Retrieve the properties and relationships of conversation object. */ class ConversationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 58f90c8eaf8..189dd9e7168 100644 --- a/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.php index cb82b45d88d..f10ec3b68f4 100644 --- a/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\GetAllMessages\GetAllMessagesRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\Channels\GetAllRetainedMessages\GetAllRetainedMessagesRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\ChannelItemRequestBuilder; use Microsoft\Graph\Generated\Models\Channel; use Microsoft\Graph\Generated\Models\ChannelCollectionResponse; @@ -34,6 +35,13 @@ public function getAllMessages(): GetAllMessagesRequestBuilder { return new GetAllMessagesRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the getAllRetainedMessages method. + */ + public function getAllRetainedMessages(): GetAllRetainedMessagesRequestBuilder { + return new GetAllRetainedMessagesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the channels property of the microsoft.graph.team entity. * @param string $channelId The unique identifier of channel diff --git a/src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php b/src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php new file mode 100644 index 00000000000..54e33888ba4 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ChatMessage::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php new file mode 100644 index 00000000000..c61de3e6b5c --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php @@ -0,0 +1,76 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/groups/{group%2Did}/team/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function getAllRetainedMessages + * @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [GetAllRetainedMessagesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke function getAllRetainedMessages + * @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return GetAllRetainedMessagesRequestBuilder + */ + public function withUrl(string $rawUrl): GetAllRetainedMessagesRequestBuilder { + return new GetAllRetainedMessagesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..20ece9759f7 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new GetAllRetainedMessagesRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f4915f93400 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GetAllRetainedMessagesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GetAllRetainedMessagesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new GetAllRetainedMessagesRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return GetAllRetainedMessagesRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): GetAllRetainedMessagesRequestBuilderGetQueryParameters { + return new GetAllRetainedMessagesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Archive/ArchivePostRequestBody.php b/src/Generated/Groups/Item/Team/Channels/Item/Archive/ArchivePostRequestBody.php new file mode 100644 index 00000000000..2e24118d51b --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Archive/ArchivePostRequestBody.php @@ -0,0 +1,114 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ArchivePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ArchivePostRequestBody { + return new ArchivePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'shouldSetSpoSiteReadOnlyForMembers' => fn(ParseNode $n) => $o->setShouldSetSpoSiteReadOnlyForMembers($n->getBooleanValue()), + ]; + } + + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return bool|null + */ + public function getShouldSetSpoSiteReadOnlyForMembers(): ?bool { + $val = $this->getBackingStore()->get('shouldSetSpoSiteReadOnlyForMembers'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'shouldSetSpoSiteReadOnlyForMembers'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeBooleanValue('shouldSetSpoSiteReadOnlyForMembers', $this->getShouldSetSpoSiteReadOnlyForMembers()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param bool|null $value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public function setShouldSetSpoSiteReadOnlyForMembers(?bool $value): void { + $this->getBackingStore()->set('shouldSetSpoSiteReadOnlyForMembers', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Archive/ArchiveRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Archive/ArchiveRequestBuilder.php new file mode 100644 index 00000000000..ca6db0a05be --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Archive/ArchiveRequestBuilder.php @@ -0,0 +1,77 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/archive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-archive?view=graph-rest-1.0 Find more info here + */ + public function post(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return ArchiveRequestBuilder + */ + public function withUrl(string $rawUrl): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Groups/Item/Team/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..d9fe488cd8b --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php index a597c516f6e..242b2964a81 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php @@ -4,6 +4,7 @@ use Exception; use Http\Promise\Promise; +use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Archive\ArchiveRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\CompleteMigration\CompleteMigrationRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\FilesFolder\FilesFolderRequestBuilder; @@ -13,6 +14,7 @@ use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\RemoveEmail\RemoveEmailRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\SharedWithTeams\SharedWithTeamsRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Tabs\TabsRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Unarchive\UnarchiveRequestBuilder; use Microsoft\Graph\Generated\Models\Channel; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +27,13 @@ */ class ChannelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + public function archive(): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to call the completeMigration method. */ @@ -88,6 +97,13 @@ public function tabs(): TabsRequestBuilder { return new TabsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the unarchive method. + */ + public function unarchive(): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new ChannelItemRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Unarchive/UnarchiveRequestBuilder.php new file mode 100644 index 00000000000..a25fd28126f --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Unarchive/UnarchiveRequestBuilder.php @@ -0,0 +1,74 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/unarchive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-unarchive?view=graph-rest-1.0 Find more info here + */ + public function post(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return UnarchiveRequestBuilder + */ + public function withUrl(string $rawUrl): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Groups/Item/Team/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..32c40a14eee --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Archive/ArchivePostRequestBody.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Archive/ArchivePostRequestBody.php new file mode 100644 index 00000000000..d49cd663a56 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Archive/ArchivePostRequestBody.php @@ -0,0 +1,114 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ArchivePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ArchivePostRequestBody { + return new ArchivePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'shouldSetSpoSiteReadOnlyForMembers' => fn(ParseNode $n) => $o->setShouldSetSpoSiteReadOnlyForMembers($n->getBooleanValue()), + ]; + } + + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return bool|null + */ + public function getShouldSetSpoSiteReadOnlyForMembers(): ?bool { + $val = $this->getBackingStore()->get('shouldSetSpoSiteReadOnlyForMembers'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'shouldSetSpoSiteReadOnlyForMembers'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeBooleanValue('shouldSetSpoSiteReadOnlyForMembers', $this->getShouldSetSpoSiteReadOnlyForMembers()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param bool|null $value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public function setShouldSetSpoSiteReadOnlyForMembers(?bool $value): void { + $this->getBackingStore()->set('shouldSetSpoSiteReadOnlyForMembers', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Archive/ArchiveRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Archive/ArchiveRequestBuilder.php new file mode 100644 index 00000000000..b7e9c60f1a2 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Archive/ArchiveRequestBuilder.php @@ -0,0 +1,77 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/groups/{group%2Did}/team/primaryChannel/archive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-archive?view=graph-rest-1.0 Find more info here + */ + public function post(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return ArchiveRequestBuilder + */ + public function withUrl(string $rawUrl): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Archive/ArchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Archive/ArchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..e799d81ad47 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Archive/ArchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php index e81d7b777a5..13e2ae68233 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php @@ -4,6 +4,7 @@ use Exception; use Http\Promise\Promise; +use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Archive\ArchiveRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\CompleteMigration\CompleteMigrationRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\FilesFolder\FilesFolderRequestBuilder; @@ -13,6 +14,7 @@ use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\RemoveEmail\RemoveEmailRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\SharedWithTeams\SharedWithTeamsRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Tabs\TabsRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Unarchive\UnarchiveRequestBuilder; use Microsoft\Graph\Generated\Models\Channel; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +27,13 @@ */ class PrimaryChannelRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + public function archive(): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to call the completeMigration method. */ @@ -88,6 +97,13 @@ public function tabs(): TabsRequestBuilder { return new TabsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the unarchive method. + */ + public function unarchive(): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new PrimaryChannelRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.php new file mode 100644 index 00000000000..c5394588c1a --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.php @@ -0,0 +1,74 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/groups/{group%2Did}/team/primaryChannel/unarchive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-unarchive?view=graph-rest-1.0 Find more info here + */ + public function post(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return UnarchiveRequestBuilder + */ + public function withUrl(string $rawUrl): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..623cdc84bc1 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.php index c270b3b312f..5d9dc5868e9 100644 --- a/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.php @@ -62,11 +62,11 @@ public function delete(?ConversationThreadItemRequestBuilderDeleteRequestConfigu } /** - * Get a thread object. + * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. * @param ConversationThreadItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/group-get-thread?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/conversationthread-get?view=graph-rest-1.0 Find more info here */ public function get(?ConversationThreadItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -111,7 +111,7 @@ public function toDeleteRequestInformation(?ConversationThreadItemRequestBuilder } /** - * Get a thread object. + * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. * @param ConversationThreadItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilderGetQueryParameters.php index fefa316602e..64e1539675a 100644 --- a/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a thread object. + * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. */ class ConversationThreadItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 04396934579..3d105dcf507 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -60,7 +60,7 @@ public function get(?ExtensionItemRequestBuilderGetRequestConfiguration $request } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. * @param Extension $body The request body * @param ExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -115,7 +115,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. * @param Extension $body The request body * @param ExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.php index 5400772fd5f..50b0c921966 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.php @@ -51,11 +51,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @param PostsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/conversationthread-list-posts?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/post-get?view=graph-rest-1.0 Find more info here */ public function get(?PostsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -66,7 +66,7 @@ public function get(?PostsRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @param PostsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilderGetQueryParameters.php index c3d334096ac..80d8fda794c 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. */ class PostsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAttributeCollection/GraphOnAttributeCollectionExternalUsersSelfServiceSignUp/GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder.php b/src/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAttributeCollection/GraphOnAttributeCollectionExternalUsersSelfServiceSignUp/GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder.php index 6665230b295..e594476bf09 100644 --- a/src/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAttributeCollection/GraphOnAttributeCollectionExternalUsersSelfServiceSignUp/GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder.php +++ b/src/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAttributeCollection/GraphOnAttributeCollectionExternalUsersSelfServiceSignUp/GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder.php @@ -6,11 +6,11 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Identity\AuthenticationEventsFlows\Item\GraphExternalUsersSelfServiceSignUpEventsFlow\OnAttributeCollection\GraphOnAttributeCollectionExternalUsersSelfServiceSignUp\Attributes\AttributesRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; +use Microsoft\Graph\Generated\Models\OnAttributeCollectionExternalUsersSelfServiceSignUp; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; use Microsoft\Kiota\Abstractions\RequestAdapter; use Microsoft\Kiota\Abstractions\RequestInformation; -use Psr\Http\Message\StreamInterface; /** * Casts the previous resource to onAttributeCollectionExternalUsersSelfServiceSignUp. @@ -39,9 +39,9 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the items of type microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp in the microsoft.graph.onAttributeCollectionHandler collection + * Get the item of type microsoft.graph.onAttributeCollectionHandler as microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp * @param GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise + * @return Promise * @throws Exception */ public function get(?GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { @@ -49,13 +49,11 @@ public function get(?GraphOnAttributeCollectionExternalUsersSelfServiceSignUpReq $errorMappings = [ 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - /** @var Promise $result */ - $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, StreamInterface::class, $errorMappings); - return $result; + return $this->requestAdapter->sendAsync($requestInfo, [OnAttributeCollectionExternalUsersSelfServiceSignUp::class, 'createFromDiscriminatorValue'], $errorMappings); } /** - * Get the items of type microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp in the microsoft.graph.onAttributeCollectionHandler collection + * Get the item of type microsoft.graph.onAttributeCollectionHandler as microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp * @param GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAuthenticationMethodLoadStart/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.php b/src/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAuthenticationMethodLoadStart/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.php index f77f9b64a81..ba97464f217 100644 --- a/src/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAuthenticationMethodLoadStart/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.php +++ b/src/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAuthenticationMethodLoadStart/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.php @@ -6,11 +6,11 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Identity\AuthenticationEventsFlows\Item\GraphExternalUsersSelfServiceSignUpEventsFlow\OnAuthenticationMethodLoadStart\GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp\IdentityProviders\IdentityProvidersRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; +use Microsoft\Graph\Generated\Models\OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; use Microsoft\Kiota\Abstractions\RequestAdapter; use Microsoft\Kiota\Abstractions\RequestInformation; -use Psr\Http\Message\StreamInterface; /** * Casts the previous resource to onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp. @@ -39,9 +39,9 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the items of type microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp in the microsoft.graph.onAuthenticationMethodLoadStartHandler collection + * Get the item of type microsoft.graph.onAuthenticationMethodLoadStartHandler as microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp * @param GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise + * @return Promise * @throws Exception */ public function get(?GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { @@ -49,13 +49,11 @@ public function get(?GraphOnAuthenticationMethodLoadStartExternalUsersSelfServic $errorMappings = [ 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - /** @var Promise $result */ - $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, StreamInterface::class, $errorMappings); - return $result; + return $this->requestAdapter->sendAsync($requestInfo, [OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp::class, 'createFromDiscriminatorValue'], $errorMappings); } /** - * Get the items of type microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp in the microsoft.graph.onAuthenticationMethodLoadStartHandler collection + * Get the item of type microsoft.graph.onAuthenticationMethodLoadStartHandler as microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp * @param GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php index ab41f4fa255..e29a755ab5d 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + * Get the authenticationCombinationConfiguration objects for an authentication strength policy. The objects can be of one or more of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration authenticationCombinationConfiguration objects are supported only for custom authentication strengths. * @param CombinationConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -67,7 +67,7 @@ public function get(?CombinationConfigurationsRequestBuilderGetRequestConfigurat } /** - * Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + * Create a new authenticationCombinationConfiguration object which can be of one of the following derived types:* fido2combinationConfiguration* x509certificatecombinationconfiguration * @param AuthenticationCombinationConfiguration $body The request body * @param CombinationConfigurationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -83,7 +83,7 @@ public function post(AuthenticationCombinationConfiguration $body, ?CombinationC } /** - * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + * Get the authenticationCombinationConfiguration objects for an authentication strength policy. The objects can be of one or more of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration authenticationCombinationConfiguration objects are supported only for custom authentication strengths. * @param CombinationConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -104,7 +104,7 @@ public function toGetRequestInformation(?CombinationConfigurationsRequestBuilder } /** - * Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + * Create a new authenticationCombinationConfiguration object which can be of one of the following derived types:* fido2combinationConfiguration* x509certificatecombinationconfiguration * @param AuthenticationCombinationConfiguration $body The request body * @param CombinationConfigurationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilderGetQueryParameters.php index 429cfbe7347..8d9314e4f1b 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + * Get the authenticationCombinationConfiguration objects for an authentication strength policy. The objects can be of one or more of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration authenticationCombinationConfiguration objects are supported only for custom authentication strengths. */ class CombinationConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.php index cabd003450e..ea6f099b46c 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.php @@ -61,7 +61,7 @@ public function get(?AuthenticationCombinationConfigurationItemRequestBuilderGet } /** - * Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they're the only type of authenticationCombinationConfiguration that may be created. + * Update the properties of an authenticationCombinationConfiguration object. The properties can be for one of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration * @param AuthenticationCombinationConfiguration $body The request body * @param AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -116,7 +116,7 @@ public function toGetRequestInformation(?AuthenticationCombinationConfigurationI } /** - * Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they're the only type of authenticationCombinationConfiguration that may be created. + * Update the properties of an authenticationCombinationConfiguration object. The properties can be for one of the following derived types:* fido2combinationConfigurations* x509certificatecombinationconfiguration * @param AuthenticationCombinationConfiguration $body The request body * @param AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php index 3a1cd3c371c..c5d8a51a55f 100644 --- a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a countryNamedLocation object. + * Delete an ipNamedLocation object. * @param NamedLocationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/countrynamedlocation-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/ipnamedlocation-delete?view=graph-rest-1.0 Find more info here */ public function delete(?NamedLocationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -46,11 +46,11 @@ public function delete(?NamedLocationItemRequestBuilderDeleteRequestConfiguratio } /** - * Retrieve the properties and relationships of a namedLocation object. + * Retrieve the properties and relationships of an ipNamedLocation object. * @param NamedLocationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/namedlocation-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/ipnamedlocation-get?view=graph-rest-1.0 Find more info here */ public function get(?NamedLocationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -77,7 +77,7 @@ public function patch(NamedLocation $body, ?NamedLocationItemRequestBuilderPatch } /** - * Delete a countryNamedLocation object. + * Delete an ipNamedLocation object. * @param NamedLocationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -95,7 +95,7 @@ public function toDeleteRequestInformation(?NamedLocationItemRequestBuilderDelet } /** - * Retrieve the properties and relationships of a namedLocation object. + * Retrieve the properties and relationships of an ipNamedLocation object. * @param NamedLocationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilderGetQueryParameters.php index 1082619bb8a..7286eb829a7 100644 --- a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a namedLocation object. + * Retrieve the properties and relationships of an ipNamedLocation object. */ class NamedLocationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php index 7ed57d3f26d..1ade86add76 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php @@ -102,11 +102,11 @@ public function delete(?AccessPackageItemRequestBuilderDeleteRequestConfiguratio } /** - * Retrieve the properties and relationships of an accessPackage object. + * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. * @param AccessPackageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/accesspackage-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/accesspackage-list-resourcerolescopes?view=graph-rest-1.0 Find more info here */ public function get(?AccessPackageItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -151,7 +151,7 @@ public function toDeleteRequestInformation(?AccessPackageItemRequestBuilderDelet } /** - * Retrieve the properties and relationships of an accessPackage object. + * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. * @param AccessPackageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilderGetQueryParameters.php index b0dedf46c49..95e920d4be4 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an accessPackage object. + * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. */ class AccessPackageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php index e9cfc8fd062..ea4fe4fe7e2 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php @@ -93,12 +93,11 @@ public function get(?AccessPackageAssignmentPolicyItemRequestBuilderGetRequestCo } /** - * Update an existing accessPackageAssignmentPolicy object to change one or more of its properties, such as the display name or description. + * Update the navigation property assignmentPolicies in identityGovernance * @param AccessPackageAssignmentPolicy $body The request body * @param AccessPackageAssignmentPolicyItemRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/accesspackageassignmentpolicy-update?view=graph-rest-1.0 Find more info here */ public function put(AccessPackageAssignmentPolicy $body, ?AccessPackageAssignmentPolicyItemRequestBuilderPutRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPutRequestInformation($body, $requestConfiguration); @@ -148,7 +147,7 @@ public function toGetRequestInformation(?AccessPackageAssignmentPolicyItemReques } /** - * Update an existing accessPackageAssignmentPolicy object to change one or more of its properties, such as the display name or description. + * Update the navigation property assignmentPolicies in identityGovernance * @param AccessPackageAssignmentPolicy $body The request body * @param AccessPackageAssignmentPolicyItemRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php index 8f1a3f0774b..6bb138e77b9 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @param CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-delete?view=graph-rest-1.0 Find more info here */ public function delete(?CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -77,7 +77,7 @@ public function patch(CustomCalloutExtension $body, ?CustomCalloutExtensionItemR } /** - * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + * Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: * @param CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php index 4e607afdbae..943430a02e7 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php @@ -70,11 +70,11 @@ public function delete(?AgreementItemRequestBuilderDeleteRequestConfiguration $r } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. * @param AgreementItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/agreement-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/agreement-list-files?view=graph-rest-1.0 Find more info here */ public function get(?AgreementItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -119,7 +119,7 @@ public function toDeleteRequestInformation(?AgreementItemRequestBuilderDeleteReq } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. * @param AgreementItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilderGetQueryParameters.php index 3ba58bfc831..c02c9925684 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. */ class AgreementItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Invitations/InvitationsRequestBuilder.php b/src/Generated/Invitations/InvitationsRequestBuilder.php index 885c226a923..375b47ff969 100644 --- a/src/Generated/Invitations/InvitationsRequestBuilder.php +++ b/src/Generated/Invitations/InvitationsRequestBuilder.php @@ -5,7 +5,8 @@ use Exception; use Http\Promise\Promise; use Microsoft\Graph\Generated\Invitations\Count\CountRequestBuilder; -use Microsoft\Graph\Generated\Invitations\Item\InvitationItemRequestBuilder; +use Microsoft\Graph\Generated\Invitations\InvitedUser\InvitedUserRequestBuilder; +use Microsoft\Graph\Generated\Invitations\InvitedUserSponsors\InvitedUserSponsorsRequestBuilder; use Microsoft\Graph\Generated\Models\Invitation; use Microsoft\Graph\Generated\Models\InvitationCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -27,16 +28,19 @@ public function count(): CountRequestBuilder { } /** - * Provides operations to manage the collection of invitation entities. - * @param string $invitationId The unique identifier of invitation - * @return InvitationItemRequestBuilder + * Provides operations to manage the invitedUser property of the microsoft.graph.invitation entity. */ - public function byInvitationId(string $invitationId): InvitationItemRequestBuilder { - $urlTplParams = $this->pathParameters; - $urlTplParams['invitation%2Did'] = $invitationId; - return new InvitationItemRequestBuilder($urlTplParams, $this->requestAdapter); + public function invitedUser(): InvitedUserRequestBuilder { + return new InvitedUserRequestBuilder($this->pathParameters, $this->requestAdapter); } - + + /** + * Provides operations to manage the invitedUserSponsors property of the microsoft.graph.invitation entity. + */ + public function invitedUserSponsors(): InvitedUserSponsorsRequestBuilder { + return new InvitedUserSponsorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new InvitationsRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.php b/src/Generated/Invitations/InvitedUser/InvitedUserRequestBuilder.php similarity index 92% rename from src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.php rename to src/Generated/Invitations/InvitedUser/InvitedUserRequestBuilder.php index 75f75d554cb..78438fe0c62 100644 --- a/src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.php +++ b/src/Generated/Invitations/InvitedUser/InvitedUserRequestBuilder.php @@ -1,11 +1,11 @@ pathParameters = $pathParametersOrRawUrl; } else { diff --git a/src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilderGetQueryParameters.php b/src/Generated/Invitations/InvitedUser/InvitedUserRequestBuilderGetQueryParameters.php similarity index 93% rename from src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilderGetQueryParameters.php rename to src/Generated/Invitations/InvitedUser/InvitedUserRequestBuilderGetQueryParameters.php index 67b0d264df4..fe01afb3a4b 100644 --- a/src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilderGetQueryParameters.php +++ b/src/Generated/Invitations/InvitedUser/InvitedUserRequestBuilderGetQueryParameters.php @@ -1,6 +1,6 @@ pathParameters = $pathParametersOrRawUrl; } else { diff --git a/src/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilderGetQueryParameters.php b/src/Generated/Invitations/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilderGetQueryParameters.php similarity index 92% rename from src/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilderGetQueryParameters.php rename to src/Generated/Invitations/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilderGetQueryParameters.php index 2ebd2dcd72d..2a3492ca0bb 100644 --- a/src/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Invitations/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilderGetQueryParameters.php @@ -1,6 +1,6 @@ pathParameters = $pathParametersOrRawUrl; } else { diff --git a/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Invitations/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php similarity index 89% rename from src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php rename to src/Generated/Invitations/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php index 6bcf07d819c..1ea01b41556 100644 --- a/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php +++ b/src/Generated/Invitations/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -1,6 +1,6 @@ pathParameters = $pathParametersOrRawUrl; } else { diff --git a/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Invitations/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php similarity index 96% rename from src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php rename to src/Generated/Invitations/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php index 03b419a269f..485ec90f993 100644 --- a/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Invitations/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php @@ -1,6 +1,6 @@ pathParameters = $pathParametersOrRawUrl; } else { diff --git a/src/Generated/Invitations/Item/InvitedUserSponsors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Invitations/InvitedUserSponsors/Count/CountRequestBuilderGetQueryParameters.php similarity index 91% rename from src/Generated/Invitations/Item/InvitedUserSponsors/Count/CountRequestBuilderGetQueryParameters.php rename to src/Generated/Invitations/InvitedUserSponsors/Count/CountRequestBuilderGetQueryParameters.php index 1ce9049b373..3e42af0b8ce 100644 --- a/src/Generated/Invitations/Item/InvitedUserSponsors/Count/CountRequestBuilderGetQueryParameters.php +++ b/src/Generated/Invitations/InvitedUserSponsors/Count/CountRequestBuilderGetQueryParameters.php @@ -1,6 +1,6 @@ pathParameters = $pathParametersOrRawUrl; } else { diff --git a/src/Generated/Invitations/Item/InvitedUserSponsors/InvitedUserSponsorsRequestBuilderGetQueryParameters.php b/src/Generated/Invitations/InvitedUserSponsors/InvitedUserSponsorsRequestBuilderGetQueryParameters.php similarity index 97% rename from src/Generated/Invitations/Item/InvitedUserSponsors/InvitedUserSponsorsRequestBuilderGetQueryParameters.php rename to src/Generated/Invitations/InvitedUserSponsors/InvitedUserSponsorsRequestBuilderGetQueryParameters.php index 0496ce20607..c51b32d096f 100644 --- a/src/Generated/Invitations/Item/InvitedUserSponsors/InvitedUserSponsorsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Invitations/InvitedUserSponsors/InvitedUserSponsorsRequestBuilderGetQueryParameters.php @@ -1,6 +1,6 @@ pathParameters = $pathParametersOrRawUrl; } else { diff --git a/src/Generated/Invitations/Item/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/Invitations/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php similarity index 93% rename from src/Generated/Invitations/Item/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php rename to src/Generated/Invitations/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index 4bc71b67de8..4590bf58dec 100644 --- a/src/Generated/Invitations/Item/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Invitations/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -1,6 +1,6 @@ |string>|null $headers Request headers - * @param array|null $options Request options - * @param InvitationItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters - */ - public function __construct(?array $headers = null, ?array $options = null, ?InvitationItemRequestBuilderGetQueryParameters $queryParameters = null) { - parent::__construct($headers ?? [], $options ?? []); - $this->queryParameters = $queryParameters; - } - - /** - * Instantiates a new InvitationItemRequestBuilderGetQueryParameters. - * @param array|null $expand Expand related entities - * @param array|null $select Select properties to be returned - * @return InvitationItemRequestBuilderGetQueryParameters - */ - public static function createQueryParameters(?array $expand = null, ?array $select = null): InvitationItemRequestBuilderGetQueryParameters { - return new InvitationItemRequestBuilderGetQueryParameters($expand, $select); - } - -} diff --git a/src/Generated/Models/AccessPackage.php b/src/Generated/Models/AccessPackage.php index dbd2319d1fb..3da9eec0360 100644 --- a/src/Generated/Models/AccessPackage.php +++ b/src/Generated/Models/AccessPackage.php @@ -152,7 +152,7 @@ public function getIncompatibleGroups(): ?array { } /** - * Gets the isHidden property value. Whether the access package is hidden from the requestor. + * Gets the isHidden property value. Indicates whether the access package is hidden from the requestor. * @return bool|null */ public function getIsHidden(): ?bool { @@ -273,7 +273,7 @@ public function setIncompatibleGroups(?array $value): void { } /** - * Sets the isHidden property value. Whether the access package is hidden from the requestor. + * Sets the isHidden property value. Indicates whether the access package is hidden from the requestor. * @param bool|null $value Value to set for the isHidden property. */ public function setIsHidden(?bool $value): void { diff --git a/src/Generated/Models/AppManagementApplicationConfiguration.php b/src/Generated/Models/AppManagementApplicationConfiguration.php new file mode 100644 index 00000000000..c348dee9d7a --- /dev/null +++ b/src/Generated/Models/AppManagementApplicationConfiguration.php @@ -0,0 +1,46 @@ +setOdataType('#microsoft.graph.appManagementApplicationConfiguration'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return AppManagementApplicationConfiguration + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AppManagementApplicationConfiguration { + return new AppManagementApplicationConfiguration(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + } + +} diff --git a/src/Generated/Models/AppManagementConfiguration.php b/src/Generated/Models/AppManagementConfiguration.php index 6c5c4881ddf..c31be0f6b3c 100644 --- a/src/Generated/Models/AppManagementConfiguration.php +++ b/src/Generated/Models/AppManagementConfiguration.php @@ -32,6 +32,15 @@ public function __construct() { * @return AppManagementConfiguration */ public static function createFromDiscriminatorValue(ParseNode $parseNode): AppManagementConfiguration { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.appManagementApplicationConfiguration': return new AppManagementApplicationConfiguration(); + case '#microsoft.graph.appManagementServicePrincipalConfiguration': return new AppManagementServicePrincipalConfiguration(); + case '#microsoft.graph.customAppManagementConfiguration': return new CustomAppManagementConfiguration(); + } + } return new AppManagementConfiguration(); } diff --git a/src/Generated/Models/AppManagementPolicy.php b/src/Generated/Models/AppManagementPolicy.php index 3df3c541f3e..172c0cbccb4 100644 --- a/src/Generated/Models/AppManagementPolicy.php +++ b/src/Generated/Models/AppManagementPolicy.php @@ -49,7 +49,7 @@ public function getFieldDeserializers(): array { return array_merge(parent::getFieldDeserializers(), [ 'appliesTo' => fn(ParseNode $n) => $o->setAppliesTo($n->getCollectionOfObjectValues([DirectoryObject::class, 'createFromDiscriminatorValue'])), 'isEnabled' => fn(ParseNode $n) => $o->setIsEnabled($n->getBooleanValue()), - 'restrictions' => fn(ParseNode $n) => $o->setRestrictions($n->getObjectValue([AppManagementConfiguration::class, 'createFromDiscriminatorValue'])), + 'restrictions' => fn(ParseNode $n) => $o->setRestrictions($n->getObjectValue([CustomAppManagementConfiguration::class, 'createFromDiscriminatorValue'])), ]); } @@ -67,11 +67,11 @@ public function getIsEnabled(): ?bool { /** * Gets the restrictions property value. Restrictions that apply to an application or service principal object. - * @return AppManagementConfiguration|null + * @return CustomAppManagementConfiguration|null */ - public function getRestrictions(): ?AppManagementConfiguration { + public function getRestrictions(): ?CustomAppManagementConfiguration { $val = $this->getBackingStore()->get('restrictions'); - if (is_null($val) || $val instanceof AppManagementConfiguration) { + if (is_null($val) || $val instanceof CustomAppManagementConfiguration) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'restrictions'"); @@ -106,9 +106,9 @@ public function setIsEnabled(?bool $value): void { /** * Sets the restrictions property value. Restrictions that apply to an application or service principal object. - * @param AppManagementConfiguration|null $value Value to set for the restrictions property. + * @param CustomAppManagementConfiguration|null $value Value to set for the restrictions property. */ - public function setRestrictions(?AppManagementConfiguration $value): void { + public function setRestrictions(?CustomAppManagementConfiguration $value): void { $this->getBackingStore()->set('restrictions', $value); } diff --git a/src/Generated/Models/AppManagementServicePrincipalConfiguration.php b/src/Generated/Models/AppManagementServicePrincipalConfiguration.php new file mode 100644 index 00000000000..c79199860a1 --- /dev/null +++ b/src/Generated/Models/AppManagementServicePrincipalConfiguration.php @@ -0,0 +1,46 @@ +setOdataType('#microsoft.graph.appManagementServicePrincipalConfiguration'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return AppManagementServicePrincipalConfiguration + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AppManagementServicePrincipalConfiguration { + return new AppManagementServicePrincipalConfiguration(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + } + +} diff --git a/src/Generated/Models/Application.php b/src/Generated/Models/Application.php index ac6f60dc5c2..a772d37b489 100644 --- a/src/Generated/Models/Application.php +++ b/src/Generated/Models/Application.php @@ -255,6 +255,7 @@ public function getFieldDeserializers(): array { 'isFallbackPublicClient' => fn(ParseNode $n) => $o->setIsFallbackPublicClient($n->getBooleanValue()), 'keyCredentials' => fn(ParseNode $n) => $o->setKeyCredentials($n->getCollectionOfObjectValues([KeyCredential::class, 'createFromDiscriminatorValue'])), 'logo' => fn(ParseNode $n) => $o->setLogo($n->getBinaryContent()), + 'nativeAuthenticationApisEnabled' => fn(ParseNode $n) => $o->setNativeAuthenticationApisEnabled($n->getEnumValue(NativeAuthenticationApisEnabled::class)), 'notes' => fn(ParseNode $n) => $o->setNotes($n->getStringValue()), 'oauth2RequirePostResponse' => fn(ParseNode $n) => $o->setOauth2RequirePostResponse($n->getBooleanValue()), 'optionalClaims' => fn(ParseNode $n) => $o->setOptionalClaims($n->getObjectValue([OptionalClaims::class, 'createFromDiscriminatorValue'])), @@ -390,6 +391,18 @@ public function getLogo(): ?StreamInterface { throw new \UnexpectedValueException("Invalid type found in backing store for 'logo'"); } + /** + * Gets the nativeAuthenticationApisEnabled property value. Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: none and all. Default is none. For more information, see Native Authentication. + * @return NativeAuthenticationApisEnabled|null + */ + public function getNativeAuthenticationApisEnabled(): ?NativeAuthenticationApisEnabled { + $val = $this->getBackingStore()->get('nativeAuthenticationApisEnabled'); + if (is_null($val) || $val instanceof NativeAuthenticationApisEnabled) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'nativeAuthenticationApisEnabled'"); + } + /** * Gets the notes property value. Notes relevant for the management of the application. * @return string|null @@ -707,6 +720,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeBooleanValue('isFallbackPublicClient', $this->getIsFallbackPublicClient()); $writer->writeCollectionOfObjectValues('keyCredentials', $this->getKeyCredentials()); $writer->writeBinaryContent('logo', $this->getLogo()); + $writer->writeEnumValue('nativeAuthenticationApisEnabled', $this->getNativeAuthenticationApisEnabled()); $writer->writeStringValue('notes', $this->getNotes()); $writer->writeBooleanValue('oauth2RequirePostResponse', $this->getOauth2RequirePostResponse()); $writer->writeObjectValue('optionalClaims', $this->getOptionalClaims()); @@ -916,6 +930,14 @@ public function setLogo(?StreamInterface $value): void { $this->getBackingStore()->set('logo', $value); } + /** + * Sets the nativeAuthenticationApisEnabled property value. Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: none and all. Default is none. For more information, see Native Authentication. + * @param NativeAuthenticationApisEnabled|null $value Value to set for the nativeAuthenticationApisEnabled property. + */ + public function setNativeAuthenticationApisEnabled(?NativeAuthenticationApisEnabled $value): void { + $this->getBackingStore()->set('nativeAuthenticationApisEnabled', $value); + } + /** * Sets the notes property value. Notes relevant for the management of the application. * @param string|null $value Value to set for the notes property. diff --git a/src/Generated/Models/AppliedConditionalAccessPolicy.php b/src/Generated/Models/AppliedConditionalAccessPolicy.php index f6c3e4e7979..c91ec3bffdf 100644 --- a/src/Generated/Models/AppliedConditionalAccessPolicy.php +++ b/src/Generated/Models/AppliedConditionalAccessPolicy.php @@ -57,7 +57,7 @@ public function getBackingStore(): BackingStore { } /** - * Gets the displayName property value. Refers to the Name of the conditional access policy (example: 'Require MFA for Salesforce'). + * Gets the displayName property value. Refers to the name of the conditional access policy (example: 'Require MFA for Salesforce'). * @return string|null */ public function getDisplayName(): ?string { @@ -151,7 +151,7 @@ public function getOdataType(): ?string { } /** - * Gets the result property value. Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (policy isn't applied because policy conditions weren't met), notEnabled (This is due to the policy in a disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. + * Gets the result property value. Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (policy isn't applied because policy conditions weren't met), notEnabled (This is due to the policy in a disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. * @return AppliedConditionalAccessPolicyResult|null */ public function getResult(): ?AppliedConditionalAccessPolicyResult { @@ -193,7 +193,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the displayName property value. Refers to the Name of the conditional access policy (example: 'Require MFA for Salesforce'). + * Sets the displayName property value. Refers to the name of the conditional access policy (example: 'Require MFA for Salesforce'). * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { @@ -233,7 +233,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the result property value. Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (policy isn't applied because policy conditions weren't met), notEnabled (This is due to the policy in a disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. + * Sets the result property value. Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (policy isn't applied because policy conditions weren't met), notEnabled (This is due to the policy in a disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. * @param AppliedConditionalAccessPolicyResult|null $value Value to set for the result property. */ public function setResult(?AppliedConditionalAccessPolicyResult $value): void { diff --git a/src/Generated/Models/AssignmentType.php b/src/Generated/Models/AssignmentType.php index 258e0e9c9c5..942a740faa7 100644 --- a/src/Generated/Models/AssignmentType.php +++ b/src/Generated/Models/AssignmentType.php @@ -8,4 +8,5 @@ class AssignmentType extends Enum { public const REQUIRED = 'required'; public const RECOMMENDED = 'recommended'; public const UNKNOWN_FUTURE_VALUE = 'unknownFutureValue'; + public const PEER_RECOMMENDED = 'peerRecommended'; } diff --git a/src/Generated/Models/Authentication.php b/src/Generated/Models/Authentication.php index fa3042fbbd0..fd941f80f80 100644 --- a/src/Generated/Models/Authentication.php +++ b/src/Generated/Models/Authentication.php @@ -102,7 +102,7 @@ public function getMicrosoftAuthenticatorMethods(): ?array { } /** - * Gets the operations property value. Represents the status of a long-running operation. + * Gets the operations property value. Represents the status of a long-running operation, such as a password reset operation. * @return array|null */ public function getOperations(): ?array { @@ -236,7 +236,7 @@ public function setMicrosoftAuthenticatorMethods(?array $value): void { } /** - * Sets the operations property value. Represents the status of a long-running operation. + * Sets the operations property value. Represents the status of a long-running operation, such as a password reset operation. * @param array|null $value Value to set for the operations property. */ public function setOperations(?array $value): void { diff --git a/src/Generated/Models/AuthenticationCombinationConfiguration.php b/src/Generated/Models/AuthenticationCombinationConfiguration.php index a646fbe9fa1..0a6981130dc 100644 --- a/src/Generated/Models/AuthenticationCombinationConfiguration.php +++ b/src/Generated/Models/AuthenticationCombinationConfiguration.php @@ -34,7 +34,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Authe } /** - * Gets the appliesToCombinations property value. Which authentication method combinations this configuration applies to. Must be an allowedCombinations object that's defined for the authenticationStrengthPolicy. The only possible value for fido2combinationConfigurations is 'fido2'. + * Gets the appliesToCombinations property value. Which authentication method combinations this configuration applies to. Must be an allowedCombinations object, part of the authenticationStrengthPolicy. The only possible value for fido2combinationConfigurations is 'fido2'. * @return array|null */ public function getAppliesToCombinations(): ?array { @@ -68,7 +68,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the appliesToCombinations property value. Which authentication method combinations this configuration applies to. Must be an allowedCombinations object that's defined for the authenticationStrengthPolicy. The only possible value for fido2combinationConfigurations is 'fido2'. + * Sets the appliesToCombinations property value. Which authentication method combinations this configuration applies to. Must be an allowedCombinations object, part of the authenticationStrengthPolicy. The only possible value for fido2combinationConfigurations is 'fido2'. * @param array|null $value Value to set for the appliesToCombinations property. */ public function setAppliesToCombinations(?array $value): void { diff --git a/src/Generated/Models/BookingAppointment.php b/src/Generated/Models/BookingAppointment.php index 8c0cdbf727e..69b81270a81 100644 --- a/src/Generated/Models/BookingAppointment.php +++ b/src/Generated/Models/BookingAppointment.php @@ -3,6 +3,7 @@ namespace Microsoft\Graph\Generated\Models; use DateInterval; +use DateTime; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; @@ -53,6 +54,30 @@ public function getAnonymousJoinWebUrl(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'anonymousJoinWebUrl'"); } + /** + * Gets the appointmentLabel property value. Custom label that can be stamped on this appointment by users. + * @return string|null + */ + public function getAppointmentLabel(): ?string { + $val = $this->getBackingStore()->get('appointmentLabel'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'appointmentLabel'"); + } + + /** + * Gets the createdDateTime property value. The createdDateTime property + * @return DateTime|null + */ + public function getCreatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('createdDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdDateTime'"); + } + /** * Gets the customerEmailAddress property value. The customerEmailAddress property * @return string|null @@ -160,6 +185,8 @@ public function getFieldDeserializers(): array { return array_merge(parent::getFieldDeserializers(), [ 'additionalInformation' => fn(ParseNode $n) => $o->setAdditionalInformation($n->getStringValue()), 'anonymousJoinWebUrl' => fn(ParseNode $n) => $o->setAnonymousJoinWebUrl($n->getStringValue()), + 'appointmentLabel' => fn(ParseNode $n) => $o->setAppointmentLabel($n->getStringValue()), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), 'customerEmailAddress' => fn(ParseNode $n) => $o->setCustomerEmailAddress($n->getStringValue()), 'customerName' => fn(ParseNode $n) => $o->setCustomerName($n->getStringValue()), 'customerNotes' => fn(ParseNode $n) => $o->setCustomerNotes($n->getStringValue()), @@ -169,8 +196,10 @@ public function getFieldDeserializers(): array { 'duration' => fn(ParseNode $n) => $o->setDuration($n->getDateIntervalValue()), 'endDateTime' => fn(ParseNode $n) => $o->setEndDateTime($n->getObjectValue([DateTimeTimeZone::class, 'createFromDiscriminatorValue'])), 'filledAttendeesCount' => fn(ParseNode $n) => $o->setFilledAttendeesCount($n->getIntegerValue()), + 'isCustomerAllowedToManageBooking' => fn(ParseNode $n) => $o->setIsCustomerAllowedToManageBooking($n->getBooleanValue()), 'isLocationOnline' => fn(ParseNode $n) => $o->setIsLocationOnline($n->getBooleanValue()), 'joinWebUrl' => fn(ParseNode $n) => $o->setJoinWebUrl($n->getStringValue()), + 'lastUpdatedDateTime' => fn(ParseNode $n) => $o->setLastUpdatedDateTime($n->getDateTimeValue()), 'maximumAttendeesCount' => fn(ParseNode $n) => $o->setMaximumAttendeesCount($n->getIntegerValue()), 'optOutOfCustomerEmail' => fn(ParseNode $n) => $o->setOptOutOfCustomerEmail($n->getBooleanValue()), 'postBuffer' => fn(ParseNode $n) => $o->setPostBuffer($n->getDateIntervalValue()), @@ -208,6 +237,18 @@ public function getFilledAttendeesCount(): ?int { throw new \UnexpectedValueException("Invalid type found in backing store for 'filledAttendeesCount'"); } + /** + * Gets the isCustomerAllowedToManageBooking property value. The isCustomerAllowedToManageBooking property + * @return bool|null + */ + public function getIsCustomerAllowedToManageBooking(): ?bool { + $val = $this->getBackingStore()->get('isCustomerAllowedToManageBooking'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isCustomerAllowedToManageBooking'"); + } + /** * Gets the isLocationOnline property value. If true, indicates that the appointment will be held online. Default value is false. * @return bool|null @@ -232,6 +273,18 @@ public function getJoinWebUrl(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'joinWebUrl'"); } + /** + * Gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property + * @return DateTime|null + */ + public function getLastUpdatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('lastUpdatedDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'lastUpdatedDateTime'"); + } + /** * Gets the maximumAttendeesCount property value. The maximum number of customers allowed in an appointment. 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. * @return int|null @@ -424,6 +477,8 @@ public function serialize(SerializationWriter $writer): void { parent::serialize($writer); $writer->writeStringValue('additionalInformation', $this->getAdditionalInformation()); $writer->writeStringValue('anonymousJoinWebUrl', $this->getAnonymousJoinWebUrl()); + $writer->writeStringValue('appointmentLabel', $this->getAppointmentLabel()); + $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); $writer->writeStringValue('customerEmailAddress', $this->getCustomerEmailAddress()); $writer->writeStringValue('customerName', $this->getCustomerName()); $writer->writeStringValue('customerNotes', $this->getCustomerNotes()); @@ -431,8 +486,10 @@ public function serialize(SerializationWriter $writer): void { $writer->writeCollectionOfObjectValues('customers', $this->getCustomers()); $writer->writeStringValue('customerTimeZone', $this->getCustomerTimeZone()); $writer->writeObjectValue('endDateTime', $this->getEndDateTime()); + $writer->writeBooleanValue('isCustomerAllowedToManageBooking', $this->getIsCustomerAllowedToManageBooking()); $writer->writeBooleanValue('isLocationOnline', $this->getIsLocationOnline()); $writer->writeStringValue('joinWebUrl', $this->getJoinWebUrl()); + $writer->writeDateTimeValue('lastUpdatedDateTime', $this->getLastUpdatedDateTime()); $writer->writeIntegerValue('maximumAttendeesCount', $this->getMaximumAttendeesCount()); $writer->writeBooleanValue('optOutOfCustomerEmail', $this->getOptOutOfCustomerEmail()); $writer->writeDateIntervalValue('postBuffer', $this->getPostBuffer()); @@ -466,6 +523,22 @@ public function setAnonymousJoinWebUrl(?string $value): void { $this->getBackingStore()->set('anonymousJoinWebUrl', $value); } + /** + * Sets the appointmentLabel property value. Custom label that can be stamped on this appointment by users. + * @param string|null $value Value to set for the appointmentLabel property. + */ + public function setAppointmentLabel(?string $value): void { + $this->getBackingStore()->set('appointmentLabel', $value); + } + + /** + * Sets the createdDateTime property value. The createdDateTime property + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + /** * Sets the customerEmailAddress property value. The customerEmailAddress property * @param string|null $value Value to set for the customerEmailAddress property. @@ -538,6 +611,14 @@ public function setFilledAttendeesCount(?int $value): void { $this->getBackingStore()->set('filledAttendeesCount', $value); } + /** + * Sets the isCustomerAllowedToManageBooking property value. The isCustomerAllowedToManageBooking property + * @param bool|null $value Value to set for the isCustomerAllowedToManageBooking property. + */ + public function setIsCustomerAllowedToManageBooking(?bool $value): void { + $this->getBackingStore()->set('isCustomerAllowedToManageBooking', $value); + } + /** * Sets the isLocationOnline property value. If true, indicates that the appointment will be held online. Default value is false. * @param bool|null $value Value to set for the isLocationOnline property. @@ -554,6 +635,14 @@ public function setJoinWebUrl(?string $value): void { $this->getBackingStore()->set('joinWebUrl', $value); } + /** + * Sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property + * @param DateTime|null $value Value to set for the lastUpdatedDateTime property. + */ + public function setLastUpdatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('lastUpdatedDateTime', $value); + } + /** * Sets the maximumAttendeesCount property value. The maximum number of customers allowed in an appointment. 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. * @param int|null $value Value to set for the maximumAttendeesCount property. diff --git a/src/Generated/Models/BookingBusiness.php b/src/Generated/Models/BookingBusiness.php index b521231a87a..1c7dbabea67 100644 --- a/src/Generated/Models/BookingBusiness.php +++ b/src/Generated/Models/BookingBusiness.php @@ -2,6 +2,7 @@ namespace Microsoft\Graph\Generated\Models; +use DateTime; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; @@ -54,6 +55,18 @@ public function getAppointments(): ?array { throw new \UnexpectedValueException("Invalid type found in backing store for 'appointments'"); } + /** + * Gets the bookingPageSettings property value. The bookingPageSettings property + * @return BookingPageSettings|null + */ + public function getBookingPageSettings(): ?BookingPageSettings { + $val = $this->getBackingStore()->get('bookingPageSettings'); + if (is_null($val) || $val instanceof BookingPageSettings) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'bookingPageSettings'"); + } + /** * Gets the businessHours property value. The hours of operation for the business. * @return array|null @@ -94,6 +107,18 @@ public function getCalendarView(): ?array { throw new \UnexpectedValueException("Invalid type found in backing store for 'calendarView'"); } + /** + * Gets the createdDateTime property value. The createdDateTime property + * @return DateTime|null + */ + public function getCreatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('createdDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdDateTime'"); + } + /** * Gets the customers property value. All the customers of this business. Read-only. Nullable. * @return array|null @@ -167,9 +192,11 @@ public function getFieldDeserializers(): array { return array_merge(parent::getFieldDeserializers(), [ 'address' => fn(ParseNode $n) => $o->setAddress($n->getObjectValue([PhysicalAddress::class, 'createFromDiscriminatorValue'])), 'appointments' => fn(ParseNode $n) => $o->setAppointments($n->getCollectionOfObjectValues([BookingAppointment::class, 'createFromDiscriminatorValue'])), + 'bookingPageSettings' => fn(ParseNode $n) => $o->setBookingPageSettings($n->getObjectValue([BookingPageSettings::class, 'createFromDiscriminatorValue'])), 'businessHours' => fn(ParseNode $n) => $o->setBusinessHours($n->getCollectionOfObjectValues([BookingWorkHours::class, 'createFromDiscriminatorValue'])), 'businessType' => fn(ParseNode $n) => $o->setBusinessType($n->getStringValue()), 'calendarView' => fn(ParseNode $n) => $o->setCalendarView($n->getCollectionOfObjectValues([BookingAppointment::class, 'createFromDiscriminatorValue'])), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), 'customers' => fn(ParseNode $n) => $o->setCustomers($n->getCollectionOfObjectValues([BookingCustomerBase::class, 'createFromDiscriminatorValue'])), 'customQuestions' => fn(ParseNode $n) => $o->setCustomQuestions($n->getCollectionOfObjectValues([BookingCustomQuestion::class, 'createFromDiscriminatorValue'])), 'defaultCurrencyIso' => fn(ParseNode $n) => $o->setDefaultCurrencyIso($n->getStringValue()), @@ -177,6 +204,7 @@ public function getFieldDeserializers(): array { 'email' => fn(ParseNode $n) => $o->setEmail($n->getStringValue()), 'isPublished' => fn(ParseNode $n) => $o->setIsPublished($n->getBooleanValue()), 'languageTag' => fn(ParseNode $n) => $o->setLanguageTag($n->getStringValue()), + 'lastUpdatedDateTime' => fn(ParseNode $n) => $o->setLastUpdatedDateTime($n->getDateTimeValue()), 'phone' => fn(ParseNode $n) => $o->setPhone($n->getStringValue()), 'publicUrl' => fn(ParseNode $n) => $o->setPublicUrl($n->getStringValue()), 'schedulingPolicy' => fn(ParseNode $n) => $o->setSchedulingPolicy($n->getObjectValue([BookingSchedulingPolicy::class, 'createFromDiscriminatorValue'])), @@ -210,6 +238,18 @@ public function getLanguageTag(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'languageTag'"); } + /** + * Gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property + * @return DateTime|null + */ + public function getLastUpdatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('lastUpdatedDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'lastUpdatedDateTime'"); + } + /** * Gets the phone property value. The telephone number for the business. The phone property, together with address and webSiteUrl, appear in the footer of a business scheduling page. * @return string|null @@ -294,15 +334,18 @@ public function serialize(SerializationWriter $writer): void { parent::serialize($writer); $writer->writeObjectValue('address', $this->getAddress()); $writer->writeCollectionOfObjectValues('appointments', $this->getAppointments()); + $writer->writeObjectValue('bookingPageSettings', $this->getBookingPageSettings()); $writer->writeCollectionOfObjectValues('businessHours', $this->getBusinessHours()); $writer->writeStringValue('businessType', $this->getBusinessType()); $writer->writeCollectionOfObjectValues('calendarView', $this->getCalendarView()); + $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); $writer->writeCollectionOfObjectValues('customers', $this->getCustomers()); $writer->writeCollectionOfObjectValues('customQuestions', $this->getCustomQuestions()); $writer->writeStringValue('defaultCurrencyIso', $this->getDefaultCurrencyIso()); $writer->writeStringValue('displayName', $this->getDisplayName()); $writer->writeStringValue('email', $this->getEmail()); $writer->writeStringValue('languageTag', $this->getLanguageTag()); + $writer->writeDateTimeValue('lastUpdatedDateTime', $this->getLastUpdatedDateTime()); $writer->writeStringValue('phone', $this->getPhone()); $writer->writeObjectValue('schedulingPolicy', $this->getSchedulingPolicy()); $writer->writeCollectionOfObjectValues('services', $this->getServices()); @@ -326,6 +369,14 @@ public function setAppointments(?array $value): void { $this->getBackingStore()->set('appointments', $value); } + /** + * Sets the bookingPageSettings property value. The bookingPageSettings property + * @param BookingPageSettings|null $value Value to set for the bookingPageSettings property. + */ + public function setBookingPageSettings(?BookingPageSettings $value): void { + $this->getBackingStore()->set('bookingPageSettings', $value); + } + /** * Sets the businessHours property value. The hours of operation for the business. * @param array|null $value Value to set for the businessHours property. @@ -350,6 +401,14 @@ public function setCalendarView(?array $value): void { $this->getBackingStore()->set('calendarView', $value); } + /** + * Sets the createdDateTime property value. The createdDateTime property + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + /** * Sets the customers property value. All the customers of this business. Read-only. Nullable. * @param array|null $value Value to set for the customers property. @@ -406,6 +465,14 @@ public function setLanguageTag(?string $value): void { $this->getBackingStore()->set('languageTag', $value); } + /** + * Sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property + * @param DateTime|null $value Value to set for the lastUpdatedDateTime property. + */ + public function setLastUpdatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('lastUpdatedDateTime', $value); + } + /** * Sets the phone property value. The telephone number for the business. The phone property, together with address and webSiteUrl, appear in the footer of a business scheduling page. * @param string|null $value Value to set for the phone property. diff --git a/src/Generated/Models/BookingCustomQuestion.php b/src/Generated/Models/BookingCustomQuestion.php index 7b7e214c558..1caefe95755 100644 --- a/src/Generated/Models/BookingCustomQuestion.php +++ b/src/Generated/Models/BookingCustomQuestion.php @@ -2,6 +2,7 @@ namespace Microsoft\Graph\Generated\Models; +use DateTime; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; @@ -54,6 +55,18 @@ public function getAnswerOptions(): ?array { throw new \UnexpectedValueException("Invalid type found in backing store for 'answerOptions'"); } + /** + * Gets the createdDateTime property value. The createdDateTime property + * @return DateTime|null + */ + public function getCreatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('createdDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdDateTime'"); + } + /** * Gets the displayName property value. The question. * @return string|null @@ -82,10 +95,24 @@ public function getFieldDeserializers(): array { /** @var array|null $val */ $this->setAnswerOptions($val); }, + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + 'lastUpdatedDateTime' => fn(ParseNode $n) => $o->setLastUpdatedDateTime($n->getDateTimeValue()), ]); } + /** + * Gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property + * @return DateTime|null + */ + public function getLastUpdatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('lastUpdatedDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'lastUpdatedDateTime'"); + } + /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model @@ -94,7 +121,9 @@ public function serialize(SerializationWriter $writer): void { parent::serialize($writer); $writer->writeEnumValue('answerInputType', $this->getAnswerInputType()); $writer->writeCollectionOfPrimitiveValues('answerOptions', $this->getAnswerOptions()); + $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); $writer->writeStringValue('displayName', $this->getDisplayName()); + $writer->writeDateTimeValue('lastUpdatedDateTime', $this->getLastUpdatedDateTime()); } /** @@ -113,6 +142,14 @@ public function setAnswerOptions(?array $value): void { $this->getBackingStore()->set('answerOptions', $value); } + /** + * Sets the createdDateTime property value. The createdDateTime property + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + /** * Sets the displayName property value. The question. * @param string|null $value Value to set for the displayName property. @@ -121,4 +158,12 @@ public function setDisplayName(?string $value): void { $this->getBackingStore()->set('displayName', $value); } + /** + * Sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property + * @param DateTime|null $value Value to set for the lastUpdatedDateTime property. + */ + public function setLastUpdatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('lastUpdatedDateTime', $value); + } + } diff --git a/src/Generated/Models/BookingCustomer.php b/src/Generated/Models/BookingCustomer.php index 33799a2676a..4a815523b42 100644 --- a/src/Generated/Models/BookingCustomer.php +++ b/src/Generated/Models/BookingCustomer.php @@ -2,6 +2,7 @@ namespace Microsoft\Graph\Generated\Models; +use DateTime; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; @@ -43,6 +44,18 @@ public function getAddresses(): ?array { throw new \UnexpectedValueException("Invalid type found in backing store for 'addresses'"); } + /** + * Gets the createdDateTime property value. The createdDateTime property + * @return DateTime|null + */ + public function getCreatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('createdDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdDateTime'"); + } + /** * Gets the displayName property value. The name of the customer. * @return string|null @@ -75,12 +88,26 @@ public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ 'addresses' => fn(ParseNode $n) => $o->setAddresses($n->getCollectionOfObjectValues([PhysicalAddress::class, 'createFromDiscriminatorValue'])), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), 'emailAddress' => fn(ParseNode $n) => $o->setEmailAddress($n->getStringValue()), + 'lastUpdatedDateTime' => fn(ParseNode $n) => $o->setLastUpdatedDateTime($n->getDateTimeValue()), 'phones' => fn(ParseNode $n) => $o->setPhones($n->getCollectionOfObjectValues([Phone::class, 'createFromDiscriminatorValue'])), ]); } + /** + * Gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property + * @return DateTime|null + */ + public function getLastUpdatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('lastUpdatedDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'lastUpdatedDateTime'"); + } + /** * Gets the phones property value. Phone numbers associated with the customer, including home, business and mobile numbers. * @return array|null @@ -102,8 +129,10 @@ public function getPhones(): ?array { public function serialize(SerializationWriter $writer): void { parent::serialize($writer); $writer->writeCollectionOfObjectValues('addresses', $this->getAddresses()); + $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); $writer->writeStringValue('displayName', $this->getDisplayName()); $writer->writeStringValue('emailAddress', $this->getEmailAddress()); + $writer->writeDateTimeValue('lastUpdatedDateTime', $this->getLastUpdatedDateTime()); $writer->writeCollectionOfObjectValues('phones', $this->getPhones()); } @@ -115,6 +144,14 @@ public function setAddresses(?array $value): void { $this->getBackingStore()->set('addresses', $value); } + /** + * Sets the createdDateTime property value. The createdDateTime property + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + /** * Sets the displayName property value. The name of the customer. * @param string|null $value Value to set for the displayName property. @@ -131,6 +168,14 @@ public function setEmailAddress(?string $value): void { $this->getBackingStore()->set('emailAddress', $value); } + /** + * Sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property + * @param DateTime|null $value Value to set for the lastUpdatedDateTime property. + */ + public function setLastUpdatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('lastUpdatedDateTime', $value); + } + /** * Sets the phones property value. Phone numbers associated with the customer, including home, business and mobile numbers. * @param array|null $value Value to set for the phones property. diff --git a/src/Generated/Models/BookingPageAccessControl.php b/src/Generated/Models/BookingPageAccessControl.php new file mode 100644 index 00000000000..04c6ea77d4a --- /dev/null +++ b/src/Generated/Models/BookingPageAccessControl.php @@ -0,0 +1,11 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return BookingPageSettings + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): BookingPageSettings { + return new BookingPageSettings(); + } + + /** + * Gets the accessControl property value. The accessControl property + * @return BookingPageAccessControl|null + */ + public function getAccessControl(): ?BookingPageAccessControl { + $val = $this->getBackingStore()->get('accessControl'); + if (is_null($val) || $val instanceof BookingPageAccessControl) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'accessControl'"); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the bookingPageColorCode property value. Custom color for bookings page. Value should be in Hex format. Example: `#123456`. + * @return string|null + */ + public function getBookingPageColorCode(): ?string { + $val = $this->getBackingStore()->get('bookingPageColorCode'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'bookingPageColorCode'"); + } + + /** + * Gets the businessTimeZone property value. The time zone of the customer. For a list of possible values, see [dateTimeTimeZone](https://learn.microsoft.com/en-us/graph/api/resources/datetimetimezone?view=graph-rest-beta). + * @return string|null + */ + public function getBusinessTimeZone(): ?string { + $val = $this->getBackingStore()->get('businessTimeZone'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'businessTimeZone'"); + } + + /** + * Gets the customerConsentMessage property value. Customer consent message that is displayed in the Booking page. + * @return string|null + */ + public function getCustomerConsentMessage(): ?string { + $val = $this->getBackingStore()->get('customerConsentMessage'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'customerConsentMessage'"); + } + + /** + * Gets the enforceOneTimePassword property value. Enforcing One Time Password (OTP) during appointment creation. + * @return bool|null + */ + public function getEnforceOneTimePassword(): ?bool { + $val = $this->getBackingStore()->get('enforceOneTimePassword'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'enforceOneTimePassword'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'accessControl' => fn(ParseNode $n) => $o->setAccessControl($n->getEnumValue(BookingPageAccessControl::class)), + 'bookingPageColorCode' => fn(ParseNode $n) => $o->setBookingPageColorCode($n->getStringValue()), + 'businessTimeZone' => fn(ParseNode $n) => $o->setBusinessTimeZone($n->getStringValue()), + 'customerConsentMessage' => fn(ParseNode $n) => $o->setCustomerConsentMessage($n->getStringValue()), + 'enforceOneTimePassword' => fn(ParseNode $n) => $o->setEnforceOneTimePassword($n->getBooleanValue()), + 'isBusinessLogoDisplayEnabled' => fn(ParseNode $n) => $o->setIsBusinessLogoDisplayEnabled($n->getBooleanValue()), + 'isCustomerConsentEnabled' => fn(ParseNode $n) => $o->setIsCustomerConsentEnabled($n->getBooleanValue()), + 'isSearchEngineIndexabilityDisabled' => fn(ParseNode $n) => $o->setIsSearchEngineIndexabilityDisabled($n->getBooleanValue()), + 'isTimeSlotTimeZoneSetToBusinessTimeZone' => fn(ParseNode $n) => $o->setIsTimeSlotTimeZoneSetToBusinessTimeZone($n->getBooleanValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'privacyPolicyWebUrl' => fn(ParseNode $n) => $o->setPrivacyPolicyWebUrl($n->getStringValue()), + 'termsAndConditionsWebUrl' => fn(ParseNode $n) => $o->setTermsAndConditionsWebUrl($n->getStringValue()), + ]; + } + + /** + * Gets the isBusinessLogoDisplayEnabled property value. Enable display of business logo display on the Bookings page. + * @return bool|null + */ + public function getIsBusinessLogoDisplayEnabled(): ?bool { + $val = $this->getBackingStore()->get('isBusinessLogoDisplayEnabled'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isBusinessLogoDisplayEnabled'"); + } + + /** + * Gets the isCustomerConsentEnabled property value. Enforces customer consent on the customer consent message before appointment is booked. + * @return bool|null + */ + public function getIsCustomerConsentEnabled(): ?bool { + $val = $this->getBackingStore()->get('isCustomerConsentEnabled'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isCustomerConsentEnabled'"); + } + + /** + * Gets the isSearchEngineIndexabilityDisabled property value. Disable booking page to be indexed by search engines. False by default. + * @return bool|null + */ + public function getIsSearchEngineIndexabilityDisabled(): ?bool { + $val = $this->getBackingStore()->get('isSearchEngineIndexabilityDisabled'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isSearchEngineIndexabilityDisabled'"); + } + + /** + * Gets the isTimeSlotTimeZoneSetToBusinessTimeZone property value. If business time zone the default value for the time slots that we show in the bookings page. False by default. + * @return bool|null + */ + public function getIsTimeSlotTimeZoneSetToBusinessTimeZone(): ?bool { + $val = $this->getBackingStore()->get('isTimeSlotTimeZoneSetToBusinessTimeZone'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isTimeSlotTimeZoneSetToBusinessTimeZone'"); + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Gets the privacyPolicyWebUrl property value. The URL of the business' Privacy Policy. + * @return string|null + */ + public function getPrivacyPolicyWebUrl(): ?string { + $val = $this->getBackingStore()->get('privacyPolicyWebUrl'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'privacyPolicyWebUrl'"); + } + + /** + * Gets the termsAndConditionsWebUrl property value. The URL of the business' Terms and Conditions. + * @return string|null + */ + public function getTermsAndConditionsWebUrl(): ?string { + $val = $this->getBackingStore()->get('termsAndConditionsWebUrl'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'termsAndConditionsWebUrl'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeEnumValue('accessControl', $this->getAccessControl()); + $writer->writeStringValue('bookingPageColorCode', $this->getBookingPageColorCode()); + $writer->writeStringValue('businessTimeZone', $this->getBusinessTimeZone()); + $writer->writeStringValue('customerConsentMessage', $this->getCustomerConsentMessage()); + $writer->writeBooleanValue('enforceOneTimePassword', $this->getEnforceOneTimePassword()); + $writer->writeBooleanValue('isBusinessLogoDisplayEnabled', $this->getIsBusinessLogoDisplayEnabled()); + $writer->writeBooleanValue('isCustomerConsentEnabled', $this->getIsCustomerConsentEnabled()); + $writer->writeBooleanValue('isSearchEngineIndexabilityDisabled', $this->getIsSearchEngineIndexabilityDisabled()); + $writer->writeBooleanValue('isTimeSlotTimeZoneSetToBusinessTimeZone', $this->getIsTimeSlotTimeZoneSetToBusinessTimeZone()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeStringValue('privacyPolicyWebUrl', $this->getPrivacyPolicyWebUrl()); + $writer->writeStringValue('termsAndConditionsWebUrl', $this->getTermsAndConditionsWebUrl()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the accessControl property value. The accessControl property + * @param BookingPageAccessControl|null $value Value to set for the accessControl property. + */ + public function setAccessControl(?BookingPageAccessControl $value): void { + $this->getBackingStore()->set('accessControl', $value); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the bookingPageColorCode property value. Custom color for bookings page. Value should be in Hex format. Example: `#123456`. + * @param string|null $value Value to set for the bookingPageColorCode property. + */ + public function setBookingPageColorCode(?string $value): void { + $this->getBackingStore()->set('bookingPageColorCode', $value); + } + + /** + * Sets the businessTimeZone property value. The time zone of the customer. For a list of possible values, see [dateTimeTimeZone](https://learn.microsoft.com/en-us/graph/api/resources/datetimetimezone?view=graph-rest-beta). + * @param string|null $value Value to set for the businessTimeZone property. + */ + public function setBusinessTimeZone(?string $value): void { + $this->getBackingStore()->set('businessTimeZone', $value); + } + + /** + * Sets the customerConsentMessage property value. Customer consent message that is displayed in the Booking page. + * @param string|null $value Value to set for the customerConsentMessage property. + */ + public function setCustomerConsentMessage(?string $value): void { + $this->getBackingStore()->set('customerConsentMessage', $value); + } + + /** + * Sets the enforceOneTimePassword property value. Enforcing One Time Password (OTP) during appointment creation. + * @param bool|null $value Value to set for the enforceOneTimePassword property. + */ + public function setEnforceOneTimePassword(?bool $value): void { + $this->getBackingStore()->set('enforceOneTimePassword', $value); + } + + /** + * Sets the isBusinessLogoDisplayEnabled property value. Enable display of business logo display on the Bookings page. + * @param bool|null $value Value to set for the isBusinessLogoDisplayEnabled property. + */ + public function setIsBusinessLogoDisplayEnabled(?bool $value): void { + $this->getBackingStore()->set('isBusinessLogoDisplayEnabled', $value); + } + + /** + * Sets the isCustomerConsentEnabled property value. Enforces customer consent on the customer consent message before appointment is booked. + * @param bool|null $value Value to set for the isCustomerConsentEnabled property. + */ + public function setIsCustomerConsentEnabled(?bool $value): void { + $this->getBackingStore()->set('isCustomerConsentEnabled', $value); + } + + /** + * Sets the isSearchEngineIndexabilityDisabled property value. Disable booking page to be indexed by search engines. False by default. + * @param bool|null $value Value to set for the isSearchEngineIndexabilityDisabled property. + */ + public function setIsSearchEngineIndexabilityDisabled(?bool $value): void { + $this->getBackingStore()->set('isSearchEngineIndexabilityDisabled', $value); + } + + /** + * Sets the isTimeSlotTimeZoneSetToBusinessTimeZone property value. If business time zone the default value for the time slots that we show in the bookings page. False by default. + * @param bool|null $value Value to set for the isTimeSlotTimeZoneSetToBusinessTimeZone property. + */ + public function setIsTimeSlotTimeZoneSetToBusinessTimeZone(?bool $value): void { + $this->getBackingStore()->set('isTimeSlotTimeZoneSetToBusinessTimeZone', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the privacyPolicyWebUrl property value. The URL of the business' Privacy Policy. + * @param string|null $value Value to set for the privacyPolicyWebUrl property. + */ + public function setPrivacyPolicyWebUrl(?string $value): void { + $this->getBackingStore()->set('privacyPolicyWebUrl', $value); + } + + /** + * Sets the termsAndConditionsWebUrl property value. The URL of the business' Terms and Conditions. + * @param string|null $value Value to set for the termsAndConditionsWebUrl property. + */ + public function setTermsAndConditionsWebUrl(?string $value): void { + $this->getBackingStore()->set('termsAndConditionsWebUrl', $value); + } + +} diff --git a/src/Generated/Models/BookingSchedulingPolicy.php b/src/Generated/Models/BookingSchedulingPolicy.php index d4d6844e480..0b3630178b8 100644 --- a/src/Generated/Models/BookingSchedulingPolicy.php +++ b/src/Generated/Models/BookingSchedulingPolicy.php @@ -10,6 +10,7 @@ use Microsoft\Kiota\Abstractions\Store\BackedModel; use Microsoft\Kiota\Abstractions\Store\BackingStore; use Microsoft\Kiota\Abstractions\Store\BackingStoreFactorySingleton; +use Microsoft\Kiota\Abstractions\Types\TypeUtils; /** * This type represents the set of policies that dictate how bookings can be created in a Booking Calendar. @@ -71,6 +72,20 @@ public function getBackingStore(): BackingStore { return $this->backingStore; } + /** + * Gets the customAvailabilities property value. collection of custom availabilities for a given time range. + * @return array|null + */ + public function getCustomAvailabilities(): ?array { + $val = $this->getBackingStore()->get('customAvailabilities'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, BookingsAvailabilityWindow::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'customAvailabilities'"); + } + /** * The deserialization information for the current model * @return array @@ -79,6 +94,9 @@ public function getFieldDeserializers(): array { $o = $this; return [ 'allowStaffSelection' => fn(ParseNode $n) => $o->setAllowStaffSelection($n->getBooleanValue()), + 'customAvailabilities' => fn(ParseNode $n) => $o->setCustomAvailabilities($n->getCollectionOfObjectValues([BookingsAvailabilityWindow::class, 'createFromDiscriminatorValue'])), + 'generalAvailability' => fn(ParseNode $n) => $o->setGeneralAvailability($n->getObjectValue([BookingsAvailability::class, 'createFromDiscriminatorValue'])), + 'isMeetingInviteToCustomersEnabled' => fn(ParseNode $n) => $o->setIsMeetingInviteToCustomersEnabled($n->getBooleanValue()), 'maximumAdvance' => fn(ParseNode $n) => $o->setMaximumAdvance($n->getDateIntervalValue()), 'minimumLeadTime' => fn(ParseNode $n) => $o->setMinimumLeadTime($n->getDateIntervalValue()), '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), @@ -87,6 +105,30 @@ public function getFieldDeserializers(): array { ]; } + /** + * Gets the generalAvailability property value. General availability + * @return BookingsAvailability|null + */ + public function getGeneralAvailability(): ?BookingsAvailability { + $val = $this->getBackingStore()->get('generalAvailability'); + if (is_null($val) || $val instanceof BookingsAvailability) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'generalAvailability'"); + } + + /** + * Gets the isMeetingInviteToCustomersEnabled property value. Enable sending meeting invite to customers. False by default. + * @return bool|null + */ + public function getIsMeetingInviteToCustomersEnabled(): ?bool { + $val = $this->getBackingStore()->get('isMeetingInviteToCustomersEnabled'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isMeetingInviteToCustomersEnabled'"); + } + /** * Gets the maximumAdvance property value. Maximum number of days in advance that a booking can be made. It follows the ISO 8601 format. * @return DateInterval|null @@ -153,6 +195,9 @@ public function getTimeSlotInterval(): ?DateInterval { */ public function serialize(SerializationWriter $writer): void { $writer->writeBooleanValue('allowStaffSelection', $this->getAllowStaffSelection()); + $writer->writeCollectionOfObjectValues('customAvailabilities', $this->getCustomAvailabilities()); + $writer->writeObjectValue('generalAvailability', $this->getGeneralAvailability()); + $writer->writeBooleanValue('isMeetingInviteToCustomersEnabled', $this->getIsMeetingInviteToCustomersEnabled()); $writer->writeDateIntervalValue('maximumAdvance', $this->getMaximumAdvance()); $writer->writeDateIntervalValue('minimumLeadTime', $this->getMinimumLeadTime()); $writer->writeStringValue('@odata.type', $this->getOdataType()); @@ -185,6 +230,30 @@ public function setBackingStore(BackingStore $value): void { $this->backingStore = $value; } + /** + * Sets the customAvailabilities property value. collection of custom availabilities for a given time range. + * @param array|null $value Value to set for the customAvailabilities property. + */ + public function setCustomAvailabilities(?array $value): void { + $this->getBackingStore()->set('customAvailabilities', $value); + } + + /** + * Sets the generalAvailability property value. General availability + * @param BookingsAvailability|null $value Value to set for the generalAvailability property. + */ + public function setGeneralAvailability(?BookingsAvailability $value): void { + $this->getBackingStore()->set('generalAvailability', $value); + } + + /** + * Sets the isMeetingInviteToCustomersEnabled property value. Enable sending meeting invite to customers. False by default. + * @param bool|null $value Value to set for the isMeetingInviteToCustomersEnabled property. + */ + public function setIsMeetingInviteToCustomersEnabled(?bool $value): void { + $this->getBackingStore()->set('isMeetingInviteToCustomersEnabled', $value); + } + /** * Sets the maximumAdvance property value. Maximum number of days in advance that a booking can be made. It follows the ISO 8601 format. * @param DateInterval|null $value Value to set for the maximumAdvance property. diff --git a/src/Generated/Models/BookingService.php b/src/Generated/Models/BookingService.php index de4797516b9..70a1bd6895b 100644 --- a/src/Generated/Models/BookingService.php +++ b/src/Generated/Models/BookingService.php @@ -3,6 +3,7 @@ namespace Microsoft\Graph\Generated\Models; use DateInterval; +use DateTime; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; @@ -41,6 +42,18 @@ public function getAdditionalInformation(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalInformation'"); } + /** + * Gets the createdDateTime property value. The createdDateTime property + * @return DateTime|null + */ + public function getCreatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('createdDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdDateTime'"); + } + /** * Gets the customQuestions property value. Contains the set of custom questions associated with a particular service. * @return array|null @@ -149,6 +162,7 @@ public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ 'additionalInformation' => fn(ParseNode $n) => $o->setAdditionalInformation($n->getStringValue()), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), 'customQuestions' => fn(ParseNode $n) => $o->setCustomQuestions($n->getCollectionOfObjectValues([BookingQuestionAssignment::class, 'createFromDiscriminatorValue'])), 'defaultDuration' => fn(ParseNode $n) => $o->setDefaultDuration($n->getDateIntervalValue()), 'defaultLocation' => fn(ParseNode $n) => $o->setDefaultLocation($n->getObjectValue([Location::class, 'createFromDiscriminatorValue'])), @@ -158,9 +172,11 @@ public function getFieldDeserializers(): array { 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), 'isAnonymousJoinEnabled' => fn(ParseNode $n) => $o->setIsAnonymousJoinEnabled($n->getBooleanValue()), + 'isCustomerAllowedToManageBooking' => fn(ParseNode $n) => $o->setIsCustomerAllowedToManageBooking($n->getBooleanValue()), 'isHiddenFromCustomers' => fn(ParseNode $n) => $o->setIsHiddenFromCustomers($n->getBooleanValue()), 'isLocationOnline' => fn(ParseNode $n) => $o->setIsLocationOnline($n->getBooleanValue()), 'languageTag' => fn(ParseNode $n) => $o->setLanguageTag($n->getStringValue()), + 'lastUpdatedDateTime' => fn(ParseNode $n) => $o->setLastUpdatedDateTime($n->getDateTimeValue()), 'maximumAttendeesCount' => fn(ParseNode $n) => $o->setMaximumAttendeesCount($n->getIntegerValue()), 'notes' => fn(ParseNode $n) => $o->setNotes($n->getStringValue()), 'postBuffer' => fn(ParseNode $n) => $o->setPostBuffer($n->getDateIntervalValue()), @@ -191,6 +207,18 @@ public function getIsAnonymousJoinEnabled(): ?bool { throw new \UnexpectedValueException("Invalid type found in backing store for 'isAnonymousJoinEnabled'"); } + /** + * Gets the isCustomerAllowedToManageBooking property value. The isCustomerAllowedToManageBooking property + * @return bool|null + */ + public function getIsCustomerAllowedToManageBooking(): ?bool { + $val = $this->getBackingStore()->get('isCustomerAllowedToManageBooking'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isCustomerAllowedToManageBooking'"); + } + /** * Gets the isHiddenFromCustomers property value. True means this service is not available to customers for booking. * @return bool|null @@ -227,6 +255,18 @@ public function getLanguageTag(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'languageTag'"); } + /** + * Gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property + * @return DateTime|null + */ + public function getLastUpdatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('lastUpdatedDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'lastUpdatedDateTime'"); + } + /** * Gets the maximumAttendeesCount property 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. * @return int|null @@ -332,6 +372,7 @@ public function getWebUrl(): ?string { public function serialize(SerializationWriter $writer): void { parent::serialize($writer); $writer->writeStringValue('additionalInformation', $this->getAdditionalInformation()); + $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); $writer->writeCollectionOfObjectValues('customQuestions', $this->getCustomQuestions()); $writer->writeDateIntervalValue('defaultDuration', $this->getDefaultDuration()); $writer->writeObjectValue('defaultLocation', $this->getDefaultLocation()); @@ -341,9 +382,11 @@ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('description', $this->getDescription()); $writer->writeStringValue('displayName', $this->getDisplayName()); $writer->writeBooleanValue('isAnonymousJoinEnabled', $this->getIsAnonymousJoinEnabled()); + $writer->writeBooleanValue('isCustomerAllowedToManageBooking', $this->getIsCustomerAllowedToManageBooking()); $writer->writeBooleanValue('isHiddenFromCustomers', $this->getIsHiddenFromCustomers()); $writer->writeBooleanValue('isLocationOnline', $this->getIsLocationOnline()); $writer->writeStringValue('languageTag', $this->getLanguageTag()); + $writer->writeDateTimeValue('lastUpdatedDateTime', $this->getLastUpdatedDateTime()); $writer->writeIntegerValue('maximumAttendeesCount', $this->getMaximumAttendeesCount()); $writer->writeStringValue('notes', $this->getNotes()); $writer->writeDateIntervalValue('postBuffer', $this->getPostBuffer()); @@ -361,6 +404,14 @@ public function setAdditionalInformation(?string $value): void { $this->getBackingStore()->set('additionalInformation', $value); } + /** + * Sets the createdDateTime property value. The createdDateTime property + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + /** * Sets the customQuestions property value. Contains the set of custom questions associated with a particular service. * @param array|null $value Value to set for the customQuestions property. @@ -433,6 +484,14 @@ public function setIsAnonymousJoinEnabled(?bool $value): void { $this->getBackingStore()->set('isAnonymousJoinEnabled', $value); } + /** + * Sets the isCustomerAllowedToManageBooking property value. The isCustomerAllowedToManageBooking property + * @param bool|null $value Value to set for the isCustomerAllowedToManageBooking property. + */ + public function setIsCustomerAllowedToManageBooking(?bool $value): void { + $this->getBackingStore()->set('isCustomerAllowedToManageBooking', $value); + } + /** * Sets the isHiddenFromCustomers property value. True means this service is not available to customers for booking. * @param bool|null $value Value to set for the isHiddenFromCustomers property. @@ -457,6 +516,14 @@ public function setLanguageTag(?string $value): void { $this->getBackingStore()->set('languageTag', $value); } + /** + * Sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property + * @param DateTime|null $value Value to set for the lastUpdatedDateTime property. + */ + public function setLastUpdatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('lastUpdatedDateTime', $value); + } + /** * Sets the maximumAttendeesCount property 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. * @param int|null $value Value to set for the maximumAttendeesCount property. diff --git a/src/Generated/Models/BookingStaffMember.php b/src/Generated/Models/BookingStaffMember.php index f3b1c9871e7..9465ba56d1e 100644 --- a/src/Generated/Models/BookingStaffMember.php +++ b/src/Generated/Models/BookingStaffMember.php @@ -2,6 +2,7 @@ namespace Microsoft\Graph\Generated\Models; +use DateTime; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; @@ -41,6 +42,18 @@ public function getAvailabilityIsAffectedByPersonalCalendar(): ?bool { throw new \UnexpectedValueException("Invalid type found in backing store for 'availabilityIsAffectedByPersonalCalendar'"); } + /** + * Gets the createdDateTime property value. The createdDateTime property + * @return DateTime|null + */ + public function getCreatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('createdDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdDateTime'"); + } + /** * Gets the displayName property value. The name of the staff member, as displayed to customers. Required. * @return string|null @@ -73,9 +86,11 @@ public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ 'availabilityIsAffectedByPersonalCalendar' => fn(ParseNode $n) => $o->setAvailabilityIsAffectedByPersonalCalendar($n->getBooleanValue()), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), 'emailAddress' => fn(ParseNode $n) => $o->setEmailAddress($n->getStringValue()), 'isEmailNotificationEnabled' => fn(ParseNode $n) => $o->setIsEmailNotificationEnabled($n->getBooleanValue()), + 'lastUpdatedDateTime' => fn(ParseNode $n) => $o->setLastUpdatedDateTime($n->getDateTimeValue()), 'membershipStatus' => fn(ParseNode $n) => $o->setMembershipStatus($n->getEnumValue(BookingStaffMembershipStatus::class)), 'role' => fn(ParseNode $n) => $o->setRole($n->getEnumValue(BookingStaffRole::class)), 'timeZone' => fn(ParseNode $n) => $o->setTimeZone($n->getStringValue()), @@ -96,6 +111,18 @@ public function getIsEmailNotificationEnabled(): ?bool { throw new \UnexpectedValueException("Invalid type found in backing store for 'isEmailNotificationEnabled'"); } + /** + * Gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property + * @return DateTime|null + */ + public function getLastUpdatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('lastUpdatedDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'lastUpdatedDateTime'"); + } + /** * Gets the membershipStatus property value. The membershipStatus property * @return BookingStaffMembershipStatus|null @@ -165,9 +192,11 @@ public function getWorkingHours(): ?array { public function serialize(SerializationWriter $writer): void { parent::serialize($writer); $writer->writeBooleanValue('availabilityIsAffectedByPersonalCalendar', $this->getAvailabilityIsAffectedByPersonalCalendar()); + $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); $writer->writeStringValue('displayName', $this->getDisplayName()); $writer->writeStringValue('emailAddress', $this->getEmailAddress()); $writer->writeBooleanValue('isEmailNotificationEnabled', $this->getIsEmailNotificationEnabled()); + $writer->writeDateTimeValue('lastUpdatedDateTime', $this->getLastUpdatedDateTime()); $writer->writeEnumValue('membershipStatus', $this->getMembershipStatus()); $writer->writeEnumValue('role', $this->getRole()); $writer->writeStringValue('timeZone', $this->getTimeZone()); @@ -183,6 +212,14 @@ public function setAvailabilityIsAffectedByPersonalCalendar(?bool $value): void $this->getBackingStore()->set('availabilityIsAffectedByPersonalCalendar', $value); } + /** + * Sets the createdDateTime property value. The createdDateTime property + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + /** * Sets the displayName property value. The name of the staff member, as displayed to customers. Required. * @param string|null $value Value to set for the displayName property. @@ -207,6 +244,14 @@ public function setIsEmailNotificationEnabled(?bool $value): void { $this->getBackingStore()->set('isEmailNotificationEnabled', $value); } + /** + * Sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property + * @param DateTime|null $value Value to set for the lastUpdatedDateTime property. + */ + public function setLastUpdatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('lastUpdatedDateTime', $value); + } + /** * Sets the membershipStatus property value. The membershipStatus property * @param BookingStaffMembershipStatus|null $value Value to set for the membershipStatus property. diff --git a/src/Generated/Models/BookingsAvailability.php b/src/Generated/Models/BookingsAvailability.php new file mode 100644 index 00000000000..420cae68ed8 --- /dev/null +++ b/src/Generated/Models/BookingsAvailability.php @@ -0,0 +1,168 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return BookingsAvailability + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): BookingsAvailability { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.bookingsAvailabilityWindow': return new BookingsAvailabilityWindow(); + } + } + return new BookingsAvailability(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the availabilityType property value. The availabilityType property + * @return BookingsServiceAvailabilityType|null + */ + public function getAvailabilityType(): ?BookingsServiceAvailabilityType { + $val = $this->getBackingStore()->get('availabilityType'); + if (is_null($val) || $val instanceof BookingsServiceAvailabilityType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'availabilityType'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the businessHours property value. The hours of operation in a week. This is set to null if the availability type is not customWeeklyHours + * @return array|null + */ + public function getBusinessHours(): ?array { + $val = $this->getBackingStore()->get('businessHours'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, BookingWorkHours::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'businessHours'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'availabilityType' => fn(ParseNode $n) => $o->setAvailabilityType($n->getEnumValue(BookingsServiceAvailabilityType::class)), + 'businessHours' => fn(ParseNode $n) => $o->setBusinessHours($n->getCollectionOfObjectValues([BookingWorkHours::class, 'createFromDiscriminatorValue'])), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeEnumValue('availabilityType', $this->getAvailabilityType()); + $writer->writeCollectionOfObjectValues('businessHours', $this->getBusinessHours()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the availabilityType property value. The availabilityType property + * @param BookingsServiceAvailabilityType|null $value Value to set for the availabilityType property. + */ + public function setAvailabilityType(?BookingsServiceAvailabilityType $value): void { + $this->getBackingStore()->set('availabilityType', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the businessHours property value. The hours of operation in a week. This is set to null if the availability type is not customWeeklyHours + * @param array|null $value Value to set for the businessHours property. + */ + public function setBusinessHours(?array $value): void { + $this->getBackingStore()->set('businessHours', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + +} diff --git a/src/Generated/Models/BookingsAvailabilityWindow.php b/src/Generated/Models/BookingsAvailabilityWindow.php new file mode 100644 index 00000000000..a5ed9a26254 --- /dev/null +++ b/src/Generated/Models/BookingsAvailabilityWindow.php @@ -0,0 +1,91 @@ +setOdataType('#microsoft.graph.bookingsAvailabilityWindow'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return BookingsAvailabilityWindow + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): BookingsAvailabilityWindow { + return new BookingsAvailabilityWindow(); + } + + /** + * Gets the endDate property value. Allow customers to end date of availability window. + * @return Date|null + */ + public function getEndDate(): ?Date { + $val = $this->getBackingStore()->get('endDate'); + if (is_null($val) || $val instanceof Date) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'endDate'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'endDate' => fn(ParseNode $n) => $o->setEndDate($n->getDateValue()), + 'startDate' => fn(ParseNode $n) => $o->setStartDate($n->getDateValue()), + ]); + } + + /** + * Gets the startDate property value. Allow customers to start date of availability window. + * @return Date|null + */ + public function getStartDate(): ?Date { + $val = $this->getBackingStore()->get('startDate'); + if (is_null($val) || $val instanceof Date) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'startDate'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeDateValue('endDate', $this->getEndDate()); + $writer->writeDateValue('startDate', $this->getStartDate()); + } + + /** + * Sets the endDate property value. Allow customers to end date of availability window. + * @param Date|null $value Value to set for the endDate property. + */ + public function setEndDate(?Date $value): void { + $this->getBackingStore()->set('endDate', $value); + } + + /** + * Sets the startDate property value. Allow customers to start date of availability window. + * @param Date|null $value Value to set for the startDate property. + */ + public function setStartDate(?Date $value): void { + $this->getBackingStore()->set('startDate', $value); + } + +} diff --git a/src/Generated/Models/BookingsServiceAvailabilityType.php b/src/Generated/Models/BookingsServiceAvailabilityType.php new file mode 100644 index 00000000000..53ac648989e --- /dev/null +++ b/src/Generated/Models/BookingsServiceAvailabilityType.php @@ -0,0 +1,12 @@ + fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), 'email' => fn(ParseNode $n) => $o->setEmail($n->getStringValue()), 'filesFolder' => fn(ParseNode $n) => $o->setFilesFolder($n->getObjectValue([DriveItem::class, 'createFromDiscriminatorValue'])), + 'isArchived' => fn(ParseNode $n) => $o->setIsArchived($n->getBooleanValue()), 'isFavoriteByDefault' => fn(ParseNode $n) => $o->setIsFavoriteByDefault($n->getBooleanValue()), 'members' => fn(ParseNode $n) => $o->setMembers($n->getCollectionOfObjectValues([ConversationMember::class, 'createFromDiscriminatorValue'])), 'membershipType' => fn(ParseNode $n) => $o->setMembershipType($n->getEnumValue(ChannelMembershipType::class)), @@ -110,6 +111,18 @@ public function getFilesFolder(): ?DriveItem { throw new \UnexpectedValueException("Invalid type found in backing store for 'filesFolder'"); } + /** + * Gets the isArchived property value. Indicates whether the channel is archived. Read-only. + * @return bool|null + */ + public function getIsArchived(): ?bool { + $val = $this->getBackingStore()->get('isArchived'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isArchived'"); + } + /** * Gets the isFavoriteByDefault property value. Indicates whether the channel should be marked as recommended for all members of the team to show in their channel list. Note: All recommended channels automatically show in the channels list for education and frontline worker users. The property can only be set programmatically via the Create team method. The default value is false. * @return bool|null @@ -237,6 +250,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('displayName', $this->getDisplayName()); $writer->writeStringValue('email', $this->getEmail()); $writer->writeObjectValue('filesFolder', $this->getFilesFolder()); + $writer->writeBooleanValue('isArchived', $this->getIsArchived()); $writer->writeBooleanValue('isFavoriteByDefault', $this->getIsFavoriteByDefault()); $writer->writeCollectionOfObjectValues('members', $this->getMembers()); $writer->writeEnumValue('membershipType', $this->getMembershipType()); @@ -288,6 +302,14 @@ public function setFilesFolder(?DriveItem $value): void { $this->getBackingStore()->set('filesFolder', $value); } + /** + * Sets the isArchived property value. Indicates whether the channel is archived. Read-only. + * @param bool|null $value Value to set for the isArchived property. + */ + public function setIsArchived(?bool $value): void { + $this->getBackingStore()->set('isArchived', $value); + } + /** * Sets the isFavoriteByDefault property value. Indicates whether the channel should be marked as recommended for all members of the team to show in their channel list. Note: All recommended channels automatically show in the channels list for education and frontline worker users. The property can only be set programmatically via the Create team method. The default value is false. * @param bool|null $value Value to set for the isFavoriteByDefault property. diff --git a/src/Generated/Models/CompanySubscription.php b/src/Generated/Models/CompanySubscription.php index b2f895ff8d5..202fabfc995 100644 --- a/src/Generated/Models/CompanySubscription.php +++ b/src/Generated/Models/CompanySubscription.php @@ -27,7 +27,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Compa } /** - * Gets the commerceSubscriptionId property value. The commerceSubscriptionId property + * Gets the commerceSubscriptionId property value. The ID of this subscription in the commerce system. Alternate key. * @return string|null */ public function getCommerceSubscriptionId(): ?string { @@ -39,7 +39,7 @@ public function getCommerceSubscriptionId(): ?string { } /** - * Gets the createdDateTime property value. The createdDateTime property + * Gets the createdDateTime property value. The date and time when this subscription was created. 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. * @return DateTime|null */ public function getCreatedDateTime(): ?DateTime { @@ -73,7 +73,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the isTrial property value. The isTrial property + * Gets the isTrial property value. Whether the subscription is a free trial or purchased. * @return bool|null */ public function getIsTrial(): ?bool { @@ -85,7 +85,7 @@ public function getIsTrial(): ?bool { } /** - * Gets the nextLifecycleDateTime property value. The nextLifecycleDateTime property + * Gets the nextLifecycleDateTime property value. The date and time when the subscription will move to the next state (as defined by the status property) if not renewed by the tenant. 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. * @return DateTime|null */ public function getNextLifecycleDateTime(): ?DateTime { @@ -97,7 +97,7 @@ public function getNextLifecycleDateTime(): ?DateTime { } /** - * Gets the ownerId property value. The ownerId property + * Gets the ownerId property value. The object ID of the account admin. * @return string|null */ public function getOwnerId(): ?string { @@ -109,7 +109,7 @@ public function getOwnerId(): ?string { } /** - * Gets the ownerTenantId property value. The ownerTenantId property + * Gets the ownerTenantId property value. The unique identifier for the Microsoft partner tenant that created the subscription on a customer tenant. * @return string|null */ public function getOwnerTenantId(): ?string { @@ -121,7 +121,7 @@ public function getOwnerTenantId(): ?string { } /** - * Gets the ownerType property value. The ownerType property + * Gets the ownerType property value. Indicates the entity that ownerId belongs to, for example, 'User'. * @return string|null */ public function getOwnerType(): ?string { @@ -133,7 +133,7 @@ public function getOwnerType(): ?string { } /** - * Gets the serviceStatus property value. The serviceStatus property + * Gets the serviceStatus property value. The provisioning status of each service included in this subscription. * @return array|null */ public function getServiceStatus(): ?array { @@ -147,7 +147,7 @@ public function getServiceStatus(): ?array { } /** - * Gets the skuId property value. The skuId property + * Gets the skuId property value. The object ID of the SKU associated with this subscription. * @return string|null */ public function getSkuId(): ?string { @@ -159,7 +159,7 @@ public function getSkuId(): ?string { } /** - * Gets the skuPartNumber property value. The skuPartNumber property + * Gets the skuPartNumber property value. The SKU associated with this subscription. * @return string|null */ public function getSkuPartNumber(): ?string { @@ -171,7 +171,7 @@ public function getSkuPartNumber(): ?string { } /** - * Gets the status property value. The status property + * Gets the status property value. The status of this subscription. Possible values are: Enabled, Deleted, Suspended, Warning, LockedOut. * @return string|null */ public function getStatus(): ?string { @@ -183,7 +183,7 @@ public function getStatus(): ?string { } /** - * Gets the totalLicenses property value. The totalLicenses property + * Gets the totalLicenses property value. The number of licenses included in this subscription. * @return int|null */ public function getTotalLicenses(): ?int { @@ -215,7 +215,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the commerceSubscriptionId property value. The commerceSubscriptionId property + * Sets the commerceSubscriptionId property value. The ID of this subscription in the commerce system. Alternate key. * @param string|null $value Value to set for the commerceSubscriptionId property. */ public function setCommerceSubscriptionId(?string $value): void { @@ -223,7 +223,7 @@ public function setCommerceSubscriptionId(?string $value): void { } /** - * Sets the createdDateTime property value. The createdDateTime property + * Sets the createdDateTime property value. The date and time when this subscription was created. 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. * @param DateTime|null $value Value to set for the createdDateTime property. */ public function setCreatedDateTime(?DateTime $value): void { @@ -231,7 +231,7 @@ public function setCreatedDateTime(?DateTime $value): void { } /** - * Sets the isTrial property value. The isTrial property + * Sets the isTrial property value. Whether the subscription is a free trial or purchased. * @param bool|null $value Value to set for the isTrial property. */ public function setIsTrial(?bool $value): void { @@ -239,7 +239,7 @@ public function setIsTrial(?bool $value): void { } /** - * Sets the nextLifecycleDateTime property value. The nextLifecycleDateTime property + * Sets the nextLifecycleDateTime property value. The date and time when the subscription will move to the next state (as defined by the status property) if not renewed by the tenant. 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. * @param DateTime|null $value Value to set for the nextLifecycleDateTime property. */ public function setNextLifecycleDateTime(?DateTime $value): void { @@ -247,7 +247,7 @@ public function setNextLifecycleDateTime(?DateTime $value): void { } /** - * Sets the ownerId property value. The ownerId property + * Sets the ownerId property value. The object ID of the account admin. * @param string|null $value Value to set for the ownerId property. */ public function setOwnerId(?string $value): void { @@ -255,7 +255,7 @@ public function setOwnerId(?string $value): void { } /** - * Sets the ownerTenantId property value. The ownerTenantId property + * Sets the ownerTenantId property value. The unique identifier for the Microsoft partner tenant that created the subscription on a customer tenant. * @param string|null $value Value to set for the ownerTenantId property. */ public function setOwnerTenantId(?string $value): void { @@ -263,7 +263,7 @@ public function setOwnerTenantId(?string $value): void { } /** - * Sets the ownerType property value. The ownerType property + * Sets the ownerType property value. Indicates the entity that ownerId belongs to, for example, 'User'. * @param string|null $value Value to set for the ownerType property. */ public function setOwnerType(?string $value): void { @@ -271,7 +271,7 @@ public function setOwnerType(?string $value): void { } /** - * Sets the serviceStatus property value. The serviceStatus property + * Sets the serviceStatus property value. The provisioning status of each service included in this subscription. * @param array|null $value Value to set for the serviceStatus property. */ public function setServiceStatus(?array $value): void { @@ -279,7 +279,7 @@ public function setServiceStatus(?array $value): void { } /** - * Sets the skuId property value. The skuId property + * Sets the skuId property value. The object ID of the SKU associated with this subscription. * @param string|null $value Value to set for the skuId property. */ public function setSkuId(?string $value): void { @@ -287,7 +287,7 @@ public function setSkuId(?string $value): void { } /** - * Sets the skuPartNumber property value. The skuPartNumber property + * Sets the skuPartNumber property value. The SKU associated with this subscription. * @param string|null $value Value to set for the skuPartNumber property. */ public function setSkuPartNumber(?string $value): void { @@ -295,7 +295,7 @@ public function setSkuPartNumber(?string $value): void { } /** - * Sets the status property value. The status property + * Sets the status property value. The status of this subscription. Possible values are: Enabled, Deleted, Suspended, Warning, LockedOut. * @param string|null $value Value to set for the status property. */ public function setStatus(?string $value): void { @@ -303,7 +303,7 @@ public function setStatus(?string $value): void { } /** - * Sets the totalLicenses property value. The totalLicenses property + * Sets the totalLicenses property value. The number of licenses included in this subscription. * @param int|null $value Value to set for the totalLicenses property. */ public function setTotalLicenses(?int $value): void { diff --git a/src/Generated/Models/ConditionalAccessConditionSet.php b/src/Generated/Models/ConditionalAccessConditionSet.php index 1fc54d68d3e..3c3252f6ebd 100644 --- a/src/Generated/Models/ConditionalAccessConditionSet.php +++ b/src/Generated/Models/ConditionalAccessConditionSet.php @@ -129,7 +129,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the insiderRiskLevels property value. The insiderRiskLevels property + * Gets the insiderRiskLevels property value. Insider risk levels included in the policy. The possible values are: minor, moderate, elevated, unknownFutureValue. * @return ConditionalAccessInsiderRiskLevels|null */ public function getInsiderRiskLevels(): ?ConditionalAccessInsiderRiskLevels { @@ -299,7 +299,7 @@ public function setDevices(?ConditionalAccessDevices $value): void { } /** - * Sets the insiderRiskLevels property value. The insiderRiskLevels property + * Sets the insiderRiskLevels property value. Insider risk levels included in the policy. The possible values are: minor, moderate, elevated, unknownFutureValue. * @param ConditionalAccessInsiderRiskLevels|null $value Value to set for the insiderRiskLevels property. */ public function setInsiderRiskLevels(?ConditionalAccessInsiderRiskLevels $value): void { diff --git a/src/Generated/Models/CrossTenantAccessPolicyB2BSetting.php b/src/Generated/Models/CrossTenantAccessPolicyB2BSetting.php index fca550048f1..cb6d4351489 100644 --- a/src/Generated/Models/CrossTenantAccessPolicyB2BSetting.php +++ b/src/Generated/Models/CrossTenantAccessPolicyB2BSetting.php @@ -31,6 +31,13 @@ public function __construct() { * @return CrossTenantAccessPolicyB2BSetting */ public static function createFromDiscriminatorValue(ParseNode $parseNode): CrossTenantAccessPolicyB2BSetting { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.crossTenantAccessPolicyTenantRestrictions': return new CrossTenantAccessPolicyTenantRestrictions(); + } + } return new CrossTenantAccessPolicyB2BSetting(); } diff --git a/src/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.php b/src/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.php index 65b2f38d1b9..26474749486 100644 --- a/src/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.php +++ b/src/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.php @@ -99,6 +99,7 @@ public function getFieldDeserializers(): array { 'inboundTrust' => fn(ParseNode $n) => $o->setInboundTrust($n->getObjectValue([CrossTenantAccessPolicyInboundTrust::class, 'createFromDiscriminatorValue'])), 'invitationRedemptionIdentityProviderConfiguration' => fn(ParseNode $n) => $o->setInvitationRedemptionIdentityProviderConfiguration($n->getObjectValue([DefaultInvitationRedemptionIdentityProviderConfiguration::class, 'createFromDiscriminatorValue'])), 'isServiceDefault' => fn(ParseNode $n) => $o->setIsServiceDefault($n->getBooleanValue()), + 'tenantRestrictions' => fn(ParseNode $n) => $o->setTenantRestrictions($n->getObjectValue([CrossTenantAccessPolicyTenantRestrictions::class, 'createFromDiscriminatorValue'])), ]); } @@ -138,6 +139,18 @@ public function getIsServiceDefault(): ?bool { throw new \UnexpectedValueException("Invalid type found in backing store for 'isServiceDefault'"); } + /** + * Gets the tenantRestrictions property value. Defines the default tenant restrictions configuration for users in your organization who access an external organization on your network or devices. + * @return CrossTenantAccessPolicyTenantRestrictions|null + */ + public function getTenantRestrictions(): ?CrossTenantAccessPolicyTenantRestrictions { + $val = $this->getBackingStore()->get('tenantRestrictions'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyTenantRestrictions) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'tenantRestrictions'"); + } + /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model @@ -152,6 +165,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeObjectValue('inboundTrust', $this->getInboundTrust()); $writer->writeObjectValue('invitationRedemptionIdentityProviderConfiguration', $this->getInvitationRedemptionIdentityProviderConfiguration()); $writer->writeBooleanValue('isServiceDefault', $this->getIsServiceDefault()); + $writer->writeObjectValue('tenantRestrictions', $this->getTenantRestrictions()); } /** @@ -218,4 +232,12 @@ public function setIsServiceDefault(?bool $value): void { $this->getBackingStore()->set('isServiceDefault', $value); } + /** + * Sets the tenantRestrictions property value. Defines the default tenant restrictions configuration for users in your organization who access an external organization on your network or devices. + * @param CrossTenantAccessPolicyTenantRestrictions|null $value Value to set for the tenantRestrictions property. + */ + public function setTenantRestrictions(?CrossTenantAccessPolicyTenantRestrictions $value): void { + $this->getBackingStore()->set('tenantRestrictions', $value); + } + } diff --git a/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php b/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php index 0fb924bb553..a42c7d93923 100644 --- a/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php +++ b/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php @@ -133,6 +133,7 @@ public function getFieldDeserializers(): array { 'isServiceProvider' => fn(ParseNode $n) => $o->setIsServiceProvider($n->getBooleanValue()), '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()), + 'tenantRestrictions' => fn(ParseNode $n) => $o->setTenantRestrictions($n->getObjectValue([CrossTenantAccessPolicyTenantRestrictions::class, 'createFromDiscriminatorValue'])), ]; } @@ -208,6 +209,18 @@ public function getTenantId(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'tenantId'"); } + /** + * Gets the tenantRestrictions property value. Defines the partner-specific tenant restrictions configuration for users in your organization who access a partner organization using partner supplied identities on your network or devices. + * @return CrossTenantAccessPolicyTenantRestrictions|null + */ + public function getTenantRestrictions(): ?CrossTenantAccessPolicyTenantRestrictions { + $val = $this->getBackingStore()->get('tenantRestrictions'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyTenantRestrictions) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'tenantRestrictions'"); + } + /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model @@ -224,6 +237,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeBooleanValue('isServiceProvider', $this->getIsServiceProvider()); $writer->writeStringValue('@odata.type', $this->getOdataType()); $writer->writeStringValue('tenantId', $this->getTenantId()); + $writer->writeObjectValue('tenantRestrictions', $this->getTenantRestrictions()); $writer->writeAdditionalData($this->getAdditionalData()); } @@ -331,4 +345,12 @@ public function setTenantId(?string $value): void { $this->getBackingStore()->set('tenantId', $value); } + /** + * Sets the tenantRestrictions property value. Defines the partner-specific tenant restrictions configuration for users in your organization who access a partner organization using partner supplied identities on your network or devices. + * @param CrossTenantAccessPolicyTenantRestrictions|null $value Value to set for the tenantRestrictions property. + */ + public function setTenantRestrictions(?CrossTenantAccessPolicyTenantRestrictions $value): void { + $this->getBackingStore()->set('tenantRestrictions', $value); + } + } diff --git a/src/Generated/Models/CrossTenantAccessPolicyTarget.php b/src/Generated/Models/CrossTenantAccessPolicyTarget.php index 0c91537f888..6950f7cb41b 100644 --- a/src/Generated/Models/CrossTenantAccessPolicyTarget.php +++ b/src/Generated/Models/CrossTenantAccessPolicyTarget.php @@ -81,7 +81,7 @@ public function getOdataType(): ?string { } /** - * Gets the target property value. The unique identifier of the user, group, or application; one of the following keywords: AllUsers and AllApplications; or for targets that are applications, you may use reserved values. + * Gets the target property value. Defines the target for cross-tenant access policy settings and can have one of the following values: The unique identifier of the user, group, or application AllUsers AllApplications - Refers to any Microsoft cloud application. Office365 - Includes the applications mentioned as part of the Office 365 suite. * @return string|null */ public function getTarget(): ?string { @@ -140,7 +140,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the target property value. The unique identifier of the user, group, or application; one of the following keywords: AllUsers and AllApplications; or for targets that are applications, you may use reserved values. + * Sets the target property value. Defines the target for cross-tenant access policy settings and can have one of the following values: The unique identifier of the user, group, or application AllUsers AllApplications - Refers to any Microsoft cloud application. Office365 - Includes the applications mentioned as part of the Office 365 suite. * @param string|null $value Value to set for the target property. */ public function setTarget(?string $value): void { diff --git a/src/Generated/Models/CrossTenantAccessPolicyTenantRestrictions.php b/src/Generated/Models/CrossTenantAccessPolicyTenantRestrictions.php new file mode 100644 index 00000000000..3a60d19951a --- /dev/null +++ b/src/Generated/Models/CrossTenantAccessPolicyTenantRestrictions.php @@ -0,0 +1,68 @@ +setOdataType('#microsoft.graph.crossTenantAccessPolicyTenantRestrictions'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return CrossTenantAccessPolicyTenantRestrictions + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CrossTenantAccessPolicyTenantRestrictions { + return new CrossTenantAccessPolicyTenantRestrictions(); + } + + /** + * Gets the devices property value. Defines the rule for filtering devices and whether devices that satisfy the rule should be allowed or blocked. This property isn't supported on the server side yet. + * @return DevicesFilter|null + */ + public function getDevices(): ?DevicesFilter { + $val = $this->getBackingStore()->get('devices'); + if (is_null($val) || $val instanceof DevicesFilter) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'devices'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'devices' => fn(ParseNode $n) => $o->setDevices($n->getObjectValue([DevicesFilter::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeObjectValue('devices', $this->getDevices()); + } + + /** + * Sets the devices property value. Defines the rule for filtering devices and whether devices that satisfy the rule should be allowed or blocked. This property isn't supported on the server side yet. + * @param DevicesFilter|null $value Value to set for the devices property. + */ + public function setDevices(?DevicesFilter $value): void { + $this->getBackingStore()->set('devices', $value); + } + +} diff --git a/src/Generated/Models/CustomAppManagementConfiguration.php b/src/Generated/Models/CustomAppManagementConfiguration.php new file mode 100644 index 00000000000..b4538e65faf --- /dev/null +++ b/src/Generated/Models/CustomAppManagementConfiguration.php @@ -0,0 +1,46 @@ +setOdataType('#microsoft.graph.customAppManagementConfiguration'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return CustomAppManagementConfiguration + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CustomAppManagementConfiguration { + return new CustomAppManagementConfiguration(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + } + +} diff --git a/src/Generated/Models/DevicesFilter.php b/src/Generated/Models/DevicesFilter.php new file mode 100644 index 00000000000..61e7ae47fd1 --- /dev/null +++ b/src/Generated/Models/DevicesFilter.php @@ -0,0 +1,158 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return DevicesFilter + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): DevicesFilter { + return new DevicesFilter(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'mode' => fn(ParseNode $n) => $o->setMode($n->getEnumValue(CrossTenantAccessPolicyTargetConfigurationAccessType::class)), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'rule' => fn(ParseNode $n) => $o->setRule($n->getStringValue()), + ]; + } + + /** + * Gets the mode property value. Determines whether devices that satisfy the rule should be allowed or blocked. The possible values are: allowed, blocked, unknownFutureValue. + * @return CrossTenantAccessPolicyTargetConfigurationAccessType|null + */ + public function getMode(): ?CrossTenantAccessPolicyTargetConfigurationAccessType { + $val = $this->getBackingStore()->get('mode'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyTargetConfigurationAccessType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'mode'"); + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Gets the rule property value. Defines the rule to filter the devices. For example, device.deviceAttribute2 -eq 'PrivilegedAccessWorkstation'. + * @return string|null + */ + public function getRule(): ?string { + $val = $this->getBackingStore()->get('rule'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'rule'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeEnumValue('mode', $this->getMode()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeStringValue('rule', $this->getRule()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the mode property value. Determines whether devices that satisfy the rule should be allowed or blocked. The possible values are: allowed, blocked, unknownFutureValue. + * @param CrossTenantAccessPolicyTargetConfigurationAccessType|null $value Value to set for the mode property. + */ + public function setMode(?CrossTenantAccessPolicyTargetConfigurationAccessType $value): void { + $this->getBackingStore()->set('mode', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the rule property value. Defines the rule to filter the devices. For example, device.deviceAttribute2 -eq 'PrivilegedAccessWorkstation'. + * @param string|null $value Value to set for the rule property. + */ + public function setRule(?string $value): void { + $this->getBackingStore()->set('rule', $value); + } + +} diff --git a/src/Generated/Models/Directory.php b/src/Generated/Models/Directory.php index 94190a1d60e..fc245b73f49 100644 --- a/src/Generated/Models/Directory.php +++ b/src/Generated/Models/Directory.php @@ -142,7 +142,7 @@ public function getOnPremisesSynchronization(): ?array { } /** - * Gets the subscriptions property value. The subscriptions property + * Gets the subscriptions property value. List of commercial subscriptions that an organization acquired. * @return array|null */ public function getSubscriptions(): ?array { @@ -228,7 +228,7 @@ public function setOnPremisesSynchronization(?array $value): void { } /** - * Sets the subscriptions property value. The subscriptions property + * Sets the subscriptions property value. List of commercial subscriptions that an organization acquired. * @param array|null $value Value to set for the subscriptions property. */ public function setSubscriptions(?array $value): void { diff --git a/src/Generated/Models/EducationRubric.php b/src/Generated/Models/EducationRubric.php index e6691000080..aa32422b3ca 100644 --- a/src/Generated/Models/EducationRubric.php +++ b/src/Generated/Models/EducationRubric.php @@ -39,7 +39,7 @@ public function getCreatedBy(): ?IdentitySet { } /** - * Gets the createdDateTime property value. 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 + * Gets the createdDateTime property value. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return DateTime|null */ public function getCreatedDateTime(): ?DateTime { @@ -94,7 +94,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the grading property value. The grading type of this rubric -- null for a no-points rubric, or educationAssignmentPointsGradeType for a points rubric. + * Gets the grading property value. The grading type of this rubric. You can use null for a no-points rubric or educationAssignmentPointsGradeType for a points rubric. * @return EducationAssignmentGradeType|null */ public function getGrading(): ?EducationAssignmentGradeType { @@ -118,7 +118,7 @@ public function getLastModifiedBy(): ?IdentitySet { } /** - * Gets the lastModifiedDateTime property value. Moment in time when the resource was last modified. 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 + * Gets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return DateTime|null */ public function getLastModifiedDateTime(): ?DateTime { @@ -179,7 +179,7 @@ public function setCreatedBy(?IdentitySet $value): void { } /** - * Sets the createdDateTime property value. 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 + * Sets the createdDateTime property value. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param DateTime|null $value Value to set for the createdDateTime property. */ public function setCreatedDateTime(?DateTime $value): void { @@ -203,7 +203,7 @@ public function setDisplayName(?string $value): void { } /** - * Sets the grading property value. The grading type of this rubric -- null for a no-points rubric, or educationAssignmentPointsGradeType for a points rubric. + * Sets the grading property value. The grading type of this rubric. You can use null for a no-points rubric or educationAssignmentPointsGradeType for a points rubric. * @param EducationAssignmentGradeType|null $value Value to set for the grading property. */ public function setGrading(?EducationAssignmentGradeType $value): void { @@ -219,7 +219,7 @@ public function setLastModifiedBy(?IdentitySet $value): void { } /** - * Sets the lastModifiedDateTime property value. Moment in time when the resource was last modified. 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 + * Sets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param DateTime|null $value Value to set for the lastModifiedDateTime property. */ public function setLastModifiedDateTime(?DateTime $value): void { diff --git a/src/Generated/Models/Entity.php b/src/Generated/Models/Entity.php index 4d1cfb58922..a6417a0a9bf 100644 --- a/src/Generated/Models/Entity.php +++ b/src/Generated/Models/Entity.php @@ -491,6 +491,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.importedWindowsAutopilotDeviceIdentityUpload': return new ImportedWindowsAutopilotDeviceIdentityUpload(); case '#microsoft.graph.inferenceClassification': return new InferenceClassification(); case '#microsoft.graph.inferenceClassificationOverride': return new InferenceClassificationOverride(); + case '#microsoft.graph.insightsSettings': return new InsightsSettings(); case '#microsoft.graph.internalDomainFederation': return new InternalDomainFederation(); case '#microsoft.graph.internetExplorerMode': return new InternetExplorerMode(); case '#microsoft.graph.invitation': return new Invitation(); @@ -517,6 +518,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.itemActivityStat': return new ItemActivityStat(); case '#microsoft.graph.itemAnalytics': return new ItemAnalytics(); case '#microsoft.graph.itemAttachment': return new ItemAttachment(); + case '#microsoft.graph.itemInsights': return new ItemInsights(); case '#microsoft.graph.itemRetentionLabel': return new ItemRetentionLabel(); case '#microsoft.graph.landingPage': return new LandingPage(); case '#microsoft.graph.landingPageDetail': return new LandingPageDetail(); @@ -823,6 +825,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.serviceHealthIssue': return new ServiceHealthIssue(); case '#microsoft.graph.servicePrincipal': return new ServicePrincipal(); case '#microsoft.graph.servicePrincipalRiskDetection': return new ServicePrincipalRiskDetection(); + case '#microsoft.graph.serviceStorageQuotaBreakdown': return new ServiceStorageQuotaBreakdown(); case '#microsoft.graph.serviceUpdateMessage': return new ServiceUpdateMessage(); case '#microsoft.graph.settingStateDeviceSummary': return new SettingStateDeviceSummary(); case '#microsoft.graph.sharedDriveItem': return new SharedDriveItem(); @@ -851,6 +854,8 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.standardWebPart': return new StandardWebPart(); case '#microsoft.graph.startHoldMusicOperation': return new StartHoldMusicOperation(); case '#microsoft.graph.stopHoldMusicOperation': return new StopHoldMusicOperation(); + case '#microsoft.graph.storageQuotaBreakdown': return new StorageQuotaBreakdown(); + case '#microsoft.graph.storageSettings': return new StorageSettings(); case '#microsoft.graph.stsPolicy': return new StsPolicy(); case '#microsoft.graph.subjectRightsRequest': return new SubjectRightsRequest(); case '#microsoft.graph.subscribedSku': return new SubscribedSku(); @@ -928,6 +933,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.unifiedRoleManagementPolicyRule': return new UnifiedRoleManagementPolicyRule(); case '#microsoft.graph.unifiedRoleScheduleBase': return new UnifiedRoleScheduleBase(); case '#microsoft.graph.unifiedRoleScheduleInstanceBase': return new UnifiedRoleScheduleInstanceBase(); + case '#microsoft.graph.unifiedStorageQuota': return new UnifiedStorageQuota(); case '#microsoft.graph.unmuteParticipantOperation': return new UnmuteParticipantOperation(); case '#microsoft.graph.updateRecordingStatusOperation': return new UpdateRecordingStatusOperation(); case '#microsoft.graph.urlAssessmentRequest': return new UrlAssessmentRequest(); @@ -961,19 +967,28 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.userExperienceAnalyticsWorkFromAnywhereModelPerformance': return new UserExperienceAnalyticsWorkFromAnywhereModelPerformance(); case '#microsoft.graph.userFlowLanguageConfiguration': return new UserFlowLanguageConfiguration(); case '#microsoft.graph.userFlowLanguagePage': return new UserFlowLanguagePage(); + case '#microsoft.graph.userInsightsSettings': return new UserInsightsSettings(); case '#microsoft.graph.userInstallStateSummary': return new UserInstallStateSummary(); case '#microsoft.graph.userRegistrationDetails': return new UserRegistrationDetails(); case '#microsoft.graph.userScopeTeamsAppInstallation': return new UserScopeTeamsAppInstallation(); case '#microsoft.graph.userSettings': return new UserSettings(); case '#microsoft.graph.userSignInInsight': return new UserSignInInsight(); + case '#microsoft.graph.userStorage': return new UserStorage(); case '#microsoft.graph.userTeamwork': return new UserTeamwork(); case '#microsoft.graph.verticalSection': return new VerticalSection(); case '#microsoft.graph.virtualEndpoint': return new VirtualEndpoint(); case '#microsoft.graph.virtualEvent': return new VirtualEvent(); + case '#microsoft.graph.virtualEventPresenter': return new VirtualEventPresenter(); case '#microsoft.graph.virtualEventRegistration': return new VirtualEventRegistration(); + case '#microsoft.graph.virtualEventRegistrationConfiguration': return new VirtualEventRegistrationConfiguration(); + case '#microsoft.graph.virtualEventRegistrationCustomQuestion': return new VirtualEventRegistrationCustomQuestion(); + case '#microsoft.graph.virtualEventRegistrationPredefinedQuestion': return new VirtualEventRegistrationPredefinedQuestion(); + case '#microsoft.graph.virtualEventRegistrationQuestionBase': return new VirtualEventRegistrationQuestionBase(); case '#microsoft.graph.virtualEventSession': return new VirtualEventSession(); case '#microsoft.graph.virtualEventsRoot': return new VirtualEventsRoot(); + case '#microsoft.graph.virtualEventTownhall': return new VirtualEventTownhall(); case '#microsoft.graph.virtualEventWebinar': return new VirtualEventWebinar(); + case '#microsoft.graph.virtualEventWebinarRegistrationConfiguration': return new VirtualEventWebinarRegistrationConfiguration(); case '#microsoft.graph.voiceAuthenticationMethodConfiguration': return new VoiceAuthenticationMethodConfiguration(); case '#microsoft.graph.vppToken': return new VppToken(); case '#microsoft.graph.webApp': return new WebApp(); diff --git a/src/Generated/Models/ExternalConnectors/PropertyRule.php b/src/Generated/Models/ExternalConnectors/PropertyRule.php index 9c8809bb93f..d546abb8d1d 100644 --- a/src/Generated/Models/ExternalConnectors/PropertyRule.php +++ b/src/Generated/Models/ExternalConnectors/PropertyRule.php @@ -116,7 +116,7 @@ public function getProperty(): ?string { } /** - * Gets the values property value. A collection with one or many strings. The specified string(s) will be matched with the specified property using the specified operation. Required. + * Gets the values property value. A collection with one or many strings. One or more specified strings are matched with the specified property using the specified operation. Required. * @return array|null */ public function getValues(): ?array { @@ -195,7 +195,7 @@ public function setProperty(?string $value): void { } /** - * Sets the values property value. A collection with one or many strings. The specified string(s) will be matched with the specified property using the specified operation. Required. + * Sets the values property value. A collection with one or many strings. One or more specified strings are matched with the specified property using the specified operation. Required. * @param array|null $value Value to set for the values property. */ public function setValues(?array $value): void { diff --git a/src/Generated/Models/Group.php b/src/Generated/Models/Group.php index 73e7da3b1e7..c0ed411a42f 100644 --- a/src/Generated/Models/Group.php +++ b/src/Generated/Models/Group.php @@ -653,7 +653,7 @@ public function getOnPremisesSamAccountName(): ?string { } /** - * Gets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only. Returned by default. Supports $filter (eq including on null values). Read-only. + * Gets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only. Returned by default. Supports $filter (eq including on null values). * @return string|null */ public function getOnPremisesSecurityIdentifier(): ?string { @@ -1386,7 +1386,7 @@ public function setOnPremisesSamAccountName(?string $value): void { } /** - * Sets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only. Returned by default. Supports $filter (eq including on null values). Read-only. + * Sets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only. Returned by default. Supports $filter (eq including on null values). * @param string|null $value Value to set for the onPremisesSecurityIdentifier property. */ public function setOnPremisesSecurityIdentifier(?string $value): void { diff --git a/src/Generated/Models/Identity.php b/src/Generated/Models/Identity.php index 6166a3368b7..3a8e01dc1a7 100644 --- a/src/Generated/Models/Identity.php +++ b/src/Generated/Models/Identity.php @@ -83,7 +83,7 @@ public function getBackingStore(): BackingStore { } /** - * Gets the displayName property value. The display name of the identity. The display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as having changed when using delta. + * Gets the displayName property value. The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta. * @return string|null */ public function getDisplayName(): ?string { @@ -108,7 +108,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the id property value. Unique identifier for the identity. When the unique identifier is unavailable, the displayName property is provided for the identity, but the id property isn't included in the response. + * Gets the id property value. Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review. * @return string|null */ public function getId(): ?string { @@ -159,7 +159,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the displayName property value. The display name of the identity. The display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as having changed when using delta. + * Sets the displayName property value. The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta. * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { @@ -167,7 +167,7 @@ public function setDisplayName(?string $value): void { } /** - * Sets the id property value. Unique identifier for the identity. When the unique identifier is unavailable, the displayName property is provided for the identity, but the id property isn't included in the response. + * Sets the id property value. Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review. * @param string|null $value Value to set for the id property. */ public function setId(?string $value): void { diff --git a/src/Generated/Models/InsightsSettings.php b/src/Generated/Models/InsightsSettings.php new file mode 100644 index 00000000000..18d3e7a2840 --- /dev/null +++ b/src/Generated/Models/InsightsSettings.php @@ -0,0 +1,89 @@ +getBackingStore()->get('disabledForGroup'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'disabledForGroup'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'disabledForGroup' => fn(ParseNode $n) => $o->setDisabledForGroup($n->getStringValue()), + 'isEnabledInOrganization' => fn(ParseNode $n) => $o->setIsEnabledInOrganization($n->getBooleanValue()), + ]); + } + + /** + * Gets the isEnabledInOrganization property value. true if insights of the specified type are enabled for the organization; false if insights of the specified type are disabled for all users without exceptions. The default value is true. Optional. + * @return bool|null + */ + public function getIsEnabledInOrganization(): ?bool { + $val = $this->getBackingStore()->get('isEnabledInOrganization'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isEnabledInOrganization'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeStringValue('disabledForGroup', $this->getDisabledForGroup()); + $writer->writeBooleanValue('isEnabledInOrganization', $this->getIsEnabledInOrganization()); + } + + /** + * Sets the disabledForGroup property value. The ID of a Microsoft Entra group, of which the specified type of insights are disabled for its members. The default value is null. Optional. + * @param string|null $value Value to set for the disabledForGroup property. + */ + public function setDisabledForGroup(?string $value): void { + $this->getBackingStore()->set('disabledForGroup', $value); + } + + /** + * Sets the isEnabledInOrganization property value. true if insights of the specified type are enabled for the organization; false if insights of the specified type are disabled for all users without exceptions. The default value is true. Optional. + * @param bool|null $value Value to set for the isEnabledInOrganization property. + */ + public function setIsEnabledInOrganization(?bool $value): void { + $this->getBackingStore()->set('isEnabledInOrganization', $value); + } + +} diff --git a/src/Generated/Models/ItemInsights.php b/src/Generated/Models/ItemInsights.php new file mode 100644 index 00000000000..ab37c91915b --- /dev/null +++ b/src/Generated/Models/ItemInsights.php @@ -0,0 +1,45 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + } + +} diff --git a/src/Generated/Models/MeetingParticipantInfo.php b/src/Generated/Models/MeetingParticipantInfo.php index 5c1e0889de6..e7c2d1fb9e2 100644 --- a/src/Generated/Models/MeetingParticipantInfo.php +++ b/src/Generated/Models/MeetingParticipantInfo.php @@ -31,6 +31,13 @@ public function __construct() { * @return MeetingParticipantInfo */ public static function createFromDiscriminatorValue(ParseNode $parseNode): MeetingParticipantInfo { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.virtualEventPresenterInfo': return new VirtualEventPresenterInfo(); + } + } return new MeetingParticipantInfo(); } diff --git a/src/Generated/Models/NativeAuthenticationApisEnabled.php b/src/Generated/Models/NativeAuthenticationApisEnabled.php new file mode 100644 index 00000000000..a2ee12c0164 --- /dev/null +++ b/src/Generated/Models/NativeAuthenticationApisEnabled.php @@ -0,0 +1,11 @@ +getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.itemInsights': return new ItemInsights(); + } + } return new OfficeGraphInsights(); } @@ -39,7 +46,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the shared property value. Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Gets the shared property value. Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @return array|null */ public function getShared(): ?array { @@ -53,7 +60,7 @@ public function getShared(): ?array { } /** - * Gets the trending property value. Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Gets the trending property value. Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @return array|null */ public function getTrending(): ?array { @@ -67,7 +74,7 @@ public function getTrending(): ?array { } /** - * Gets the used property value. Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Gets the used property value. Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @return array|null */ public function getUsed(): ?array { @@ -92,7 +99,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the shared property value. Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Sets the shared property value. Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @param array|null $value Value to set for the shared property. */ public function setShared(?array $value): void { @@ -100,7 +107,7 @@ public function setShared(?array $value): void { } /** - * Sets the trending property value. Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Sets the trending property value. Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @param array|null $value Value to set for the trending property. */ public function setTrending(?array $value): void { @@ -108,7 +115,7 @@ public function setTrending(?array $value): void { } /** - * Sets the used property value. Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Sets the used property value. Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @param array|null $value Value to set for the used property. */ public function setUsed(?array $value): void { diff --git a/src/Generated/Models/OnlineMeeting.php b/src/Generated/Models/OnlineMeeting.php index 55fa39311bc..3478c3b1743 100644 --- a/src/Generated/Models/OnlineMeeting.php +++ b/src/Generated/Models/OnlineMeeting.php @@ -147,7 +147,7 @@ public function getRecordings(): ?array { } /** - * Gets the startDateTime property value. The meeting start time in UTC. Required when you create an online meeting. + * Gets the startDateTime property value. The meeting start time in UTC. * @return DateTime|null */ public function getStartDateTime(): ?DateTime { @@ -255,7 +255,7 @@ public function setRecordings(?array $value): void { } /** - * Sets the startDateTime property value. The meeting start time in UTC. Required when you create an online meeting. + * Sets the startDateTime property value. The meeting start time in UTC. * @param DateTime|null $value Value to set for the startDateTime property. */ public function setStartDateTime(?DateTime $value): void { diff --git a/src/Generated/Models/PeopleAdminSettings.php b/src/Generated/Models/PeopleAdminSettings.php index 07f706c9f4f..44d9ff9d2c2 100644 --- a/src/Generated/Models/PeopleAdminSettings.php +++ b/src/Generated/Models/PeopleAdminSettings.php @@ -32,11 +32,24 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Peopl public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ + 'itemInsights' => fn(ParseNode $n) => $o->setItemInsights($n->getObjectValue([InsightsSettings::class, 'createFromDiscriminatorValue'])), 'profileCardProperties' => fn(ParseNode $n) => $o->setProfileCardProperties($n->getCollectionOfObjectValues([ProfileCardProperty::class, 'createFromDiscriminatorValue'])), 'pronouns' => fn(ParseNode $n) => $o->setPronouns($n->getObjectValue([PronounsSettings::class, 'createFromDiscriminatorValue'])), ]); } + /** + * Gets the itemInsights property value. Represents administrator settings that manage the support for item insights in an organization. + * @return InsightsSettings|null + */ + public function getItemInsights(): ?InsightsSettings { + $val = $this->getBackingStore()->get('itemInsights'); + if (is_null($val) || $val instanceof InsightsSettings) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'itemInsights'"); + } + /** * Gets the profileCardProperties property value. Contains a collection of the properties an administrator has defined as visible on the Microsoft 365 profile card. * @return array|null @@ -69,10 +82,19 @@ public function getPronouns(): ?PronounsSettings { */ public function serialize(SerializationWriter $writer): void { parent::serialize($writer); + $writer->writeObjectValue('itemInsights', $this->getItemInsights()); $writer->writeCollectionOfObjectValues('profileCardProperties', $this->getProfileCardProperties()); $writer->writeObjectValue('pronouns', $this->getPronouns()); } + /** + * Sets the itemInsights property value. Represents administrator settings that manage the support for item insights in an organization. + * @param InsightsSettings|null $value Value to set for the itemInsights property. + */ + public function setItemInsights(?InsightsSettings $value): void { + $this->getBackingStore()->set('itemInsights', $value); + } + /** * Sets the profileCardProperties property value. Contains a collection of the properties an administrator has defined as visible on the Microsoft 365 profile card. * @param array|null $value Value to set for the profileCardProperties property. diff --git a/src/Generated/Models/SecureScore.php b/src/Generated/Models/SecureScore.php index dba913f7d2a..ee1f2d8a3ef 100644 --- a/src/Generated/Models/SecureScore.php +++ b/src/Generated/Models/SecureScore.php @@ -79,7 +79,7 @@ public function getControlScores(): ?array { } /** - * Gets the createdDateTime property value. The date when the entity is created. + * Gets the createdDateTime property value. When the report was created. * @return DateTime|null */ public function getCreatedDateTime(): ?DateTime { @@ -230,7 +230,7 @@ public function setControlScores(?array $value): void { } /** - * Sets the createdDateTime property value. The date when the entity is created. + * Sets the createdDateTime property value. When the report was created. * @param DateTime|null $value Value to set for the createdDateTime property. */ public function setCreatedDateTime(?DateTime $value): void { diff --git a/src/Generated/Models/Security/AlertEvidence.php b/src/Generated/Models/Security/AlertEvidence.php index 104b5f5bd54..17fe41c2148 100644 --- a/src/Generated/Models/Security/AlertEvidence.php +++ b/src/Generated/Models/Security/AlertEvidence.php @@ -43,6 +43,8 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Alert case '#microsoft.graph.security.blobContainerEvidence': return new BlobContainerEvidence(); case '#microsoft.graph.security.blobEvidence': return new BlobEvidence(); case '#microsoft.graph.security.cloudApplicationEvidence': return new CloudApplicationEvidence(); + case '#microsoft.graph.security.cloudLogonRequestEvidence': return new CloudLogonRequestEvidence(); + case '#microsoft.graph.security.cloudLogonSessionEvidence': return new CloudLogonSessionEvidence(); case '#microsoft.graph.security.containerEvidence': return new ContainerEvidence(); case '#microsoft.graph.security.containerImageEvidence': return new ContainerImageEvidence(); case '#microsoft.graph.security.containerRegistryEvidence': return new ContainerRegistryEvidence(); diff --git a/src/Generated/Models/Security/CloudLogonRequestEvidence.php b/src/Generated/Models/Security/CloudLogonRequestEvidence.php new file mode 100644 index 00000000000..4c87c745a37 --- /dev/null +++ b/src/Generated/Models/Security/CloudLogonRequestEvidence.php @@ -0,0 +1,68 @@ +setOdataType('#microsoft.graph.security.cloudLogonRequestEvidence'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return CloudLogonRequestEvidence + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CloudLogonRequestEvidence { + return new CloudLogonRequestEvidence(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'requestId' => fn(ParseNode $n) => $o->setRequestId($n->getStringValue()), + ]); + } + + /** + * Gets the requestId property value. The unique identifier for the sign-in request. + * @return string|null + */ + public function getRequestId(): ?string { + $val = $this->getBackingStore()->get('requestId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'requestId'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeStringValue('requestId', $this->getRequestId()); + } + + /** + * Sets the requestId property value. The unique identifier for the sign-in request. + * @param string|null $value Value to set for the requestId property. + */ + public function setRequestId(?string $value): void { + $this->getBackingStore()->set('requestId', $value); + } + +} diff --git a/src/Generated/Models/Security/CloudLogonSessionEvidence.php b/src/Generated/Models/Security/CloudLogonSessionEvidence.php new file mode 100644 index 00000000000..42bd47108ba --- /dev/null +++ b/src/Generated/Models/Security/CloudLogonSessionEvidence.php @@ -0,0 +1,245 @@ +setOdataType('#microsoft.graph.security.cloudLogonSessionEvidence'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return CloudLogonSessionEvidence + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CloudLogonSessionEvidence { + return new CloudLogonSessionEvidence(); + } + + /** + * Gets the account property value. The account associated with the sign-in session. + * @return UserEvidence|null + */ + public function getAccount(): ?UserEvidence { + $val = $this->getBackingStore()->get('account'); + if (is_null($val) || $val instanceof UserEvidence) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'account'"); + } + + /** + * Gets the browser property value. The browser that is used for the sign-in, if known. + * @return string|null + */ + public function getBrowser(): ?string { + $val = $this->getBackingStore()->get('browser'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'browser'"); + } + + /** + * Gets the deviceName property value. The friendly name of the device, if known. + * @return string|null + */ + public function getDeviceName(): ?string { + $val = $this->getBackingStore()->get('deviceName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'deviceName'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'account' => fn(ParseNode $n) => $o->setAccount($n->getObjectValue([UserEvidence::class, 'createFromDiscriminatorValue'])), + 'browser' => fn(ParseNode $n) => $o->setBrowser($n->getStringValue()), + 'deviceName' => fn(ParseNode $n) => $o->setDeviceName($n->getStringValue()), + 'operatingSystem' => fn(ParseNode $n) => $o->setOperatingSystem($n->getStringValue()), + 'previousLogonDateTime' => fn(ParseNode $n) => $o->setPreviousLogonDateTime($n->getDateTimeValue()), + 'protocol' => fn(ParseNode $n) => $o->setProtocol($n->getStringValue()), + 'sessionId' => fn(ParseNode $n) => $o->setSessionId($n->getStringValue()), + 'startUtcDateTime' => fn(ParseNode $n) => $o->setStartUtcDateTime($n->getDateTimeValue()), + 'userAgent' => fn(ParseNode $n) => $o->setUserAgent($n->getStringValue()), + ]); + } + + /** + * Gets the operatingSystem property value. The operating system that the device is running, if known. + * @return string|null + */ + public function getOperatingSystem(): ?string { + $val = $this->getBackingStore()->get('operatingSystem'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'operatingSystem'"); + } + + /** + * Gets the previousLogonDateTime property value. The previous sign-in time for this account, if known. + * @return DateTime|null + */ + public function getPreviousLogonDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('previousLogonDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'previousLogonDateTime'"); + } + + /** + * Gets the protocol property value. The authentication protocol that is used in this session, if known. + * @return string|null + */ + public function getProtocol(): ?string { + $val = $this->getBackingStore()->get('protocol'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'protocol'"); + } + + /** + * Gets the sessionId property value. The session ID for the account reported in the alert. + * @return string|null + */ + public function getSessionId(): ?string { + $val = $this->getBackingStore()->get('sessionId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'sessionId'"); + } + + /** + * Gets the startUtcDateTime property value. The session start time, if known. + * @return DateTime|null + */ + public function getStartUtcDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('startUtcDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'startUtcDateTime'"); + } + + /** + * Gets the userAgent property value. The user agent that is used for the sign-in, if known. + * @return string|null + */ + public function getUserAgent(): ?string { + $val = $this->getBackingStore()->get('userAgent'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'userAgent'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeObjectValue('account', $this->getAccount()); + $writer->writeStringValue('browser', $this->getBrowser()); + $writer->writeStringValue('deviceName', $this->getDeviceName()); + $writer->writeStringValue('operatingSystem', $this->getOperatingSystem()); + $writer->writeDateTimeValue('previousLogonDateTime', $this->getPreviousLogonDateTime()); + $writer->writeStringValue('protocol', $this->getProtocol()); + $writer->writeStringValue('sessionId', $this->getSessionId()); + $writer->writeDateTimeValue('startUtcDateTime', $this->getStartUtcDateTime()); + $writer->writeStringValue('userAgent', $this->getUserAgent()); + } + + /** + * Sets the account property value. The account associated with the sign-in session. + * @param UserEvidence|null $value Value to set for the account property. + */ + public function setAccount(?UserEvidence $value): void { + $this->getBackingStore()->set('account', $value); + } + + /** + * Sets the browser property value. The browser that is used for the sign-in, if known. + * @param string|null $value Value to set for the browser property. + */ + public function setBrowser(?string $value): void { + $this->getBackingStore()->set('browser', $value); + } + + /** + * Sets the deviceName property value. The friendly name of the device, if known. + * @param string|null $value Value to set for the deviceName property. + */ + public function setDeviceName(?string $value): void { + $this->getBackingStore()->set('deviceName', $value); + } + + /** + * Sets the operatingSystem property value. The operating system that the device is running, if known. + * @param string|null $value Value to set for the operatingSystem property. + */ + public function setOperatingSystem(?string $value): void { + $this->getBackingStore()->set('operatingSystem', $value); + } + + /** + * Sets the previousLogonDateTime property value. The previous sign-in time for this account, if known. + * @param DateTime|null $value Value to set for the previousLogonDateTime property. + */ + public function setPreviousLogonDateTime(?DateTime $value): void { + $this->getBackingStore()->set('previousLogonDateTime', $value); + } + + /** + * Sets the protocol property value. The authentication protocol that is used in this session, if known. + * @param string|null $value Value to set for the protocol property. + */ + public function setProtocol(?string $value): void { + $this->getBackingStore()->set('protocol', $value); + } + + /** + * Sets the sessionId property value. The session ID for the account reported in the alert. + * @param string|null $value Value to set for the sessionId property. + */ + public function setSessionId(?string $value): void { + $this->getBackingStore()->set('sessionId', $value); + } + + /** + * Sets the startUtcDateTime property value. The session start time, if known. + * @param DateTime|null $value Value to set for the startUtcDateTime property. + */ + public function setStartUtcDateTime(?DateTime $value): void { + $this->getBackingStore()->set('startUtcDateTime', $value); + } + + /** + * Sets the userAgent property value. The user agent that is used for the sign-in, if known. + * @param string|null $value Value to set for the userAgent property. + */ + public function setUserAgent(?string $value): void { + $this->getBackingStore()->set('userAgent', $value); + } + +} diff --git a/src/Generated/Models/Security/Incident.php b/src/Generated/Models/Security/Incident.php index 101ba9c508d..f6fcf8d3541 100644 --- a/src/Generated/Models/Security/Incident.php +++ b/src/Generated/Models/Security/Incident.php @@ -171,6 +171,7 @@ public function getFieldDeserializers(): array { 'resolvingComment' => fn(ParseNode $n) => $o->setResolvingComment($n->getStringValue()), 'severity' => fn(ParseNode $n) => $o->setSeverity($n->getEnumValue(AlertSeverity::class)), 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(IncidentStatus::class)), + 'summary' => fn(ParseNode $n) => $o->setSummary($n->getStringValue()), 'systemTags' => function (ParseNode $n) { $val = $n->getCollectionOfPrimitiveValues(); if (is_array($val)) { @@ -267,6 +268,18 @@ public function getStatus(): ?IncidentStatus { throw new \UnexpectedValueException("Invalid type found in backing store for 'status'"); } + /** + * Gets the summary property value. The overview of an attack. When applicable, the summary contains details of what occurred, impacted assets, and the type of attack. + * @return string|null + */ + public function getSummary(): ?string { + $val = $this->getBackingStore()->get('summary'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'summary'"); + } + /** * Gets the systemTags property value. The system tags associated with the incident. * @return array|null @@ -315,6 +328,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('resolvingComment', $this->getResolvingComment()); $writer->writeEnumValue('severity', $this->getSeverity()); $writer->writeEnumValue('status', $this->getStatus()); + $writer->writeStringValue('summary', $this->getSummary()); $writer->writeCollectionOfPrimitiveValues('systemTags', $this->getSystemTags()); $writer->writeStringValue('tenantId', $this->getTenantId()); } @@ -447,6 +461,14 @@ public function setStatus(?IncidentStatus $value): void { $this->getBackingStore()->set('status', $value); } + /** + * Sets the summary property value. The overview of an attack. When applicable, the summary contains details of what occurred, impacted assets, and the type of attack. + * @param string|null $value Value to set for the summary property. + */ + public function setSummary(?string $value): void { + $this->getBackingStore()->set('summary', $value); + } + /** * Sets the systemTags property value. The system tags associated with the incident. * @param array|null $value Value to set for the systemTags property. diff --git a/src/Generated/Models/Security/SslCertificate.php b/src/Generated/Models/Security/SslCertificate.php index 9949ce56361..7ba40679f8d 100644 --- a/src/Generated/Models/Security/SslCertificate.php +++ b/src/Generated/Models/Security/SslCertificate.php @@ -120,7 +120,7 @@ public function getLastSeenDateTime(): ?DateTime { } /** - * Gets the relatedHosts property value. The hosts related with this sslCertificate. + * Gets the relatedHosts property value. The host resources related with this sslCertificate. * @return array|null */ public function getRelatedHosts(): ?array { @@ -236,7 +236,7 @@ public function setLastSeenDateTime(?DateTime $value): void { } /** - * Sets the relatedHosts property value. The hosts related with this sslCertificate. + * Sets the relatedHosts property value. The host resources related with this sslCertificate. * @param array|null $value Value to set for the relatedHosts property. */ public function setRelatedHosts(?array $value): void { diff --git a/src/Generated/Models/ServiceStorageQuotaBreakdown.php b/src/Generated/Models/ServiceStorageQuotaBreakdown.php new file mode 100644 index 00000000000..ce9a94f0fe6 --- /dev/null +++ b/src/Generated/Models/ServiceStorageQuotaBreakdown.php @@ -0,0 +1,45 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + } + +} diff --git a/src/Generated/Models/ServiceStorageQuotaBreakdownCollectionResponse.php b/src/Generated/Models/ServiceStorageQuotaBreakdownCollectionResponse.php new file mode 100644 index 00000000000..271fbbff8d0 --- /dev/null +++ b/src/Generated/Models/ServiceStorageQuotaBreakdownCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ServiceStorageQuotaBreakdown::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ServiceStorageQuotaBreakdown::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/Shared.php b/src/Generated/Models/Shared.php index d30a057b2d6..5701bce8317 100644 --- a/src/Generated/Models/Shared.php +++ b/src/Generated/Models/Shared.php @@ -96,7 +96,7 @@ public function getOwner(): ?IdentitySet { } /** - * Gets the scope property value. Indicates the scope of how the item is shared: anonymous, organization, or users. Read-only. + * Gets the scope property value. Indicates the scope of how the item is shared. The possible values are: anonymous, organization, or users. Read-only. * @return string|null */ public function getScope(): ?string { @@ -177,7 +177,7 @@ public function setOwner(?IdentitySet $value): void { } /** - * Sets the scope property value. Indicates the scope of how the item is shared: anonymous, organization, or users. Read-only. + * Sets the scope property value. Indicates the scope of how the item is shared. The possible values are: anonymous, organization, or users. Read-only. * @param string|null $value Value to set for the scope property. */ public function setScope(?string $value): void { diff --git a/src/Generated/Models/Storage.php b/src/Generated/Models/Storage.php index f59e5985d76..40671457b3d 100644 --- a/src/Generated/Models/Storage.php +++ b/src/Generated/Models/Storage.php @@ -64,6 +64,7 @@ public function getFieldDeserializers(): array { return [ 'fileStorage' => fn(ParseNode $n) => $o->setFileStorage($n->getObjectValue([FileStorage::class, 'createFromDiscriminatorValue'])), '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'settings' => fn(ParseNode $n) => $o->setSettings($n->getObjectValue([StorageSettings::class, 'createFromDiscriminatorValue'])), ]; } @@ -91,6 +92,18 @@ public function getOdataType(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); } + /** + * Gets the settings property value. The settings property + * @return StorageSettings|null + */ + public function getSettings(): ?StorageSettings { + $val = $this->getBackingStore()->get('settings'); + if (is_null($val) || $val instanceof StorageSettings) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'settings'"); + } + /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model @@ -98,6 +111,7 @@ public function getOdataType(): ?string { public function serialize(SerializationWriter $writer): void { $writer->writeObjectValue('fileStorage', $this->getFileStorage()); $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeObjectValue('settings', $this->getSettings()); $writer->writeAdditionalData($this->getAdditionalData()); } @@ -133,4 +147,12 @@ public function setOdataType(?string $value): void { $this->getBackingStore()->set('odataType', $value); } + /** + * Sets the settings property value. The settings property + * @param StorageSettings|null $value Value to set for the settings property. + */ + public function setSettings(?StorageSettings $value): void { + $this->getBackingStore()->set('settings', $value); + } + } diff --git a/src/Generated/Models/StorageQuotaBreakdown.php b/src/Generated/Models/StorageQuotaBreakdown.php new file mode 100644 index 00000000000..38a397d05a0 --- /dev/null +++ b/src/Generated/Models/StorageQuotaBreakdown.php @@ -0,0 +1,118 @@ +getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.serviceStorageQuotaBreakdown': return new ServiceStorageQuotaBreakdown(); + } + } + return new StorageQuotaBreakdown(); + } + + /** + * Gets the displayName property value. The displayName property + * @return string|null + */ + public function getDisplayName(): ?string { + $val = $this->getBackingStore()->get('displayName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'displayName'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + 'manageWebUrl' => fn(ParseNode $n) => $o->setManageWebUrl($n->getStringValue()), + 'used' => fn(ParseNode $n) => $o->setUsed($n->getIntegerValue()), + ]); + } + + /** + * Gets the manageWebUrl property value. The manageWebUrl property + * @return string|null + */ + public function getManageWebUrl(): ?string { + $val = $this->getBackingStore()->get('manageWebUrl'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'manageWebUrl'"); + } + + /** + * Gets the used property value. The used property + * @return int|null + */ + public function getUsed(): ?int { + $val = $this->getBackingStore()->get('used'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'used'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeStringValue('displayName', $this->getDisplayName()); + $writer->writeStringValue('manageWebUrl', $this->getManageWebUrl()); + $writer->writeIntegerValue('used', $this->getUsed()); + } + + /** + * Sets the displayName property value. The displayName property + * @param string|null $value Value to set for the displayName property. + */ + public function setDisplayName(?string $value): void { + $this->getBackingStore()->set('displayName', $value); + } + + /** + * Sets the manageWebUrl property value. The manageWebUrl property + * @param string|null $value Value to set for the manageWebUrl property. + */ + public function setManageWebUrl(?string $value): void { + $this->getBackingStore()->set('manageWebUrl', $value); + } + + /** + * Sets the used property value. The used property + * @param int|null $value Value to set for the used property. + */ + public function setUsed(?int $value): void { + $this->getBackingStore()->set('used', $value); + } + +} diff --git a/src/Generated/Models/StorageSettings.php b/src/Generated/Models/StorageSettings.php new file mode 100644 index 00000000000..6356a59790b --- /dev/null +++ b/src/Generated/Models/StorageSettings.php @@ -0,0 +1,67 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'quota' => fn(ParseNode $n) => $o->setQuota($n->getObjectValue([UnifiedStorageQuota::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the quota property value. The quota property + * @return UnifiedStorageQuota|null + */ + public function getQuota(): ?UnifiedStorageQuota { + $val = $this->getBackingStore()->get('quota'); + if (is_null($val) || $val instanceof UnifiedStorageQuota) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'quota'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeObjectValue('quota', $this->getQuota()); + } + + /** + * Sets the quota property value. The quota property + * @param UnifiedStorageQuota|null $value Value to set for the quota property. + */ + public function setQuota(?UnifiedStorageQuota $value): void { + $this->getBackingStore()->set('quota', $value); + } + +} diff --git a/src/Generated/Models/SubscribedSku.php b/src/Generated/Models/SubscribedSku.php index 2d16922df45..528d9e91ffe 100644 --- a/src/Generated/Models/SubscribedSku.php +++ b/src/Generated/Models/SubscribedSku.php @@ -50,7 +50,7 @@ public function getAccountName(): ?string { } /** - * Gets the appliesTo property value. The target class for this SKU. Only SKUs with target class User are assignable. Possible values are: 'User', 'Company'. + * Gets the appliesTo property value. The target class for this SKU. Only SKUs with target class User are assignable. Possible values are: User, Company. * @return string|null */ public function getAppliesTo(): ?string { @@ -151,7 +151,7 @@ public function getSkuId(): ?string { } /** - * Gets the skuPartNumber property value. The SKU part number; for example: 'AAD_PREMIUM' or 'RMSBASIC'. To get a list of commercial subscriptions that an organization has acquired, see List subscribedSkus. + * Gets the skuPartNumber property value. The SKU part number; for example: AAD_PREMIUM or RMSBASIC. To get a list of commercial subscriptions that an organization has acquired, see List subscribedSkus. * @return string|null */ public function getSkuPartNumber(): ?string { @@ -211,7 +211,7 @@ public function setAccountName(?string $value): void { } /** - * Sets the appliesTo property value. The target class for this SKU. Only SKUs with target class User are assignable. Possible values are: 'User', 'Company'. + * Sets the appliesTo property value. The target class for this SKU. Only SKUs with target class User are assignable. Possible values are: User, Company. * @param string|null $value Value to set for the appliesTo property. */ public function setAppliesTo(?string $value): void { @@ -259,7 +259,7 @@ public function setSkuId(?string $value): void { } /** - * Sets the skuPartNumber property value. The SKU part number; for example: 'AAD_PREMIUM' or 'RMSBASIC'. To get a list of commercial subscriptions that an organization has acquired, see List subscribedSkus. + * Sets the skuPartNumber property value. The SKU part number; for example: AAD_PREMIUM or RMSBASIC. To get a list of commercial subscriptions that an organization has acquired, see List subscribedSkus. * @param string|null $value Value to set for the skuPartNumber property. */ public function setSkuPartNumber(?string $value): void { diff --git a/src/Generated/Models/SynchronizationSchedule.php b/src/Generated/Models/SynchronizationSchedule.php index b0de6ae7c8d..200c2c7e021 100644 --- a/src/Generated/Models/SynchronizationSchedule.php +++ b/src/Generated/Models/SynchronizationSchedule.php @@ -84,7 +84,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of one month. + * Gets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, P1M represents a period of one month and PT1M represents a period of one minute. * @return DateInterval|null */ public function getInterval(): ?DateInterval { @@ -156,7 +156,7 @@ public function setExpiration(?DateTime $value): void { } /** - * Sets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of one month. + * Sets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, P1M represents a period of one month and PT1M represents a period of one minute. * @param DateInterval|null $value Value to set for the interval property. */ public function setInterval(?DateInterval $value): void { diff --git a/src/Generated/Models/TeamsAsyncOperationType.php b/src/Generated/Models/TeamsAsyncOperationType.php index e4046a40eaa..a84408fa0b6 100644 --- a/src/Generated/Models/TeamsAsyncOperationType.php +++ b/src/Generated/Models/TeamsAsyncOperationType.php @@ -13,4 +13,6 @@ class TeamsAsyncOperationType extends Enum { public const UNKNOWN_FUTURE_VALUE = 'unknownFutureValue'; public const TEAMIFY_GROUP = 'teamifyGroup'; public const CREATE_CHANNEL = 'createChannel'; + public const ARCHIVE_CHANNEL = 'archiveChannel'; + public const UNARCHIVE_CHANNEL = 'unarchiveChannel'; } diff --git a/src/Generated/Models/Teamwork.php b/src/Generated/Models/Teamwork.php index 6f372adbac1..0ff399c8fc1 100644 --- a/src/Generated/Models/Teamwork.php +++ b/src/Generated/Models/Teamwork.php @@ -82,7 +82,7 @@ public function getIsTeamsEnabled(): ?bool { } /** - * Gets the region property value. Represents the region of the organization. > The region property contains the organization's or the user's region. The property contains the user's region (if available) for users who have a valid multigeo license. For users without multigeo licenses, the region property contains the organization's region. + * Gets the region property value. Represents the region of the organization or the tenant. The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. * @return string|null */ public function getRegion(): ?string { @@ -158,7 +158,7 @@ public function setIsTeamsEnabled(?bool $value): void { } /** - * Sets the region property value. Represents the region of the organization. > The region property contains the organization's or the user's region. The property contains the user's region (if available) for users who have a valid multigeo license. For users without multigeo licenses, the region property contains the organization's region. + * Sets the region property value. Represents the region of the organization or the tenant. The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. * @param string|null $value Value to set for the region property. */ public function setRegion(?string $value): void { diff --git a/src/Generated/Models/TenantAppManagementPolicy.php b/src/Generated/Models/TenantAppManagementPolicy.php index 1b415830db6..44de3367e13 100644 --- a/src/Generated/Models/TenantAppManagementPolicy.php +++ b/src/Generated/Models/TenantAppManagementPolicy.php @@ -27,11 +27,11 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Tenan /** * Gets the applicationRestrictions property value. Restrictions that apply as default to all application objects in the tenant. - * @return AppManagementConfiguration|null + * @return AppManagementApplicationConfiguration|null */ - public function getApplicationRestrictions(): ?AppManagementConfiguration { + public function getApplicationRestrictions(): ?AppManagementApplicationConfiguration { $val = $this->getBackingStore()->get('applicationRestrictions'); - if (is_null($val) || $val instanceof AppManagementConfiguration) { + if (is_null($val) || $val instanceof AppManagementApplicationConfiguration) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'applicationRestrictions'"); @@ -44,9 +44,9 @@ public function getApplicationRestrictions(): ?AppManagementConfiguration { public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ - 'applicationRestrictions' => fn(ParseNode $n) => $o->setApplicationRestrictions($n->getObjectValue([AppManagementConfiguration::class, 'createFromDiscriminatorValue'])), + 'applicationRestrictions' => fn(ParseNode $n) => $o->setApplicationRestrictions($n->getObjectValue([AppManagementApplicationConfiguration::class, 'createFromDiscriminatorValue'])), 'isEnabled' => fn(ParseNode $n) => $o->setIsEnabled($n->getBooleanValue()), - 'servicePrincipalRestrictions' => fn(ParseNode $n) => $o->setServicePrincipalRestrictions($n->getObjectValue([AppManagementConfiguration::class, 'createFromDiscriminatorValue'])), + 'servicePrincipalRestrictions' => fn(ParseNode $n) => $o->setServicePrincipalRestrictions($n->getObjectValue([AppManagementServicePrincipalConfiguration::class, 'createFromDiscriminatorValue'])), ]); } @@ -64,11 +64,11 @@ public function getIsEnabled(): ?bool { /** * Gets the servicePrincipalRestrictions property value. Restrictions that apply as default to all service principal objects in the tenant. - * @return AppManagementConfiguration|null + * @return AppManagementServicePrincipalConfiguration|null */ - public function getServicePrincipalRestrictions(): ?AppManagementConfiguration { + public function getServicePrincipalRestrictions(): ?AppManagementServicePrincipalConfiguration { $val = $this->getBackingStore()->get('servicePrincipalRestrictions'); - if (is_null($val) || $val instanceof AppManagementConfiguration) { + if (is_null($val) || $val instanceof AppManagementServicePrincipalConfiguration) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'servicePrincipalRestrictions'"); @@ -87,9 +87,9 @@ public function serialize(SerializationWriter $writer): void { /** * Sets the applicationRestrictions property value. Restrictions that apply as default to all application objects in the tenant. - * @param AppManagementConfiguration|null $value Value to set for the applicationRestrictions property. + * @param AppManagementApplicationConfiguration|null $value Value to set for the applicationRestrictions property. */ - public function setApplicationRestrictions(?AppManagementConfiguration $value): void { + public function setApplicationRestrictions(?AppManagementApplicationConfiguration $value): void { $this->getBackingStore()->set('applicationRestrictions', $value); } @@ -103,9 +103,9 @@ public function setIsEnabled(?bool $value): void { /** * Sets the servicePrincipalRestrictions property value. Restrictions that apply as default to all service principal objects in the tenant. - * @param AppManagementConfiguration|null $value Value to set for the servicePrincipalRestrictions property. + * @param AppManagementServicePrincipalConfiguration|null $value Value to set for the servicePrincipalRestrictions property. */ - public function setServicePrincipalRestrictions(?AppManagementConfiguration $value): void { + public function setServicePrincipalRestrictions(?AppManagementServicePrincipalConfiguration $value): void { $this->getBackingStore()->set('servicePrincipalRestrictions', $value); } diff --git a/src/Generated/Models/UnifiedStorageQuota.php b/src/Generated/Models/UnifiedStorageQuota.php new file mode 100644 index 00000000000..296443e5fe6 --- /dev/null +++ b/src/Generated/Models/UnifiedStorageQuota.php @@ -0,0 +1,202 @@ +getBackingStore()->get('deleted'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'deleted'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'deleted' => fn(ParseNode $n) => $o->setDeleted($n->getIntegerValue()), + 'manageWebUrl' => fn(ParseNode $n) => $o->setManageWebUrl($n->getStringValue()), + 'remaining' => fn(ParseNode $n) => $o->setRemaining($n->getIntegerValue()), + 'services' => fn(ParseNode $n) => $o->setServices($n->getCollectionOfObjectValues([ServiceStorageQuotaBreakdown::class, 'createFromDiscriminatorValue'])), + 'state' => fn(ParseNode $n) => $o->setState($n->getStringValue()), + 'total' => fn(ParseNode $n) => $o->setTotal($n->getIntegerValue()), + 'used' => fn(ParseNode $n) => $o->setUsed($n->getIntegerValue()), + ]); + } + + /** + * Gets the manageWebUrl property value. The manageWebUrl property + * @return string|null + */ + public function getManageWebUrl(): ?string { + $val = $this->getBackingStore()->get('manageWebUrl'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'manageWebUrl'"); + } + + /** + * Gets the remaining property value. The remaining property + * @return int|null + */ + public function getRemaining(): ?int { + $val = $this->getBackingStore()->get('remaining'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'remaining'"); + } + + /** + * Gets the services property value. The services property + * @return array|null + */ + public function getServices(): ?array { + $val = $this->getBackingStore()->get('services'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ServiceStorageQuotaBreakdown::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'services'"); + } + + /** + * Gets the state property value. The state property + * @return string|null + */ + public function getState(): ?string { + $val = $this->getBackingStore()->get('state'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'state'"); + } + + /** + * Gets the total property value. The total property + * @return int|null + */ + public function getTotal(): ?int { + $val = $this->getBackingStore()->get('total'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'total'"); + } + + /** + * Gets the used property value. The used property + * @return int|null + */ + public function getUsed(): ?int { + $val = $this->getBackingStore()->get('used'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'used'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeIntegerValue('deleted', $this->getDeleted()); + $writer->writeStringValue('manageWebUrl', $this->getManageWebUrl()); + $writer->writeIntegerValue('remaining', $this->getRemaining()); + $writer->writeCollectionOfObjectValues('services', $this->getServices()); + $writer->writeStringValue('state', $this->getState()); + $writer->writeIntegerValue('total', $this->getTotal()); + $writer->writeIntegerValue('used', $this->getUsed()); + } + + /** + * Sets the deleted property value. The deleted property + * @param int|null $value Value to set for the deleted property. + */ + public function setDeleted(?int $value): void { + $this->getBackingStore()->set('deleted', $value); + } + + /** + * Sets the manageWebUrl property value. The manageWebUrl property + * @param string|null $value Value to set for the manageWebUrl property. + */ + public function setManageWebUrl(?string $value): void { + $this->getBackingStore()->set('manageWebUrl', $value); + } + + /** + * Sets the remaining property value. The remaining property + * @param int|null $value Value to set for the remaining property. + */ + public function setRemaining(?int $value): void { + $this->getBackingStore()->set('remaining', $value); + } + + /** + * Sets the services property value. The services property + * @param array|null $value Value to set for the services property. + */ + public function setServices(?array $value): void { + $this->getBackingStore()->set('services', $value); + } + + /** + * Sets the state property value. The state property + * @param string|null $value Value to set for the state property. + */ + public function setState(?string $value): void { + $this->getBackingStore()->set('state', $value); + } + + /** + * Sets the total property value. The total property + * @param int|null $value Value to set for the total property. + */ + public function setTotal(?int $value): void { + $this->getBackingStore()->set('total', $value); + } + + /** + * Sets the used property value. The used property + * @param int|null $value Value to set for the used property. + */ + public function setUsed(?int $value): void { + $this->getBackingStore()->set('used', $value); + } + +} diff --git a/src/Generated/Models/User.php b/src/Generated/Models/User.php index 531b0fb568a..2a9ae128c0f 100644 --- a/src/Generated/Models/User.php +++ b/src/Generated/Models/User.php @@ -701,7 +701,7 @@ public function getFieldDeserializers(): array { $this->setImAddresses($val); }, 'inferenceClassification' => fn(ParseNode $n) => $o->setInferenceClassification($n->getObjectValue([InferenceClassification::class, 'createFromDiscriminatorValue'])), - 'insights' => fn(ParseNode $n) => $o->setInsights($n->getObjectValue([OfficeGraphInsights::class, 'createFromDiscriminatorValue'])), + 'insights' => fn(ParseNode $n) => $o->setInsights($n->getObjectValue([ItemInsights::class, 'createFromDiscriminatorValue'])), 'interests' => function (ParseNode $n) { $val = $n->getCollectionOfPrimitiveValues(); if (is_array($val)) { @@ -907,11 +907,11 @@ public function getInferenceClassification(): ?InferenceClassification { /** * Gets the insights property value. The insights property - * @return OfficeGraphInsights|null + * @return ItemInsights|null */ - public function getInsights(): ?OfficeGraphInsights { + public function getInsights(): ?ItemInsights { $val = $this->getBackingStore()->get('insights'); - if (is_null($val) || $val instanceof OfficeGraphInsights) { + if (is_null($val) || $val instanceof ItemInsights) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'insights'"); @@ -2412,9 +2412,9 @@ public function setInferenceClassification(?InferenceClassification $value): voi /** * Sets the insights property value. The insights property - * @param OfficeGraphInsights|null $value Value to set for the insights property. + * @param ItemInsights|null $value Value to set for the insights property. */ - public function setInsights(?OfficeGraphInsights $value): void { + public function setInsights(?ItemInsights $value): void { $this->getBackingStore()->set('insights', $value); } diff --git a/src/Generated/Models/UserInsightsSettings.php b/src/Generated/Models/UserInsightsSettings.php new file mode 100644 index 00000000000..2ede5b4bb8a --- /dev/null +++ b/src/Generated/Models/UserInsightsSettings.php @@ -0,0 +1,67 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'isEnabled' => fn(ParseNode $n) => $o->setIsEnabled($n->getBooleanValue()), + ]); + } + + /** + * Gets the isEnabled property value. The isEnabled property + * @return bool|null + */ + public function getIsEnabled(): ?bool { + $val = $this->getBackingStore()->get('isEnabled'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isEnabled'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeBooleanValue('isEnabled', $this->getIsEnabled()); + } + + /** + * Sets the isEnabled property value. The isEnabled property + * @param bool|null $value Value to set for the isEnabled property. + */ + public function setIsEnabled(?bool $value): void { + $this->getBackingStore()->set('isEnabled', $value); + } + +} diff --git a/src/Generated/Models/UserRegistrationDetails.php b/src/Generated/Models/UserRegistrationDetails.php index d5bfeb2ecb1..5777c09f0c0 100644 --- a/src/Generated/Models/UserRegistrationDetails.php +++ b/src/Generated/Models/UserRegistrationDetails.php @@ -162,7 +162,7 @@ public function getIsSystemPreferredAuthenticationMethodEnabled(): ?bool { } /** - * Gets the lastUpdatedDateTime property value. The date and time (UTC) when the record was last updated. 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. + * Gets the lastUpdatedDateTime property value. The date and time (UTC) when the report was last updated. 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. * @return DateTime|null */ public function getLastUpdatedDateTime(): ?DateTime { @@ -337,7 +337,7 @@ public function setIsSystemPreferredAuthenticationMethodEnabled(?bool $value): v } /** - * Sets the lastUpdatedDateTime property value. The date and time (UTC) when the record was last updated. 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. + * Sets the lastUpdatedDateTime property value. The date and time (UTC) when the report was last updated. 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. * @param DateTime|null $value Value to set for the lastUpdatedDateTime property. */ public function setLastUpdatedDateTime(?DateTime $value): void { diff --git a/src/Generated/Models/UserSettings.php b/src/Generated/Models/UserSettings.php index 647bfc77f38..3a94d3795dd 100644 --- a/src/Generated/Models/UserSettings.php +++ b/src/Generated/Models/UserSettings.php @@ -58,11 +58,25 @@ public function getFieldDeserializers(): array { return array_merge(parent::getFieldDeserializers(), [ 'contributionToContentDiscoveryAsOrganizationDisabled' => fn(ParseNode $n) => $o->setContributionToContentDiscoveryAsOrganizationDisabled($n->getBooleanValue()), 'contributionToContentDiscoveryDisabled' => fn(ParseNode $n) => $o->setContributionToContentDiscoveryDisabled($n->getBooleanValue()), + 'itemInsights' => fn(ParseNode $n) => $o->setItemInsights($n->getObjectValue([UserInsightsSettings::class, 'createFromDiscriminatorValue'])), 'shiftPreferences' => fn(ParseNode $n) => $o->setShiftPreferences($n->getObjectValue([ShiftPreferences::class, 'createFromDiscriminatorValue'])), + 'storage' => fn(ParseNode $n) => $o->setStorage($n->getObjectValue([UserStorage::class, 'createFromDiscriminatorValue'])), 'windows' => fn(ParseNode $n) => $o->setWindows($n->getCollectionOfObjectValues([WindowsSetting::class, 'createFromDiscriminatorValue'])), ]); } + /** + * Gets the itemInsights property value. The itemInsights property + * @return UserInsightsSettings|null + */ + public function getItemInsights(): ?UserInsightsSettings { + $val = $this->getBackingStore()->get('itemInsights'); + if (is_null($val) || $val instanceof UserInsightsSettings) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'itemInsights'"); + } + /** * Gets the shiftPreferences property value. The shiftPreferences property * @return ShiftPreferences|null @@ -75,6 +89,18 @@ public function getShiftPreferences(): ?ShiftPreferences { throw new \UnexpectedValueException("Invalid type found in backing store for 'shiftPreferences'"); } + /** + * Gets the storage property value. The storage property + * @return UserStorage|null + */ + public function getStorage(): ?UserStorage { + $val = $this->getBackingStore()->get('storage'); + if (is_null($val) || $val instanceof UserStorage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'storage'"); + } + /** * Gets the windows property value. The windows property * @return array|null @@ -97,7 +123,9 @@ public function serialize(SerializationWriter $writer): void { parent::serialize($writer); $writer->writeBooleanValue('contributionToContentDiscoveryAsOrganizationDisabled', $this->getContributionToContentDiscoveryAsOrganizationDisabled()); $writer->writeBooleanValue('contributionToContentDiscoveryDisabled', $this->getContributionToContentDiscoveryDisabled()); + $writer->writeObjectValue('itemInsights', $this->getItemInsights()); $writer->writeObjectValue('shiftPreferences', $this->getShiftPreferences()); + $writer->writeObjectValue('storage', $this->getStorage()); $writer->writeCollectionOfObjectValues('windows', $this->getWindows()); } @@ -117,6 +145,14 @@ public function setContributionToContentDiscoveryDisabled(?bool $value): void { $this->getBackingStore()->set('contributionToContentDiscoveryDisabled', $value); } + /** + * Sets the itemInsights property value. The itemInsights property + * @param UserInsightsSettings|null $value Value to set for the itemInsights property. + */ + public function setItemInsights(?UserInsightsSettings $value): void { + $this->getBackingStore()->set('itemInsights', $value); + } + /** * Sets the shiftPreferences property value. The shiftPreferences property * @param ShiftPreferences|null $value Value to set for the shiftPreferences property. @@ -125,6 +161,14 @@ public function setShiftPreferences(?ShiftPreferences $value): void { $this->getBackingStore()->set('shiftPreferences', $value); } + /** + * Sets the storage property value. The storage property + * @param UserStorage|null $value Value to set for the storage property. + */ + public function setStorage(?UserStorage $value): void { + $this->getBackingStore()->set('storage', $value); + } + /** * Sets the windows property value. The windows property * @param array|null $value Value to set for the windows property. diff --git a/src/Generated/Models/UserStorage.php b/src/Generated/Models/UserStorage.php new file mode 100644 index 00000000000..f59558a2090 --- /dev/null +++ b/src/Generated/Models/UserStorage.php @@ -0,0 +1,67 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'quota' => fn(ParseNode $n) => $o->setQuota($n->getObjectValue([UnifiedStorageQuota::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the quota property value. The quota property + * @return UnifiedStorageQuota|null + */ + public function getQuota(): ?UnifiedStorageQuota { + $val = $this->getBackingStore()->get('quota'); + if (is_null($val) || $val instanceof UnifiedStorageQuota) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'quota'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeObjectValue('quota', $this->getQuota()); + } + + /** + * Sets the quota property value. The quota property + * @param UnifiedStorageQuota|null $value Value to set for the quota property. + */ + public function setQuota(?UnifiedStorageQuota $value): void { + $this->getBackingStore()->set('quota', $value); + } + +} diff --git a/src/Generated/Models/UserTeamwork.php b/src/Generated/Models/UserTeamwork.php index 833cf84e960..2edca6caeaf 100644 --- a/src/Generated/Models/UserTeamwork.php +++ b/src/Generated/Models/UserTeamwork.php @@ -68,7 +68,7 @@ public function getInstalledApps(): ?array { } /** - * Gets the locale property value. The chosen locale of a user in Microsoft Teams. + * Gets the locale property value. Represents the location that a user selected in Microsoft Teams and doesn't follow the Office's locale setting. A user’s locale is represented by their preferred language and country or region. For example, en-us. The language component follows two-letter codes as defined in ISO 639-1, and the country component follows two-letter codes as defined in ISO 3166-1 alpha-2. * @return string|null */ public function getLocale(): ?string { @@ -80,7 +80,7 @@ public function getLocale(): ?string { } /** - * Gets the region property value. The region of the user in Microsoft Teams. + * Gets the region property value. Represents the region of the organization or the user. For users with multigeo licenses, the property contains the user's region (if available). For users without multigeo licenses, the property contains the organization's region.The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. * @return string|null */ public function getRegion(): ?string { @@ -120,7 +120,7 @@ public function setInstalledApps(?array $value): void { } /** - * Sets the locale property value. The chosen locale of a user in Microsoft Teams. + * Sets the locale property value. Represents the location that a user selected in Microsoft Teams and doesn't follow the Office's locale setting. A user’s locale is represented by their preferred language and country or region. For example, en-us. The language component follows two-letter codes as defined in ISO 639-1, and the country component follows two-letter codes as defined in ISO 3166-1 alpha-2. * @param string|null $value Value to set for the locale property. */ public function setLocale(?string $value): void { @@ -128,7 +128,7 @@ public function setLocale(?string $value): void { } /** - * Sets the region property value. The region of the user in Microsoft Teams. + * Sets the region property value. Represents the region of the organization or the user. For users with multigeo licenses, the property contains the user's region (if available). For users without multigeo licenses, the property contains the organization's region.The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. * @param string|null $value Value to set for the region property. */ public function setRegion(?string $value): void { diff --git a/src/Generated/Models/VirtualEvent.php b/src/Generated/Models/VirtualEvent.php index fddd0d2d028..1d79fd6208d 100644 --- a/src/Generated/Models/VirtualEvent.php +++ b/src/Generated/Models/VirtualEvent.php @@ -26,6 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Virtu if ($mappingValueNode !== null) { $mappingValue = $mappingValueNode->getStringValue(); switch ($mappingValue) { + case '#microsoft.graph.virtualEventTownhall': return new VirtualEventTownhall(); case '#microsoft.graph.virtualEventWebinar': return new VirtualEventWebinar(); } } @@ -91,12 +92,27 @@ public function getFieldDeserializers(): array { 'description' => fn(ParseNode $n) => $o->setDescription($n->getObjectValue([ItemBody::class, 'createFromDiscriminatorValue'])), 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), 'endDateTime' => fn(ParseNode $n) => $o->setEndDateTime($n->getObjectValue([DateTimeTimeZone::class, 'createFromDiscriminatorValue'])), + 'presenters' => fn(ParseNode $n) => $o->setPresenters($n->getCollectionOfObjectValues([VirtualEventPresenter::class, 'createFromDiscriminatorValue'])), 'sessions' => fn(ParseNode $n) => $o->setSessions($n->getCollectionOfObjectValues([VirtualEventSession::class, 'createFromDiscriminatorValue'])), 'startDateTime' => fn(ParseNode $n) => $o->setStartDateTime($n->getObjectValue([DateTimeTimeZone::class, 'createFromDiscriminatorValue'])), 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(VirtualEventStatus::class)), ]); } + /** + * Gets the presenters property value. The presenters property + * @return array|null + */ + public function getPresenters(): ?array { + $val = $this->getBackingStore()->get('presenters'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, VirtualEventPresenter::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'presenters'"); + } + /** * Gets the sessions property value. Sessions for the virtual event. * @return array|null @@ -145,6 +161,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeObjectValue('description', $this->getDescription()); $writer->writeStringValue('displayName', $this->getDisplayName()); $writer->writeObjectValue('endDateTime', $this->getEndDateTime()); + $writer->writeCollectionOfObjectValues('presenters', $this->getPresenters()); $writer->writeCollectionOfObjectValues('sessions', $this->getSessions()); $writer->writeObjectValue('startDateTime', $this->getStartDateTime()); $writer->writeEnumValue('status', $this->getStatus()); @@ -182,6 +199,14 @@ public function setEndDateTime(?DateTimeTimeZone $value): void { $this->getBackingStore()->set('endDateTime', $value); } + /** + * Sets the presenters property value. The presenters property + * @param array|null $value Value to set for the presenters property. + */ + public function setPresenters(?array $value): void { + $this->getBackingStore()->set('presenters', $value); + } + /** * Sets the sessions property value. Sessions for the virtual event. * @param array|null $value Value to set for the sessions property. diff --git a/src/Generated/Models/VirtualEventPresenter.php b/src/Generated/Models/VirtualEventPresenter.php new file mode 100644 index 00000000000..45474fbc374 --- /dev/null +++ b/src/Generated/Models/VirtualEventPresenter.php @@ -0,0 +1,111 @@ +getBackingStore()->get('email'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'email'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'email' => fn(ParseNode $n) => $o->setEmail($n->getStringValue()), + 'identity' => fn(ParseNode $n) => $o->setIdentity($n->getObjectValue([Identity::class, 'createFromDiscriminatorValue'])), + 'presenterDetails' => fn(ParseNode $n) => $o->setPresenterDetails($n->getObjectValue([VirtualEventPresenterDetails::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the identity property value. The identity property + * @return Identity|null + */ + public function getIdentity(): ?Identity { + $val = $this->getBackingStore()->get('identity'); + if (is_null($val) || $val instanceof Identity) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'identity'"); + } + + /** + * Gets the presenterDetails property value. The presenterDetails property + * @return VirtualEventPresenterDetails|null + */ + public function getPresenterDetails(): ?VirtualEventPresenterDetails { + $val = $this->getBackingStore()->get('presenterDetails'); + if (is_null($val) || $val instanceof VirtualEventPresenterDetails) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'presenterDetails'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeStringValue('email', $this->getEmail()); + $writer->writeObjectValue('identity', $this->getIdentity()); + $writer->writeObjectValue('presenterDetails', $this->getPresenterDetails()); + } + + /** + * Sets the email property value. The email property + * @param string|null $value Value to set for the email property. + */ + public function setEmail(?string $value): void { + $this->getBackingStore()->set('email', $value); + } + + /** + * Sets the identity property value. The identity property + * @param Identity|null $value Value to set for the identity property. + */ + public function setIdentity(?Identity $value): void { + $this->getBackingStore()->set('identity', $value); + } + + /** + * Sets the presenterDetails property value. The presenterDetails property + * @param VirtualEventPresenterDetails|null $value Value to set for the presenterDetails property. + */ + public function setPresenterDetails(?VirtualEventPresenterDetails $value): void { + $this->getBackingStore()->set('presenterDetails', $value); + } + +} diff --git a/src/Generated/Models/VirtualEventPresenterCollectionResponse.php b/src/Generated/Models/VirtualEventPresenterCollectionResponse.php new file mode 100644 index 00000000000..72621cbf9e1 --- /dev/null +++ b/src/Generated/Models/VirtualEventPresenterCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([VirtualEventPresenter::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, VirtualEventPresenter::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/VirtualEventPresenterDetails.php b/src/Generated/Models/VirtualEventPresenterDetails.php new file mode 100644 index 00000000000..05fef0814cc --- /dev/null +++ b/src/Generated/Models/VirtualEventPresenterDetails.php @@ -0,0 +1,269 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return VirtualEventPresenterDetails + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): VirtualEventPresenterDetails { + return new VirtualEventPresenterDetails(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the bio property value. The bio property + * @return ItemBody|null + */ + public function getBio(): ?ItemBody { + $val = $this->getBackingStore()->get('bio'); + if (is_null($val) || $val instanceof ItemBody) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'bio'"); + } + + /** + * Gets the company property value. The company property + * @return string|null + */ + public function getCompany(): ?string { + $val = $this->getBackingStore()->get('company'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'company'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'bio' => fn(ParseNode $n) => $o->setBio($n->getObjectValue([ItemBody::class, 'createFromDiscriminatorValue'])), + 'company' => fn(ParseNode $n) => $o->setCompany($n->getStringValue()), + 'jobTitle' => fn(ParseNode $n) => $o->setJobTitle($n->getStringValue()), + 'linkedInProfileWebUrl' => fn(ParseNode $n) => $o->setLinkedInProfileWebUrl($n->getStringValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'personalSiteWebUrl' => fn(ParseNode $n) => $o->setPersonalSiteWebUrl($n->getStringValue()), + 'photo' => fn(ParseNode $n) => $o->setPhoto($n->getBinaryContent()), + 'twitterProfileWebUrl' => fn(ParseNode $n) => $o->setTwitterProfileWebUrl($n->getStringValue()), + ]; + } + + /** + * Gets the jobTitle property value. The jobTitle property + * @return string|null + */ + public function getJobTitle(): ?string { + $val = $this->getBackingStore()->get('jobTitle'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'jobTitle'"); + } + + /** + * Gets the linkedInProfileWebUrl property value. The linkedInProfileWebUrl property + * @return string|null + */ + public function getLinkedInProfileWebUrl(): ?string { + $val = $this->getBackingStore()->get('linkedInProfileWebUrl'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'linkedInProfileWebUrl'"); + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Gets the personalSiteWebUrl property value. The personalSiteWebUrl property + * @return string|null + */ + public function getPersonalSiteWebUrl(): ?string { + $val = $this->getBackingStore()->get('personalSiteWebUrl'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'personalSiteWebUrl'"); + } + + /** + * Gets the photo property value. The photo property + * @return StreamInterface|null + */ + public function getPhoto(): ?StreamInterface { + $val = $this->getBackingStore()->get('photo'); + if (is_null($val) || $val instanceof StreamInterface) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'photo'"); + } + + /** + * Gets the twitterProfileWebUrl property value. The twitterProfileWebUrl property + * @return string|null + */ + public function getTwitterProfileWebUrl(): ?string { + $val = $this->getBackingStore()->get('twitterProfileWebUrl'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'twitterProfileWebUrl'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('bio', $this->getBio()); + $writer->writeStringValue('company', $this->getCompany()); + $writer->writeStringValue('jobTitle', $this->getJobTitle()); + $writer->writeStringValue('linkedInProfileWebUrl', $this->getLinkedInProfileWebUrl()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeStringValue('personalSiteWebUrl', $this->getPersonalSiteWebUrl()); + $writer->writeBinaryContent('photo', $this->getPhoto()); + $writer->writeStringValue('twitterProfileWebUrl', $this->getTwitterProfileWebUrl()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the bio property value. The bio property + * @param ItemBody|null $value Value to set for the bio property. + */ + public function setBio(?ItemBody $value): void { + $this->getBackingStore()->set('bio', $value); + } + + /** + * Sets the company property value. The company property + * @param string|null $value Value to set for the company property. + */ + public function setCompany(?string $value): void { + $this->getBackingStore()->set('company', $value); + } + + /** + * Sets the jobTitle property value. The jobTitle property + * @param string|null $value Value to set for the jobTitle property. + */ + public function setJobTitle(?string $value): void { + $this->getBackingStore()->set('jobTitle', $value); + } + + /** + * Sets the linkedInProfileWebUrl property value. The linkedInProfileWebUrl property + * @param string|null $value Value to set for the linkedInProfileWebUrl property. + */ + public function setLinkedInProfileWebUrl(?string $value): void { + $this->getBackingStore()->set('linkedInProfileWebUrl', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the personalSiteWebUrl property value. The personalSiteWebUrl property + * @param string|null $value Value to set for the personalSiteWebUrl property. + */ + public function setPersonalSiteWebUrl(?string $value): void { + $this->getBackingStore()->set('personalSiteWebUrl', $value); + } + + /** + * Sets the photo property value. The photo property + * @param StreamInterface|null $value Value to set for the photo property. + */ + public function setPhoto(?StreamInterface $value): void { + $this->getBackingStore()->set('photo', $value); + } + + /** + * Sets the twitterProfileWebUrl property value. The twitterProfileWebUrl property + * @param string|null $value Value to set for the twitterProfileWebUrl property. + */ + public function setTwitterProfileWebUrl(?string $value): void { + $this->getBackingStore()->set('twitterProfileWebUrl', $value); + } + +} diff --git a/src/Generated/Models/VirtualEventPresenterInfo.php b/src/Generated/Models/VirtualEventPresenterInfo.php new file mode 100644 index 00000000000..3f0dbe9bc9b --- /dev/null +++ b/src/Generated/Models/VirtualEventPresenterInfo.php @@ -0,0 +1,68 @@ +setOdataType('#microsoft.graph.virtualEventPresenterInfo'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return VirtualEventPresenterInfo + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): VirtualEventPresenterInfo { + return new VirtualEventPresenterInfo(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'presenterDetails' => fn(ParseNode $n) => $o->setPresenterDetails($n->getObjectValue([VirtualEventPresenterDetails::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the presenterDetails property value. The presenterDetails property + * @return VirtualEventPresenterDetails|null + */ + public function getPresenterDetails(): ?VirtualEventPresenterDetails { + $val = $this->getBackingStore()->get('presenterDetails'); + if (is_null($val) || $val instanceof VirtualEventPresenterDetails) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'presenterDetails'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeObjectValue('presenterDetails', $this->getPresenterDetails()); + } + + /** + * Sets the presenterDetails property value. The presenterDetails property + * @param VirtualEventPresenterDetails|null $value Value to set for the presenterDetails property. + */ + public function setPresenterDetails(?VirtualEventPresenterDetails $value): void { + $this->getBackingStore()->set('presenterDetails', $value); + } + +} diff --git a/src/Generated/Models/VirtualEventRegistration.php b/src/Generated/Models/VirtualEventRegistration.php index 4485745a843..34e0057fe3b 100644 --- a/src/Generated/Models/VirtualEventRegistration.php +++ b/src/Generated/Models/VirtualEventRegistration.php @@ -61,8 +61,11 @@ public function getFieldDeserializers(): array { 'email' => fn(ParseNode $n) => $o->setEmail($n->getStringValue()), 'firstName' => fn(ParseNode $n) => $o->setFirstName($n->getStringValue()), 'lastName' => fn(ParseNode $n) => $o->setLastName($n->getStringValue()), + 'preferredLanguage' => fn(ParseNode $n) => $o->setPreferredLanguage($n->getStringValue()), + 'preferredTimezone' => fn(ParseNode $n) => $o->setPreferredTimezone($n->getStringValue()), 'registrationDateTime' => fn(ParseNode $n) => $o->setRegistrationDateTime($n->getDateTimeValue()), 'registrationQuestionAnswers' => fn(ParseNode $n) => $o->setRegistrationQuestionAnswers($n->getCollectionOfObjectValues([VirtualEventRegistrationQuestionAnswer::class, 'createFromDiscriminatorValue'])), + 'sessions' => fn(ParseNode $n) => $o->setSessions($n->getCollectionOfObjectValues([VirtualEventSession::class, 'createFromDiscriminatorValue'])), 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(VirtualEventAttendeeRegistrationStatus::class)), 'userId' => fn(ParseNode $n) => $o->setUserId($n->getStringValue()), ]); @@ -92,6 +95,30 @@ public function getLastName(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'lastName'"); } + /** + * Gets the preferredLanguage property value. The preferredLanguage property + * @return string|null + */ + public function getPreferredLanguage(): ?string { + $val = $this->getBackingStore()->get('preferredLanguage'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'preferredLanguage'"); + } + + /** + * Gets the preferredTimezone property value. The preferredTimezone property + * @return string|null + */ + public function getPreferredTimezone(): ?string { + $val = $this->getBackingStore()->get('preferredTimezone'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'preferredTimezone'"); + } + /** * Gets the registrationDateTime property value. Date and time when the registrant registers for the virtual event. 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. * @return DateTime|null @@ -118,6 +145,20 @@ public function getRegistrationQuestionAnswers(): ?array { throw new \UnexpectedValueException("Invalid type found in backing store for 'registrationQuestionAnswers'"); } + /** + * Gets the sessions property value. The sessions property + * @return array|null + */ + public function getSessions(): ?array { + $val = $this->getBackingStore()->get('sessions'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, VirtualEventSession::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'sessions'"); + } + /** * Gets the status property value. Registration status of the registrant. Read-only. * @return VirtualEventAttendeeRegistrationStatus|null @@ -152,8 +193,11 @@ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('email', $this->getEmail()); $writer->writeStringValue('firstName', $this->getFirstName()); $writer->writeStringValue('lastName', $this->getLastName()); + $writer->writeStringValue('preferredLanguage', $this->getPreferredLanguage()); + $writer->writeStringValue('preferredTimezone', $this->getPreferredTimezone()); $writer->writeDateTimeValue('registrationDateTime', $this->getRegistrationDateTime()); $writer->writeCollectionOfObjectValues('registrationQuestionAnswers', $this->getRegistrationQuestionAnswers()); + $writer->writeCollectionOfObjectValues('sessions', $this->getSessions()); $writer->writeEnumValue('status', $this->getStatus()); $writer->writeStringValue('userId', $this->getUserId()); } @@ -190,6 +234,22 @@ public function setLastName(?string $value): void { $this->getBackingStore()->set('lastName', $value); } + /** + * Sets the preferredLanguage property value. The preferredLanguage property + * @param string|null $value Value to set for the preferredLanguage property. + */ + public function setPreferredLanguage(?string $value): void { + $this->getBackingStore()->set('preferredLanguage', $value); + } + + /** + * Sets the preferredTimezone property value. The preferredTimezone property + * @param string|null $value Value to set for the preferredTimezone property. + */ + public function setPreferredTimezone(?string $value): void { + $this->getBackingStore()->set('preferredTimezone', $value); + } + /** * Sets the registrationDateTime property value. Date and time when the registrant registers for the virtual event. 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. * @param DateTime|null $value Value to set for the registrationDateTime property. @@ -206,6 +266,14 @@ public function setRegistrationQuestionAnswers(?array $value): void { $this->getBackingStore()->set('registrationQuestionAnswers', $value); } + /** + * Sets the sessions property value. The sessions property + * @param array|null $value Value to set for the sessions property. + */ + public function setSessions(?array $value): void { + $this->getBackingStore()->set('sessions', $value); + } + /** * Sets the status property value. Registration status of the registrant. Read-only. * @param VirtualEventAttendeeRegistrationStatus|null $value Value to set for the status property. diff --git a/src/Generated/Models/VirtualEventRegistrationConfiguration.php b/src/Generated/Models/VirtualEventRegistrationConfiguration.php new file mode 100644 index 00000000000..d74def61503 --- /dev/null +++ b/src/Generated/Models/VirtualEventRegistrationConfiguration.php @@ -0,0 +1,121 @@ +getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.virtualEventWebinarRegistrationConfiguration': return new VirtualEventWebinarRegistrationConfiguration(); + } + } + return new VirtualEventRegistrationConfiguration(); + } + + /** + * Gets the capacity property value. The capacity property + * @return int|null + */ + public function getCapacity(): ?int { + $val = $this->getBackingStore()->get('capacity'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'capacity'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'capacity' => fn(ParseNode $n) => $o->setCapacity($n->getIntegerValue()), + 'questions' => fn(ParseNode $n) => $o->setQuestions($n->getCollectionOfObjectValues([VirtualEventRegistrationQuestionBase::class, 'createFromDiscriminatorValue'])), + 'registrationWebUrl' => fn(ParseNode $n) => $o->setRegistrationWebUrl($n->getStringValue()), + ]); + } + + /** + * Gets the questions property value. The questions property + * @return array|null + */ + public function getQuestions(): ?array { + $val = $this->getBackingStore()->get('questions'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, VirtualEventRegistrationQuestionBase::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'questions'"); + } + + /** + * Gets the registrationWebUrl property value. The registrationWebUrl property + * @return string|null + */ + public function getRegistrationWebUrl(): ?string { + $val = $this->getBackingStore()->get('registrationWebUrl'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'registrationWebUrl'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeIntegerValue('capacity', $this->getCapacity()); + $writer->writeCollectionOfObjectValues('questions', $this->getQuestions()); + $writer->writeStringValue('registrationWebUrl', $this->getRegistrationWebUrl()); + } + + /** + * Sets the capacity property value. The capacity property + * @param int|null $value Value to set for the capacity property. + */ + public function setCapacity(?int $value): void { + $this->getBackingStore()->set('capacity', $value); + } + + /** + * Sets the questions property value. The questions property + * @param array|null $value Value to set for the questions property. + */ + public function setQuestions(?array $value): void { + $this->getBackingStore()->set('questions', $value); + } + + /** + * Sets the registrationWebUrl property value. The registrationWebUrl property + * @param string|null $value Value to set for the registrationWebUrl property. + */ + public function setRegistrationWebUrl(?string $value): void { + $this->getBackingStore()->set('registrationWebUrl', $value); + } + +} diff --git a/src/Generated/Models/VirtualEventRegistrationCustomQuestion.php b/src/Generated/Models/VirtualEventRegistrationCustomQuestion.php new file mode 100644 index 00000000000..8a103ed0f24 --- /dev/null +++ b/src/Generated/Models/VirtualEventRegistrationCustomQuestion.php @@ -0,0 +1,100 @@ +setOdataType('#microsoft.graph.virtualEventRegistrationCustomQuestion'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return VirtualEventRegistrationCustomQuestion + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): VirtualEventRegistrationCustomQuestion { + return new VirtualEventRegistrationCustomQuestion(); + } + + /** + * Gets the answerChoices property value. The answerChoices property + * @return array|null + */ + public function getAnswerChoices(): ?array { + $val = $this->getBackingStore()->get('answerChoices'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'answerChoices'"); + } + + /** + * Gets the answerInputType property value. The answerInputType property + * @return VirtualEventRegistrationQuestionAnswerInputType|null + */ + public function getAnswerInputType(): ?VirtualEventRegistrationQuestionAnswerInputType { + $val = $this->getBackingStore()->get('answerInputType'); + if (is_null($val) || $val instanceof VirtualEventRegistrationQuestionAnswerInputType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'answerInputType'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'answerChoices' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setAnswerChoices($val); + }, + 'answerInputType' => fn(ParseNode $n) => $o->setAnswerInputType($n->getEnumValue(VirtualEventRegistrationQuestionAnswerInputType::class)), + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfPrimitiveValues('answerChoices', $this->getAnswerChoices()); + $writer->writeEnumValue('answerInputType', $this->getAnswerInputType()); + } + + /** + * Sets the answerChoices property value. The answerChoices property + * @param array|null $value Value to set for the answerChoices property. + */ + public function setAnswerChoices(?array $value): void { + $this->getBackingStore()->set('answerChoices', $value); + } + + /** + * Sets the answerInputType property value. The answerInputType property + * @param VirtualEventRegistrationQuestionAnswerInputType|null $value Value to set for the answerInputType property. + */ + public function setAnswerInputType(?VirtualEventRegistrationQuestionAnswerInputType $value): void { + $this->getBackingStore()->set('answerInputType', $value); + } + +} diff --git a/src/Generated/Models/VirtualEventRegistrationPredefinedQuestion.php b/src/Generated/Models/VirtualEventRegistrationPredefinedQuestion.php new file mode 100644 index 00000000000..0ed847738a2 --- /dev/null +++ b/src/Generated/Models/VirtualEventRegistrationPredefinedQuestion.php @@ -0,0 +1,68 @@ +setOdataType('#microsoft.graph.virtualEventRegistrationPredefinedQuestion'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return VirtualEventRegistrationPredefinedQuestion + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): VirtualEventRegistrationPredefinedQuestion { + return new VirtualEventRegistrationPredefinedQuestion(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'label' => fn(ParseNode $n) => $o->setLabel($n->getEnumValue(VirtualEventRegistrationPredefinedQuestionLabel::class)), + ]); + } + + /** + * Gets the label property value. The label property + * @return VirtualEventRegistrationPredefinedQuestionLabel|null + */ + public function getLabel(): ?VirtualEventRegistrationPredefinedQuestionLabel { + $val = $this->getBackingStore()->get('label'); + if (is_null($val) || $val instanceof VirtualEventRegistrationPredefinedQuestionLabel) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'label'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeEnumValue('label', $this->getLabel()); + } + + /** + * Sets the label property value. The label property + * @param VirtualEventRegistrationPredefinedQuestionLabel|null $value Value to set for the label property. + */ + public function setLabel(?VirtualEventRegistrationPredefinedQuestionLabel $value): void { + $this->getBackingStore()->set('label', $value); + } + +} diff --git a/src/Generated/Models/VirtualEventRegistrationPredefinedQuestionLabel.php b/src/Generated/Models/VirtualEventRegistrationPredefinedQuestionLabel.php new file mode 100644 index 00000000000..f4022611a4a --- /dev/null +++ b/src/Generated/Models/VirtualEventRegistrationPredefinedQuestionLabel.php @@ -0,0 +1,17 @@ +getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.virtualEventRegistrationCustomQuestion': return new VirtualEventRegistrationCustomQuestion(); + case '#microsoft.graph.virtualEventRegistrationPredefinedQuestion': return new VirtualEventRegistrationPredefinedQuestion(); + } + } + return new VirtualEventRegistrationQuestionBase(); + } + + /** + * Gets the displayName property value. The displayName property + * @return string|null + */ + public function getDisplayName(): ?string { + $val = $this->getBackingStore()->get('displayName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'displayName'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + 'isRequired' => fn(ParseNode $n) => $o->setIsRequired($n->getBooleanValue()), + ]); + } + + /** + * Gets the isRequired property value. The isRequired property + * @return bool|null + */ + public function getIsRequired(): ?bool { + $val = $this->getBackingStore()->get('isRequired'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isRequired'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeStringValue('displayName', $this->getDisplayName()); + $writer->writeBooleanValue('isRequired', $this->getIsRequired()); + } + + /** + * Sets the displayName property value. The displayName property + * @param string|null $value Value to set for the displayName property. + */ + public function setDisplayName(?string $value): void { + $this->getBackingStore()->set('displayName', $value); + } + + /** + * Sets the isRequired property value. The isRequired property + * @param bool|null $value Value to set for the isRequired property. + */ + public function setIsRequired(?bool $value): void { + $this->getBackingStore()->set('isRequired', $value); + } + +} diff --git a/src/Generated/Models/VirtualEventRegistrationQuestionBaseCollectionResponse.php b/src/Generated/Models/VirtualEventRegistrationQuestionBaseCollectionResponse.php new file mode 100644 index 00000000000..208dd62fe10 --- /dev/null +++ b/src/Generated/Models/VirtualEventRegistrationQuestionBaseCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([VirtualEventRegistrationQuestionBase::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, VirtualEventRegistrationQuestionBase::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/VirtualEventTownhall.php b/src/Generated/Models/VirtualEventTownhall.php new file mode 100644 index 00000000000..28e914d0f7f --- /dev/null +++ b/src/Generated/Models/VirtualEventTownhall.php @@ -0,0 +1,139 @@ +setOdataType('#microsoft.graph.virtualEventTownhall'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return VirtualEventTownhall + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): VirtualEventTownhall { + return new VirtualEventTownhall(); + } + + /** + * Gets the audience property value. The audience property + * @return MeetingAudience|null + */ + public function getAudience(): ?MeetingAudience { + $val = $this->getBackingStore()->get('audience'); + if (is_null($val) || $val instanceof MeetingAudience) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'audience'"); + } + + /** + * Gets the coOrganizers property value. The coOrganizers property + * @return array|null + */ + public function getCoOrganizers(): ?array { + $val = $this->getBackingStore()->get('coOrganizers'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, CommunicationsUserIdentity::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'coOrganizers'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'audience' => fn(ParseNode $n) => $o->setAudience($n->getEnumValue(MeetingAudience::class)), + 'coOrganizers' => fn(ParseNode $n) => $o->setCoOrganizers($n->getCollectionOfObjectValues([CommunicationsUserIdentity::class, 'createFromDiscriminatorValue'])), + 'invitedAttendees' => fn(ParseNode $n) => $o->setInvitedAttendees($n->getCollectionOfObjectValues([Identity::class, 'createFromDiscriminatorValue'])), + 'isInviteOnly' => fn(ParseNode $n) => $o->setIsInviteOnly($n->getBooleanValue()), + ]); + } + + /** + * Gets the invitedAttendees property value. The invitedAttendees property + * @return array|null + */ + public function getInvitedAttendees(): ?array { + $val = $this->getBackingStore()->get('invitedAttendees'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, Identity::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'invitedAttendees'"); + } + + /** + * Gets the isInviteOnly property value. The isInviteOnly property + * @return bool|null + */ + public function getIsInviteOnly(): ?bool { + $val = $this->getBackingStore()->get('isInviteOnly'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isInviteOnly'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeEnumValue('audience', $this->getAudience()); + $writer->writeCollectionOfObjectValues('coOrganizers', $this->getCoOrganizers()); + $writer->writeCollectionOfObjectValues('invitedAttendees', $this->getInvitedAttendees()); + $writer->writeBooleanValue('isInviteOnly', $this->getIsInviteOnly()); + } + + /** + * Sets the audience property value. The audience property + * @param MeetingAudience|null $value Value to set for the audience property. + */ + public function setAudience(?MeetingAudience $value): void { + $this->getBackingStore()->set('audience', $value); + } + + /** + * Sets the coOrganizers property value. The coOrganizers property + * @param array|null $value Value to set for the coOrganizers property. + */ + public function setCoOrganizers(?array $value): void { + $this->getBackingStore()->set('coOrganizers', $value); + } + + /** + * Sets the invitedAttendees property value. The invitedAttendees property + * @param array|null $value Value to set for the invitedAttendees property. + */ + public function setInvitedAttendees(?array $value): void { + $this->getBackingStore()->set('invitedAttendees', $value); + } + + /** + * Sets the isInviteOnly property value. The isInviteOnly property + * @param bool|null $value Value to set for the isInviteOnly property. + */ + public function setIsInviteOnly(?bool $value): void { + $this->getBackingStore()->set('isInviteOnly', $value); + } + +} diff --git a/src/Generated/Models/VirtualEventTownhallCollectionResponse.php b/src/Generated/Models/VirtualEventTownhallCollectionResponse.php new file mode 100644 index 00000000000..08247719f2c --- /dev/null +++ b/src/Generated/Models/VirtualEventTownhallCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([VirtualEventTownhall::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, VirtualEventTownhall::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/VirtualEventWebinar.php b/src/Generated/Models/VirtualEventWebinar.php index 97165be58f8..b60aadb4e3a 100644 --- a/src/Generated/Models/VirtualEventWebinar.php +++ b/src/Generated/Models/VirtualEventWebinar.php @@ -14,6 +14,7 @@ class VirtualEventWebinar extends VirtualEvent implements Parsable */ public function __construct() { parent::__construct(); + $this->setOdataType('#microsoft.graph.virtualEventWebinar'); } /** @@ -60,10 +61,23 @@ public function getFieldDeserializers(): array { return array_merge(parent::getFieldDeserializers(), [ 'audience' => fn(ParseNode $n) => $o->setAudience($n->getEnumValue(MeetingAudience::class)), 'coOrganizers' => fn(ParseNode $n) => $o->setCoOrganizers($n->getCollectionOfObjectValues([CommunicationsUserIdentity::class, 'createFromDiscriminatorValue'])), + 'registrationConfiguration' => fn(ParseNode $n) => $o->setRegistrationConfiguration($n->getObjectValue([VirtualEventWebinarRegistrationConfiguration::class, 'createFromDiscriminatorValue'])), 'registrations' => fn(ParseNode $n) => $o->setRegistrations($n->getCollectionOfObjectValues([VirtualEventRegistration::class, 'createFromDiscriminatorValue'])), ]); } + /** + * Gets the registrationConfiguration property value. The registrationConfiguration property + * @return VirtualEventWebinarRegistrationConfiguration|null + */ + public function getRegistrationConfiguration(): ?VirtualEventWebinarRegistrationConfiguration { + $val = $this->getBackingStore()->get('registrationConfiguration'); + if (is_null($val) || $val instanceof VirtualEventWebinarRegistrationConfiguration) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'registrationConfiguration'"); + } + /** * Gets the registrations property value. Registration records of the webinar. * @return array|null @@ -86,6 +100,7 @@ public function serialize(SerializationWriter $writer): void { parent::serialize($writer); $writer->writeEnumValue('audience', $this->getAudience()); $writer->writeCollectionOfObjectValues('coOrganizers', $this->getCoOrganizers()); + $writer->writeObjectValue('registrationConfiguration', $this->getRegistrationConfiguration()); $writer->writeCollectionOfObjectValues('registrations', $this->getRegistrations()); } @@ -105,6 +120,14 @@ public function setCoOrganizers(?array $value): void { $this->getBackingStore()->set('coOrganizers', $value); } + /** + * Sets the registrationConfiguration property value. The registrationConfiguration property + * @param VirtualEventWebinarRegistrationConfiguration|null $value Value to set for the registrationConfiguration property. + */ + public function setRegistrationConfiguration(?VirtualEventWebinarRegistrationConfiguration $value): void { + $this->getBackingStore()->set('registrationConfiguration', $value); + } + /** * Sets the registrations property value. Registration records of the webinar. * @param array|null $value Value to set for the registrations property. diff --git a/src/Generated/Models/VirtualEventWebinarRegistrationConfiguration.php b/src/Generated/Models/VirtualEventWebinarRegistrationConfiguration.php new file mode 100644 index 00000000000..7fcdba10495 --- /dev/null +++ b/src/Generated/Models/VirtualEventWebinarRegistrationConfiguration.php @@ -0,0 +1,89 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'isManualApprovalEnabled' => fn(ParseNode $n) => $o->setIsManualApprovalEnabled($n->getBooleanValue()), + 'isWaitlistEnabled' => fn(ParseNode $n) => $o->setIsWaitlistEnabled($n->getBooleanValue()), + ]); + } + + /** + * Gets the isManualApprovalEnabled property value. The isManualApprovalEnabled property + * @return bool|null + */ + public function getIsManualApprovalEnabled(): ?bool { + $val = $this->getBackingStore()->get('isManualApprovalEnabled'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isManualApprovalEnabled'"); + } + + /** + * Gets the isWaitlistEnabled property value. The isWaitlistEnabled property + * @return bool|null + */ + public function getIsWaitlistEnabled(): ?bool { + $val = $this->getBackingStore()->get('isWaitlistEnabled'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isWaitlistEnabled'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeBooleanValue('isManualApprovalEnabled', $this->getIsManualApprovalEnabled()); + $writer->writeBooleanValue('isWaitlistEnabled', $this->getIsWaitlistEnabled()); + } + + /** + * Sets the isManualApprovalEnabled property value. The isManualApprovalEnabled property + * @param bool|null $value Value to set for the isManualApprovalEnabled property. + */ + public function setIsManualApprovalEnabled(?bool $value): void { + $this->getBackingStore()->set('isManualApprovalEnabled', $value); + } + + /** + * Sets the isWaitlistEnabled property value. The isWaitlistEnabled property + * @param bool|null $value Value to set for the isWaitlistEnabled property. + */ + public function setIsWaitlistEnabled(?bool $value): void { + $this->getBackingStore()->set('isWaitlistEnabled', $value); + } + +} diff --git a/src/Generated/Models/VirtualEventsRoot.php b/src/Generated/Models/VirtualEventsRoot.php index e09e6c6bbcc..f42a9c06029 100644 --- a/src/Generated/Models/VirtualEventsRoot.php +++ b/src/Generated/Models/VirtualEventsRoot.php @@ -47,10 +47,25 @@ public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ 'events' => fn(ParseNode $n) => $o->setEvents($n->getCollectionOfObjectValues([VirtualEvent::class, 'createFromDiscriminatorValue'])), + 'townhalls' => fn(ParseNode $n) => $o->setTownhalls($n->getCollectionOfObjectValues([VirtualEventTownhall::class, 'createFromDiscriminatorValue'])), 'webinars' => fn(ParseNode $n) => $o->setWebinars($n->getCollectionOfObjectValues([VirtualEventWebinar::class, 'createFromDiscriminatorValue'])), ]); } + /** + * Gets the townhalls property value. The townhalls property + * @return array|null + */ + public function getTownhalls(): ?array { + $val = $this->getBackingStore()->get('townhalls'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, VirtualEventTownhall::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'townhalls'"); + } + /** * Gets the webinars property value. The webinars property * @return array|null @@ -72,6 +87,7 @@ public function getWebinars(): ?array { public function serialize(SerializationWriter $writer): void { parent::serialize($writer); $writer->writeCollectionOfObjectValues('events', $this->getEvents()); + $writer->writeCollectionOfObjectValues('townhalls', $this->getTownhalls()); $writer->writeCollectionOfObjectValues('webinars', $this->getWebinars()); } @@ -83,6 +99,14 @@ public function setEvents(?array $value): void { $this->getBackingStore()->set('events', $value); } + /** + * Sets the townhalls property value. The townhalls property + * @param array|null $value Value to set for the townhalls property. + */ + public function setTownhalls(?array $value): void { + $this->getBackingStore()->set('townhalls', $value); + } + /** * Sets the webinars property value. The webinars property * @param array|null $value Value to set for the webinars property. diff --git a/src/Generated/Models/WorkbookRange.php b/src/Generated/Models/WorkbookRange.php index 40c79c28d50..46d0e19773a 100644 --- a/src/Generated/Models/WorkbookRange.php +++ b/src/Generated/Models/WorkbookRange.php @@ -73,7 +73,7 @@ public function getColumnCount(): ?int { } /** - * Gets the columnHidden property value. Represents if all columns of the current range are hidden. + * Gets the columnHidden property value. Indicates whether all columns of the current range are hidden. * @return bool|null */ public function getColumnHidden(): ?bool { @@ -156,7 +156,7 @@ public function getRowCount(): ?int { } /** - * Gets the rowHidden property value. Represents if all rows of the current range are hidden. + * Gets the rowHidden property value. Indicates whether all rows of the current range are hidden. * @return bool|null */ public function getRowHidden(): ?bool { @@ -257,7 +257,7 @@ public function setColumnCount(?int $value): void { } /** - * Sets the columnHidden property value. Represents if all columns of the current range are hidden. + * Sets the columnHidden property value. Indicates whether all columns of the current range are hidden. * @param bool|null $value Value to set for the columnHidden property. */ public function setColumnHidden(?bool $value): void { @@ -297,7 +297,7 @@ public function setRowCount(?int $value): void { } /** - * Sets the rowHidden property value. Represents if all rows of the current range are hidden. + * Sets the rowHidden property value. Indicates whether all rows of the current range are hidden. * @param bool|null $value Value to set for the rowHidden property. */ public function setRowHidden(?bool $value): void { diff --git a/src/Generated/Models/X509CertificateCombinationConfiguration.php b/src/Generated/Models/X509CertificateCombinationConfiguration.php index 160c9882d1d..3764ca90365 100644 --- a/src/Generated/Models/X509CertificateCombinationConfiguration.php +++ b/src/Generated/Models/X509CertificateCombinationConfiguration.php @@ -27,7 +27,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): X509C } /** - * Gets the allowedIssuerSkis property value. The allowedIssuerSkis property + * Gets the allowedIssuerSkis property value. A list of allowed subject key identifier values. * @return array|null */ public function getAllowedIssuerSkis(): ?array { @@ -41,7 +41,7 @@ public function getAllowedIssuerSkis(): ?array { } /** - * Gets the allowedPolicyOIDs property value. The allowedPolicyOIDs property + * Gets the allowedPolicyOIDs property value. A list of allowed policy OIDs. * @return array|null */ public function getAllowedPolicyOIDs(): ?array { @@ -91,7 +91,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the allowedIssuerSkis property value. The allowedIssuerSkis property + * Sets the allowedIssuerSkis property value. A list of allowed subject key identifier values. * @param array|null $value Value to set for the allowedIssuerSkis property. */ public function setAllowedIssuerSkis(?array $value): void { @@ -99,7 +99,7 @@ public function setAllowedIssuerSkis(?array $value): void { } /** - * Sets the allowedPolicyOIDs property value. The allowedPolicyOIDs property + * Sets the allowedPolicyOIDs property value. A list of allowed policy OIDs. * @param array|null $value Value to set for the allowedPolicyOIDs property. */ public function setAllowedPolicyOIDs(?array $value): void { diff --git a/src/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 92f9fc09361..3e252688410 100644 --- a/src/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Organization/Item/OrganizationItemRequestBuilder.php b/src/Generated/Organization/Item/OrganizationItemRequestBuilder.php index 7b3508bdb1f..739ed13cbf9 100644 --- a/src/Generated/Organization/Item/OrganizationItemRequestBuilder.php +++ b/src/Generated/Organization/Item/OrganizationItemRequestBuilder.php @@ -117,11 +117,11 @@ public function delete(?OrganizationItemRequestBuilderDeleteRequestConfiguration } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @param OrganizationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/organization-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-organization-get?view=graph-rest-1.0 Find more info here */ public function get(?OrganizationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -132,12 +132,12 @@ public function get(?OrganizationItemRequestBuilderGetRequestConfiguration $requ } /** - * Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. + * Update the properties of a organization object. * @param Organization $body The request body * @param OrganizationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/organization-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-organization-update?view=graph-rest-1.0 Find more info here */ public function patch(Organization $body, ?OrganizationItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -166,7 +166,7 @@ public function toDeleteRequestInformation(?OrganizationItemRequestBuilderDelete } /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @param OrganizationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -187,7 +187,7 @@ public function toGetRequestInformation(?OrganizationItemRequestBuilderGetReques } /** - * Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. + * Update the properties of a organization object. * @param Organization $body The request body * @param OrganizationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Organization/Item/OrganizationItemRequestBuilderGetQueryParameters.php b/src/Generated/Organization/Item/OrganizationItemRequestBuilderGetQueryParameters.php index 4f144e8136a..8c22067b457 100644 --- a/src/Generated/Organization/Item/OrganizationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Organization/Item/OrganizationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. */ class OrganizationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Organization/OrganizationRequestBuilder.php b/src/Generated/Organization/OrganizationRequestBuilder.php index ac128723db2..219b772dec8 100644 --- a/src/Generated/Organization/OrganizationRequestBuilder.php +++ b/src/Generated/Organization/OrganizationRequestBuilder.php @@ -84,11 +84,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. * @param OrganizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/organization-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-organization-list?view=graph-rest-1.0 Find more info here */ public function get(?OrganizationRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -114,7 +114,7 @@ public function post(Organization $body, ?OrganizationRequestBuilderPostRequestC } /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. * @param OrganizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Organization/OrganizationRequestBuilderGetQueryParameters.php b/src/Generated/Organization/OrganizationRequestBuilderGetQueryParameters.php index 10597c442ed..dbe1dd5d054 100644 --- a/src/Generated/Organization/OrganizationRequestBuilderGetQueryParameters.php +++ b/src/Generated/Organization/OrganizationRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. */ class OrganizationRequestBuilderGetQueryParameters { diff --git a/src/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 5924bf9390e..9b31feb8665 100644 --- a/src/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.php index e22ace1461f..9b13c3d9acc 100644 --- a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The hosts related with this sslCertificate. + * The host resources related with this sslCertificate. * @param HostItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -45,7 +45,7 @@ public function get(?HostItemRequestBuilderGetRequestConfiguration $requestConfi } /** - * The hosts related with this sslCertificate. + * The host resources related with this sslCertificate. * @param HostItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilderGetQueryParameters.php b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilderGetQueryParameters.php index 07c4eb62cb9..38dc025cec3 100644 --- a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The hosts related with this sslCertificate. + * The host resources related with this sslCertificate. */ class HostItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.php index 801a2f7ecf7..06a1811caea 100644 --- a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.php @@ -51,10 +51,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The hosts related with this sslCertificate. + * Get a list of related host resources associated with an sslCertificate. * @param RelatedHostsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception + * @link https://learn.microsoft.com/graph/api/security-sslcertificate-list-relatedhosts?view=graph-rest-1.0 Find more info here */ public function get(?RelatedHostsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -65,7 +66,7 @@ public function get(?RelatedHostsRequestBuilderGetRequestConfiguration $requestC } /** - * The hosts related with this sslCertificate. + * Get a list of related host resources associated with an sslCertificate. * @param RelatedHostsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilderGetQueryParameters.php b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilderGetQueryParameters.php index d1a6672920c..79efcc346dc 100644 --- a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The hosts related with this sslCertificate. + * Get a list of related host resources associated with an sslCertificate. */ class RelatedHostsRequestBuilderGetQueryParameters { diff --git a/src/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index c9273b59ab6..7d16e6bd4ff 100644 --- a/src/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Sites/SitesRequestBuilder.php b/src/Generated/Sites/SitesRequestBuilder.php index 5762865a54b..3d7f8acc4b4 100644 --- a/src/Generated/Sites/SitesRequestBuilder.php +++ b/src/Generated/Sites/SitesRequestBuilder.php @@ -83,11 +83,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + * List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. * @param SitesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/site-search?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/site-list?view=graph-rest-1.0 Find more info here */ public function get(?SitesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -98,7 +98,7 @@ public function get(?SitesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + * List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. * @param SitesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Sites/SitesRequestBuilderGetQueryParameters.php b/src/Generated/Sites/SitesRequestBuilderGetQueryParameters.php index 8e8b1c7a645..66d728ca0a9 100644 --- a/src/Generated/Sites/SitesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Sites/SitesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + * List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. */ class SitesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Cancel/CancelRequestBuilder.php new file mode 100644 index 00000000000..c8b31ea51eb --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Cancel/CancelRequestBuilder.php @@ -0,0 +1,73 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/cancel'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action cancel + * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(?CancelRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Invoke action cancel + * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CancelRequestBuilder + */ + public function withUrl(string $rawUrl): CancelRequestBuilder { + return new CancelRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..382a8ee4b35 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Count/CountRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..82b686a62db --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1c8734e86fa --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2ac5ab60270 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.php new file mode 100644 index 00000000000..6142459be82 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.php @@ -0,0 +1,144 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property presenters for solutions + * @param VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get presenters from solutions + * @param VirtualEventPresenterItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?VirtualEventPresenterItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventPresenter::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property presenters in solutions + * @param VirtualEventPresenter $body The request body + * @param VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(VirtualEventPresenter $body, ?VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventPresenter::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property presenters for solutions + * @param VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get presenters from solutions + * @param VirtualEventPresenterItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?VirtualEventPresenterItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property presenters in solutions + * @param VirtualEventPresenter $body The request body + * @param VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(VirtualEventPresenter $body, ?VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return VirtualEventPresenterItemRequestBuilder + */ + public function withUrl(string $rawUrl): VirtualEventPresenterItemRequestBuilder { + return new VirtualEventPresenterItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..df679c8616f --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2a9ebaee28d --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new VirtualEventPresenterItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3b41f07b8b5 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param VirtualEventPresenterItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?VirtualEventPresenterItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new VirtualEventPresenterItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return VirtualEventPresenterItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): VirtualEventPresenterItemRequestBuilderGetQueryParameters { + return new VirtualEventPresenterItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..94e2101aa1f --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilder.php new file mode 100644 index 00000000000..8b9919133ba --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + * @param string $virtualEventPresenterId The unique identifier of virtualEventPresenter + * @return VirtualEventPresenterItemRequestBuilder + */ + public function byVirtualEventPresenterId(string $virtualEventPresenterId): VirtualEventPresenterItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['virtualEventPresenter%2Did'] = $virtualEventPresenterId; + return new VirtualEventPresenterItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new PresentersRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get presenters from solutions + * @param PresentersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?PresentersRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventPresenterCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to presenters for solutions + * @param VirtualEventPresenter $body The request body + * @param PresentersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(VirtualEventPresenter $body, ?PresentersRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventPresenter::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get presenters from solutions + * @param PresentersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PresentersRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to presenters for solutions + * @param VirtualEventPresenter $body The request body + * @param PresentersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(VirtualEventPresenter $body, ?PresentersRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return PresentersRequestBuilder + */ + public function withUrl(string $rawUrl): PresentersRequestBuilder { + return new PresentersRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..5e269c7982c --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new PresentersRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..880c2b13b44 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PresentersRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PresentersRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new PresentersRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return PresentersRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): PresentersRequestBuilderGetQueryParameters { + return new PresentersRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..e61067b728b --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Presenters/PresentersRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Publish/PublishRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Publish/PublishRequestBuilder.php new file mode 100644 index 00000000000..fd71aac63c7 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Publish/PublishRequestBuilder.php @@ -0,0 +1,73 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/publish'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action publish + * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(?PublishRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Invoke action publish + * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?PublishRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return PublishRequestBuilder + */ + public function withUrl(string $rawUrl): PublishRequestBuilder { + return new PublishRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/Publish/PublishRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Events/Item/Publish/PublishRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..a7740fd1b51 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/Publish/PublishRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Events/Item/VirtualEventItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Events/Item/VirtualEventItemRequestBuilder.php index bd30b3f2f2c..6b2f1cc916d 100644 --- a/src/Generated/Solutions/VirtualEvents/Events/Item/VirtualEventItemRequestBuilder.php +++ b/src/Generated/Solutions/VirtualEvents/Events/Item/VirtualEventItemRequestBuilder.php @@ -6,6 +6,9 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\VirtualEvent; +use Microsoft\Graph\Generated\Solutions\VirtualEvents\Events\Item\Cancel\CancelRequestBuilder; +use Microsoft\Graph\Generated\Solutions\VirtualEvents\Events\Item\Presenters\PresentersRequestBuilder; +use Microsoft\Graph\Generated\Solutions\VirtualEvents\Events\Item\Publish\PublishRequestBuilder; use Microsoft\Graph\Generated\Solutions\VirtualEvents\Events\Item\Sessions\SessionsRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; @@ -17,6 +20,27 @@ */ class VirtualEventItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the cancel method. + */ + public function cancel(): CancelRequestBuilder { + return new CancelRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + */ + public function presenters(): PresentersRequestBuilder { + return new PresentersRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the publish method. + */ + public function publish(): PublishRequestBuilder { + return new PublishRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. */ diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Count/CountRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..a215222f832 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0aea14e6d08 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d38fb9068f3 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Count/CountRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..22da87df74c --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8223a576e69 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b89d4a8a4a4 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.php new file mode 100644 index 00000000000..1ea4870c61e --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.php @@ -0,0 +1,144 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property presenters for solutions + * @param VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get presenters from solutions + * @param VirtualEventPresenterItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?VirtualEventPresenterItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventPresenter::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property presenters in solutions + * @param VirtualEventPresenter $body The request body + * @param VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(VirtualEventPresenter $body, ?VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventPresenter::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property presenters for solutions + * @param VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get presenters from solutions + * @param VirtualEventPresenterItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?VirtualEventPresenterItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property presenters in solutions + * @param VirtualEventPresenter $body The request body + * @param VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(VirtualEventPresenter $body, ?VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return VirtualEventPresenterItemRequestBuilder + */ + public function withUrl(string $rawUrl): VirtualEventPresenterItemRequestBuilder { + return new VirtualEventPresenterItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..fa56fbcd907 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8a5dadf3b08 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new VirtualEventPresenterItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0bb7a4baa7c --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param VirtualEventPresenterItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?VirtualEventPresenterItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new VirtualEventPresenterItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return VirtualEventPresenterItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): VirtualEventPresenterItemRequestBuilderGetQueryParameters { + return new VirtualEventPresenterItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..7a7c7c34f44 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilder.php new file mode 100644 index 00000000000..55ef356bca0 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + * @param string $virtualEventPresenterId The unique identifier of virtualEventPresenter + * @return VirtualEventPresenterItemRequestBuilder + */ + public function byVirtualEventPresenterId(string $virtualEventPresenterId): VirtualEventPresenterItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['virtualEventPresenter%2Did'] = $virtualEventPresenterId; + return new VirtualEventPresenterItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new PresentersRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get presenters from solutions + * @param PresentersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?PresentersRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventPresenterCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to presenters for solutions + * @param VirtualEventPresenter $body The request body + * @param PresentersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(VirtualEventPresenter $body, ?PresentersRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventPresenter::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get presenters from solutions + * @param PresentersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PresentersRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to presenters for solutions + * @param VirtualEventPresenter $body The request body + * @param PresentersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(VirtualEventPresenter $body, ?PresentersRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return PresentersRequestBuilder + */ + public function withUrl(string $rawUrl): PresentersRequestBuilder { + return new PresentersRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bd19a1163bb --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new PresentersRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..87610b6cb71 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PresentersRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PresentersRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new PresentersRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return PresentersRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): PresentersRequestBuilderGetQueryParameters { + return new PresentersRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..37f0eca4199 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/PresentersRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Count/CountRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..54afb995d33 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9b794b78dff --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b36907fb607 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilder.php new file mode 100644 index 00000000000..ad46af7ce68 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. + * @param string $meetingAttendanceReportId The unique identifier of meetingAttendanceReport + * @return MeetingAttendanceReportItemRequestBuilder + */ + public function byMeetingAttendanceReportId(string $meetingAttendanceReportId): MeetingAttendanceReportItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['meetingAttendanceReport%2Did'] = $meetingAttendanceReportId; + return new MeetingAttendanceReportItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AttendanceReportsRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The attendance reports of an online meeting. Read-only. + * @param AttendanceReportsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?AttendanceReportsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MeetingAttendanceReportCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to attendanceReports for solutions + * @param MeetingAttendanceReport $body The request body + * @param AttendanceReportsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(MeetingAttendanceReport $body, ?AttendanceReportsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MeetingAttendanceReport::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * The attendance reports of an online meeting. Read-only. + * @param AttendanceReportsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AttendanceReportsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to attendanceReports for solutions + * @param MeetingAttendanceReport $body The request body + * @param AttendanceReportsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MeetingAttendanceReport $body, ?AttendanceReportsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return AttendanceReportsRequestBuilder + */ + public function withUrl(string $rawUrl): AttendanceReportsRequestBuilder { + return new AttendanceReportsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..fd07e08e3ed --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new AttendanceReportsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5fe1994845e --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AttendanceReportsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AttendanceReportsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new AttendanceReportsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return AttendanceReportsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): AttendanceReportsRequestBuilderGetQueryParameters { + return new AttendanceReportsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..9fe78d26a2c --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/AttendanceReportsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Count/CountRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..b26e848f980 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..89f23218450 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6870dca75db --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php new file mode 100644 index 00000000000..94dcc00de23 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. + * @param string $attendanceRecordId The unique identifier of attendanceRecord + * @return AttendanceRecordItemRequestBuilder + */ + public function byAttendanceRecordId(string $attendanceRecordId): AttendanceRecordItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['attendanceRecord%2Did'] = $attendanceRecordId; + return new AttendanceRecordItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AttendanceRecordsRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List of attendance records of an attendance report. Read-only. + * @param AttendanceRecordsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?AttendanceRecordsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AttendanceRecordCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to attendanceRecords for solutions + * @param AttendanceRecord $body The request body + * @param AttendanceRecordsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(AttendanceRecord $body, ?AttendanceRecordsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AttendanceRecord::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * List of attendance records of an attendance report. Read-only. + * @param AttendanceRecordsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AttendanceRecordsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to attendanceRecords for solutions + * @param AttendanceRecord $body The request body + * @param AttendanceRecordsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(AttendanceRecord $body, ?AttendanceRecordsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return AttendanceRecordsRequestBuilder + */ + public function withUrl(string $rawUrl): AttendanceRecordsRequestBuilder { + return new AttendanceRecordsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..aa4640b18a9 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new AttendanceRecordsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..22d9ec5f71a --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AttendanceRecordsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AttendanceRecordsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new AttendanceRecordsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return AttendanceRecordsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): AttendanceRecordsRequestBuilderGetQueryParameters { + return new AttendanceRecordsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..4480d3f9acb --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..1e296a7c0ff --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..dd9d30e0b9e --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..05f44ca6a48 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.php new file mode 100644 index 00000000000..5827aaed9ea --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.php @@ -0,0 +1,144 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/{attendanceRecord%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property attendanceRecords for solutions + * @param AttendanceRecordItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?AttendanceRecordItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * List of attendance records of an attendance report. Read-only. + * @param AttendanceRecordItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?AttendanceRecordItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AttendanceRecord::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property attendanceRecords in solutions + * @param AttendanceRecord $body The request body + * @param AttendanceRecordItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(AttendanceRecord $body, ?AttendanceRecordItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [AttendanceRecord::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property attendanceRecords for solutions + * @param AttendanceRecordItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?AttendanceRecordItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * List of attendance records of an attendance report. Read-only. + * @param AttendanceRecordItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AttendanceRecordItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property attendanceRecords in solutions + * @param AttendanceRecord $body The request body + * @param AttendanceRecordItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(AttendanceRecord $body, ?AttendanceRecordItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return AttendanceRecordItemRequestBuilder + */ + public function withUrl(string $rawUrl): AttendanceRecordItemRequestBuilder { + return new AttendanceRecordItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..8d58c15c1a9 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..45a2f2ca8d2 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new AttendanceRecordItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a18e8d7be46 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AttendanceRecordItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AttendanceRecordItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new AttendanceRecordItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return AttendanceRecordItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): AttendanceRecordItemRequestBuilderGetQueryParameters { + return new AttendanceRecordItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..8b11a296344 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php new file mode 100644 index 00000000000..5c90568d327 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MeetingAttendanceReportItemRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property attendanceReports for solutions + * @param MeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?MeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * The attendance reports of an online meeting. Read-only. + * @param MeetingAttendanceReportItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?MeetingAttendanceReportItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MeetingAttendanceReport::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property attendanceReports in solutions + * @param MeetingAttendanceReport $body The request body + * @param MeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(MeetingAttendanceReport $body, ?MeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MeetingAttendanceReport::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property attendanceReports for solutions + * @param MeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * The attendance reports of an online meeting. Read-only. + * @param MeetingAttendanceReportItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MeetingAttendanceReportItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property attendanceReports in solutions + * @param MeetingAttendanceReport $body The request body + * @param MeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MeetingAttendanceReport $body, ?MeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return MeetingAttendanceReportItemRequestBuilder + */ + public function withUrl(string $rawUrl): MeetingAttendanceReportItemRequestBuilder { + return new MeetingAttendanceReportItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..829209158db --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6884a727995 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new MeetingAttendanceReportItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0dc50b2d914 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MeetingAttendanceReportItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MeetingAttendanceReportItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MeetingAttendanceReportItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MeetingAttendanceReportItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MeetingAttendanceReportItemRequestBuilderGetQueryParameters { + return new MeetingAttendanceReportItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..f25d17e90db --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilder.php new file mode 100644 index 00000000000..43abc422b76 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new VirtualEventSessionItemRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property sessions for solutions + * @param VirtualEventSessionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?VirtualEventSessionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Sessions for the virtual event. + * @param VirtualEventSessionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?VirtualEventSessionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventSession::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property sessions in solutions + * @param VirtualEventSession $body The request body + * @param VirtualEventSessionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(VirtualEventSession $body, ?VirtualEventSessionItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventSession::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property sessions for solutions + * @param VirtualEventSessionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?VirtualEventSessionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Sessions for the virtual event. + * @param VirtualEventSessionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?VirtualEventSessionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property sessions in solutions + * @param VirtualEventSession $body The request body + * @param VirtualEventSessionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(VirtualEventSession $body, ?VirtualEventSessionItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return VirtualEventSessionItemRequestBuilder + */ + public function withUrl(string $rawUrl): VirtualEventSessionItemRequestBuilder { + return new VirtualEventSessionItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..1608da170de --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..320bf4fc00c --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new VirtualEventSessionItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..af5b6c2442b --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param VirtualEventSessionItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?VirtualEventSessionItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new VirtualEventSessionItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return VirtualEventSessionItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): VirtualEventSessionItemRequestBuilderGetQueryParameters { + return new VirtualEventSessionItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..ddd8da32980 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilder.php new file mode 100644 index 00000000000..1c0b0eee286 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. + * @param string $virtualEventSessionId The unique identifier of virtualEventSession + * @return VirtualEventSessionItemRequestBuilder + */ + public function byVirtualEventSessionId(string $virtualEventSessionId): VirtualEventSessionItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['virtualEventSession%2Did'] = $virtualEventSessionId; + return new VirtualEventSessionItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new SessionsRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Sessions for the virtual event. + * @param SessionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?SessionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventSessionCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to sessions for solutions + * @param VirtualEventSession $body The request body + * @param SessionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(VirtualEventSession $body, ?SessionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventSession::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Sessions for the virtual event. + * @param SessionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?SessionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to sessions for solutions + * @param VirtualEventSession $body The request body + * @param SessionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(VirtualEventSession $body, ?SessionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return SessionsRequestBuilder + */ + public function withUrl(string $rawUrl): SessionsRequestBuilder { + return new SessionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..901257c1efa --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new SessionsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3033ce403a3 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param SessionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?SessionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new SessionsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return SessionsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): SessionsRequestBuilderGetQueryParameters { + return new SessionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..b1e9c0c732a --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/SessionsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilder.php new file mode 100644 index 00000000000..762b8e07715 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilder.php @@ -0,0 +1,160 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. + */ + public function sessions(): SessionsRequestBuilder { + return new SessionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new VirtualEventTownhallItemRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property townhalls for solutions + * @param VirtualEventTownhallItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?VirtualEventTownhallItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get townhalls from solutions + * @param VirtualEventTownhallItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?VirtualEventTownhallItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventTownhall::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property townhalls in solutions + * @param VirtualEventTownhall $body The request body + * @param VirtualEventTownhallItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(VirtualEventTownhall $body, ?VirtualEventTownhallItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventTownhall::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property townhalls for solutions + * @param VirtualEventTownhallItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?VirtualEventTownhallItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get townhalls from solutions + * @param VirtualEventTownhallItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?VirtualEventTownhallItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property townhalls in solutions + * @param VirtualEventTownhall $body The request body + * @param VirtualEventTownhallItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(VirtualEventTownhall $body, ?VirtualEventTownhallItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return VirtualEventTownhallItemRequestBuilder + */ + public function withUrl(string $rawUrl): VirtualEventTownhallItemRequestBuilder { + return new VirtualEventTownhallItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..f2f01b8719c --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a8459d7bb3a --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new VirtualEventTownhallItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..91b2739e548 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param VirtualEventTownhallItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?VirtualEventTownhallItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new VirtualEventTownhallItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return VirtualEventTownhallItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): VirtualEventTownhallItemRequestBuilderGetQueryParameters { + return new VirtualEventTownhallItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..df14b6db82a --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilder.php new file mode 100644 index 00000000000..c9ac616e5b3 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the townhalls property of the microsoft.graph.virtualEventsRoot entity. + * @param string $virtualEventTownhallId The unique identifier of virtualEventTownhall + * @return VirtualEventTownhallItemRequestBuilder + */ + public function byVirtualEventTownhallId(string $virtualEventTownhallId): VirtualEventTownhallItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['virtualEventTownhall%2Did'] = $virtualEventTownhallId; + return new VirtualEventTownhallItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new TownhallsRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/townhalls{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get townhalls from solutions + * @param TownhallsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?TownhallsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventTownhallCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to townhalls for solutions + * @param VirtualEventTownhall $body The request body + * @param TownhallsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(VirtualEventTownhall $body, ?TownhallsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventTownhall::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get townhalls from solutions + * @param TownhallsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TownhallsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to townhalls for solutions + * @param VirtualEventTownhall $body The request body + * @param TownhallsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(VirtualEventTownhall $body, ?TownhallsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return TownhallsRequestBuilder + */ + public function withUrl(string $rawUrl): TownhallsRequestBuilder { + return new TownhallsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..677d4064762 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new TownhallsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..fe7d91543b0 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TownhallsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TownhallsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new TownhallsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return TownhallsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): TownhallsRequestBuilderGetQueryParameters { + return new TownhallsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..a1ef703b9eb --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Townhalls/TownhallsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/VirtualEventsRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/VirtualEventsRequestBuilder.php index 8bc17d32e09..458880a962f 100644 --- a/src/Generated/Solutions/VirtualEvents/VirtualEventsRequestBuilder.php +++ b/src/Generated/Solutions/VirtualEvents/VirtualEventsRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\VirtualEventsRoot; use Microsoft\Graph\Generated\Solutions\VirtualEvents\Events\EventsRequestBuilder; +use Microsoft\Graph\Generated\Solutions\VirtualEvents\Townhalls\TownhallsRequestBuilder; use Microsoft\Graph\Generated\Solutions\VirtualEvents\Webinars\WebinarsRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; @@ -25,6 +26,13 @@ public function events(): EventsRequestBuilder { return new EventsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the townhalls property of the microsoft.graph.virtualEventsRoot entity. + */ + public function townhalls(): TownhallsRequestBuilder { + return new TownhallsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the webinars property of the microsoft.graph.virtualEventsRoot entity. */ diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Count/CountRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..644d5399240 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0d1ba4776ba --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..288d24bfa05 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.php new file mode 100644 index 00000000000..a9be95d0c6d --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.php @@ -0,0 +1,144 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property presenters for solutions + * @param VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get presenters from solutions + * @param VirtualEventPresenterItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?VirtualEventPresenterItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventPresenter::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property presenters in solutions + * @param VirtualEventPresenter $body The request body + * @param VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(VirtualEventPresenter $body, ?VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventPresenter::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property presenters for solutions + * @param VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get presenters from solutions + * @param VirtualEventPresenterItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?VirtualEventPresenterItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property presenters in solutions + * @param VirtualEventPresenter $body The request body + * @param VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(VirtualEventPresenter $body, ?VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return VirtualEventPresenterItemRequestBuilder + */ + public function withUrl(string $rawUrl): VirtualEventPresenterItemRequestBuilder { + return new VirtualEventPresenterItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..bc4e5713d7b --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9a87d45ef56 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new VirtualEventPresenterItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8b15da7e03d --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param VirtualEventPresenterItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?VirtualEventPresenterItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new VirtualEventPresenterItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return VirtualEventPresenterItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): VirtualEventPresenterItemRequestBuilderGetQueryParameters { + return new VirtualEventPresenterItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..1e36f37962b --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilder.php new file mode 100644 index 00000000000..2b82bcac70e --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + * @param string $virtualEventPresenterId The unique identifier of virtualEventPresenter + * @return VirtualEventPresenterItemRequestBuilder + */ + public function byVirtualEventPresenterId(string $virtualEventPresenterId): VirtualEventPresenterItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['virtualEventPresenter%2Did'] = $virtualEventPresenterId; + return new VirtualEventPresenterItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new PresentersRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get presenters from solutions + * @param PresentersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?PresentersRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventPresenterCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to presenters for solutions + * @param VirtualEventPresenter $body The request body + * @param PresentersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(VirtualEventPresenter $body, ?PresentersRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventPresenter::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get presenters from solutions + * @param PresentersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PresentersRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to presenters for solutions + * @param VirtualEventPresenter $body The request body + * @param PresentersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(VirtualEventPresenter $body, ?PresentersRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return PresentersRequestBuilder + */ + public function withUrl(string $rawUrl): PresentersRequestBuilder { + return new PresentersRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..12a27acdb77 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new PresentersRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..94e532040a5 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PresentersRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PresentersRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new PresentersRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return PresentersRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): PresentersRequestBuilderGetQueryParameters { + return new PresentersRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..3aac4184e8f --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/PresentersRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..c58c89679de --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8d0d182fd21 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8a2a8b346a7 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.php new file mode 100644 index 00000000000..4947a6a71f0 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.php @@ -0,0 +1,144 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property questions for solutions + * @param VirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?VirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get questions from solutions + * @param VirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?VirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventRegistrationQuestionBase::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property questions in solutions + * @param VirtualEventRegistrationQuestionBase $body The request body + * @param VirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(VirtualEventRegistrationQuestionBase $body, ?VirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventRegistrationQuestionBase::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property questions for solutions + * @param VirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?VirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get questions from solutions + * @param VirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?VirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property questions in solutions + * @param VirtualEventRegistrationQuestionBase $body The request body + * @param VirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(VirtualEventRegistrationQuestionBase $body, ?VirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return VirtualEventRegistrationQuestionBaseItemRequestBuilder + */ + public function withUrl(string $rawUrl): VirtualEventRegistrationQuestionBaseItemRequestBuilder { + return new VirtualEventRegistrationQuestionBaseItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..180dd978d21 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6489e3f5a11 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..62d57f966ac --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters { + return new VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..f6b043137b5 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilder.php new file mode 100644 index 00000000000..b6807466430 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + * @param string $virtualEventRegistrationQuestionBaseId The unique identifier of virtualEventRegistrationQuestionBase + * @return VirtualEventRegistrationQuestionBaseItemRequestBuilder + */ + public function byVirtualEventRegistrationQuestionBaseId(string $virtualEventRegistrationQuestionBaseId): VirtualEventRegistrationQuestionBaseItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['virtualEventRegistrationQuestionBase%2Did'] = $virtualEventRegistrationQuestionBaseId; + return new VirtualEventRegistrationQuestionBaseItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new QuestionsRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get questions from solutions + * @param QuestionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?QuestionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventRegistrationQuestionBaseCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to questions for solutions + * @param VirtualEventRegistrationQuestionBase $body The request body + * @param QuestionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(VirtualEventRegistrationQuestionBase $body, ?QuestionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventRegistrationQuestionBase::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get questions from solutions + * @param QuestionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?QuestionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to questions for solutions + * @param VirtualEventRegistrationQuestionBase $body The request body + * @param QuestionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(VirtualEventRegistrationQuestionBase $body, ?QuestionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return QuestionsRequestBuilder + */ + public function withUrl(string $rawUrl): QuestionsRequestBuilder { + return new QuestionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3305a9ccd61 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new QuestionsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a1f44243808 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param QuestionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?QuestionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new QuestionsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return QuestionsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): QuestionsRequestBuilderGetQueryParameters { + return new QuestionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..3a908234393 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilder.php new file mode 100644 index 00000000000..96bbbfb3fd8 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new RegistrationConfigurationRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property registrationConfiguration for solutions + * @param RegistrationConfigurationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?RegistrationConfigurationRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get registrationConfiguration from solutions + * @param RegistrationConfigurationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?RegistrationConfigurationRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventWebinarRegistrationConfiguration::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property registrationConfiguration in solutions + * @param VirtualEventWebinarRegistrationConfiguration $body The request body + * @param RegistrationConfigurationRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(VirtualEventWebinarRegistrationConfiguration $body, ?RegistrationConfigurationRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventWebinarRegistrationConfiguration::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property registrationConfiguration for solutions + * @param RegistrationConfigurationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?RegistrationConfigurationRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get registrationConfiguration from solutions + * @param RegistrationConfigurationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?RegistrationConfigurationRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property registrationConfiguration in solutions + * @param VirtualEventWebinarRegistrationConfiguration $body The request body + * @param RegistrationConfigurationRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(VirtualEventWebinarRegistrationConfiguration $body, ?RegistrationConfigurationRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return RegistrationConfigurationRequestBuilder + */ + public function withUrl(string $rawUrl): RegistrationConfigurationRequestBuilder { + return new RegistrationConfigurationRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..0d8f6576e76 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a3fbfd100b0 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new RegistrationConfigurationRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5d2cd7d6631 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param RegistrationConfigurationRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?RegistrationConfigurationRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new RegistrationConfigurationRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return RegistrationConfigurationRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): RegistrationConfigurationRequestBuilderGetQueryParameters { + return new RegistrationConfigurationRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderPatchRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..190cdd91ec2 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Cancel/CancelRequestBuilder.php new file mode 100644 index 00000000000..ba4459c82fa --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Cancel/CancelRequestBuilder.php @@ -0,0 +1,73 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/cancel'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action cancel + * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(?CancelRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Invoke action cancel + * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CancelRequestBuilder + */ + public function withUrl(string $rawUrl): CancelRequestBuilder { + return new CancelRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..149a92f8ebd --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Count/CountRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..5f3c3406bce --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e8d94bba5ec --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..616df605f34 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilder.php new file mode 100644 index 00000000000..6a1634456ad --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilder.php @@ -0,0 +1,77 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get sessions from solutions + * @param VirtualEventSessionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?VirtualEventSessionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventSession::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get sessions from solutions + * @param VirtualEventSessionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?VirtualEventSessionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return VirtualEventSessionItemRequestBuilder + */ + public function withUrl(string $rawUrl): VirtualEventSessionItemRequestBuilder { + return new VirtualEventSessionItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2df71d7324c --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new VirtualEventSessionItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c86d54862a9 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param VirtualEventSessionItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?VirtualEventSessionItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new VirtualEventSessionItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return VirtualEventSessionItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): VirtualEventSessionItemRequestBuilderGetQueryParameters { + return new VirtualEventSessionItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilder.php new file mode 100644 index 00000000000..c45582a678e --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilder.php @@ -0,0 +1,97 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. + * @param string $virtualEventSessionId The unique identifier of virtualEventSession + * @return VirtualEventSessionItemRequestBuilder + */ + public function byVirtualEventSessionId(string $virtualEventSessionId): VirtualEventSessionItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['virtualEventSession%2Did'] = $virtualEventSessionId; + return new VirtualEventSessionItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new SessionsRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get sessions from solutions + * @param SessionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?SessionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventSessionCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get sessions from solutions + * @param SessionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?SessionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return SessionsRequestBuilder + */ + public function withUrl(string $rawUrl): SessionsRequestBuilder { + return new SessionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c63c2e94d0d --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new SessionsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..32f405ec3b8 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param SessionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?SessionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new SessionsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return SessionsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): SessionsRequestBuilderGetQueryParameters { + return new SessionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/VirtualEventRegistrationItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/VirtualEventRegistrationItemRequestBuilder.php index 715743ad2ef..cb415944f55 100644 --- a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/VirtualEventRegistrationItemRequestBuilder.php +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/VirtualEventRegistrationItemRequestBuilder.php @@ -6,6 +6,8 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\VirtualEventRegistration; +use Microsoft\Graph\Generated\Solutions\VirtualEvents\Webinars\Item\Registrations\Item\Cancel\CancelRequestBuilder; +use Microsoft\Graph\Generated\Solutions\VirtualEvents\Webinars\Item\Registrations\Item\Sessions\SessionsRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; use Microsoft\Kiota\Abstractions\RequestAdapter; @@ -16,6 +18,20 @@ */ class VirtualEventRegistrationItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the cancel method. + */ + public function cancel(): CancelRequestBuilder { + return new CancelRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. + */ + public function sessions(): SessionsRequestBuilder { + return new SessionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new VirtualEventRegistrationItemRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilder.php new file mode 100644 index 00000000000..c4a9543c4db --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilder.php @@ -0,0 +1,73 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email=\'{email}\')/cancel'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action cancel + * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(?CancelRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Invoke action cancel + * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CancelRequestBuilder + */ + public function withUrl(string $rawUrl): CancelRequestBuilder { + return new CancelRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..0a251284d9c --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilder.php new file mode 100644 index 00000000000..e1d1a941d09 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilder.php @@ -0,0 +1,156 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new RegistrationsWithEmailRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + * @param string|null $email Alternate key of virtualEventRegistration + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $email = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email=\'{email}\'){?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['email'] = $email; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property registrations for solutions + * @param RegistrationsWithEmailRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?RegistrationsWithEmailRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @param RegistrationsWithEmailRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/virtualeventregistration-get?view=graph-rest-1.0 Find more info here + */ + public function get(?RegistrationsWithEmailRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventRegistration::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property registrations in solutions + * @param VirtualEventRegistration $body The request body + * @param RegistrationsWithEmailRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(VirtualEventRegistration $body, ?RegistrationsWithEmailRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventRegistration::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property registrations for solutions + * @param RegistrationsWithEmailRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?RegistrationsWithEmailRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @param RegistrationsWithEmailRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?RegistrationsWithEmailRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property registrations in solutions + * @param VirtualEventRegistration $body The request body + * @param RegistrationsWithEmailRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(VirtualEventRegistration $body, ?RegistrationsWithEmailRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return RegistrationsWithEmailRequestBuilder + */ + public function withUrl(string $rawUrl): RegistrationsWithEmailRequestBuilder { + return new RegistrationsWithEmailRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..c6d00a4d100 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..03bd59a2db5 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new RegistrationsWithEmailRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7341f2cc3f3 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param RegistrationsWithEmailRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?RegistrationsWithEmailRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new RegistrationsWithEmailRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return RegistrationsWithEmailRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): RegistrationsWithEmailRequestBuilderGetQueryParameters { + return new RegistrationsWithEmailRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderPatchRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..6ec76462ba4 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilder.php new file mode 100644 index 00000000000..b5737bfd89d --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilder.php @@ -0,0 +1,73 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId=\'{userId}\')/cancel'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action cancel + * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(?CancelRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Invoke action cancel + * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CancelRequestBuilder + */ + public function withUrl(string $rawUrl): CancelRequestBuilder { + return new CancelRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilderPostRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..444437ed1be --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilder.php new file mode 100644 index 00000000000..c20af990197 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilder.php @@ -0,0 +1,156 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new RegistrationsWithUserIdRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + * @param string|null $userId Alternate key of virtualEventRegistration + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $userId = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId=\'{userId}\'){?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['userId'] = $userId; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property registrations for solutions + * @param RegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?RegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @param RegistrationsWithUserIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/virtualeventregistration-get?view=graph-rest-1.0 Find more info here + */ + public function get(?RegistrationsWithUserIdRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventRegistration::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property registrations in solutions + * @param VirtualEventRegistration $body The request body + * @param RegistrationsWithUserIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(VirtualEventRegistration $body, ?RegistrationsWithUserIdRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventRegistration::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property registrations for solutions + * @param RegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?RegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @param RegistrationsWithUserIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?RegistrationsWithUserIdRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property registrations in solutions + * @param VirtualEventRegistration $body The request body + * @param RegistrationsWithUserIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(VirtualEventRegistration $body, ?RegistrationsWithUserIdRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return RegistrationsWithUserIdRequestBuilder + */ + public function withUrl(string $rawUrl): RegistrationsWithUserIdRequestBuilder { + return new RegistrationsWithUserIdRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..9dff5e92123 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a120f7059d4 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new RegistrationsWithUserIdRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderGetRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d0d9365eca9 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param RegistrationsWithUserIdRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?RegistrationsWithUserIdRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new RegistrationsWithUserIdRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return RegistrationsWithUserIdRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): RegistrationsWithUserIdRequestBuilderGetQueryParameters { + return new RegistrationsWithUserIdRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderPatchRequestConfiguration.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..dae2c4cb1b8 --- /dev/null +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php index 70134a28043..4fe526d6fae 100644 --- a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php @@ -53,7 +53,7 @@ public function delete(?MeetingAttendanceReportItemRequestBuilderDeleteRequestCo } /** - * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. + * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. When an online meeting ends, an attendance report is generated for that session. * @param MeetingAttendanceReportItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -101,7 +101,7 @@ public function toDeleteRequestInformation(?MeetingAttendanceReportItemRequestBu } /** - * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. + * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. When an online meeting ends, an attendance report is generated for that session. * @param MeetingAttendanceReportItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetQueryParameters.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetQueryParameters.php index ecb94e21221..e5fe70231ea 100644 --- a/src/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. + * Get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. When an online meeting ends, an attendance report is generated for that session. */ class MeetingAttendanceReportItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Solutions/VirtualEvents/Webinars/Item/VirtualEventWebinarItemRequestBuilder.php b/src/Generated/Solutions/VirtualEvents/Webinars/Item/VirtualEventWebinarItemRequestBuilder.php index c5a9723f71a..eb3b198b411 100644 --- a/src/Generated/Solutions/VirtualEvents/Webinars/Item/VirtualEventWebinarItemRequestBuilder.php +++ b/src/Generated/Solutions/VirtualEvents/Webinars/Item/VirtualEventWebinarItemRequestBuilder.php @@ -6,7 +6,11 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\VirtualEventWebinar; +use Microsoft\Graph\Generated\Solutions\VirtualEvents\Webinars\Item\Presenters\PresentersRequestBuilder; +use Microsoft\Graph\Generated\Solutions\VirtualEvents\Webinars\Item\RegistrationConfiguration\RegistrationConfigurationRequestBuilder; use Microsoft\Graph\Generated\Solutions\VirtualEvents\Webinars\Item\Registrations\RegistrationsRequestBuilder; +use Microsoft\Graph\Generated\Solutions\VirtualEvents\Webinars\Item\RegistrationsWithEmail\RegistrationsWithEmailRequestBuilder; +use Microsoft\Graph\Generated\Solutions\VirtualEvents\Webinars\Item\RegistrationsWithUserId\RegistrationsWithUserIdRequestBuilder; use Microsoft\Graph\Generated\Solutions\VirtualEvents\Webinars\Item\Sessions\SessionsRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; @@ -18,6 +22,20 @@ */ class VirtualEventWebinarItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + */ + public function presenters(): PresentersRequestBuilder { + return new PresentersRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the registrationConfiguration property of the microsoft.graph.virtualEventWebinar entity. + */ + public function registrationConfiguration(): RegistrationConfigurationRequestBuilder { + return new RegistrationConfigurationRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. */ @@ -90,6 +108,24 @@ public function patch(VirtualEventWebinar $body, ?VirtualEventWebinarItemRequest return $this->requestAdapter->sendAsync($requestInfo, [VirtualEventWebinar::class, 'createFromDiscriminatorValue'], $errorMappings); } + /** + * Provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. + * @param string $email Alternate key of virtualEventRegistration + * @return RegistrationsWithEmailRequestBuilder + */ + public function registrationsWithEmail(string $email): RegistrationsWithEmailRequestBuilder { + return new RegistrationsWithEmailRequestBuilder($this->pathParameters, $this->requestAdapter, $email); + } + + /** + * Provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. + * @param string $userId Alternate key of virtualEventRegistration + * @return RegistrationsWithUserIdRequestBuilder + */ + public function registrationsWithUserId(string $userId): RegistrationsWithUserIdRequestBuilder { + return new RegistrationsWithUserIdRequestBuilder($this->pathParameters, $this->requestAdapter, $userId); + } + /** * Delete navigation property webinars for solutions * @param VirtualEventWebinarItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php b/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php index c9c9daa083b..62bb4370ff7 100644 --- a/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 Find more info here */ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -46,7 +46,7 @@ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php b/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php index 33256368dc7..b79a006d59b 100644 --- a/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php +++ b/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php @@ -31,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + * Use this API to create a new Table. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 Find more info here */ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -47,7 +47,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + * Use this API to create a new Table. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php b/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php index 26471fc52c8..52c88be3f0e 100644 --- a/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 Find more info here */ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -46,7 +46,7 @@ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php b/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php index 2c0f51c9ecf..85471d5d372 100644 --- a/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php +++ b/src/Generated/Storage/FileStorage/Containers/Item/Drive/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php @@ -31,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + * Use this API to create a new Table. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 Find more info here */ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -47,7 +47,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + * Use this API to create a new Table. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Storage/FileStorage/Containers/Item/FileStorageContainerItemRequestBuilder.php b/src/Generated/Storage/FileStorage/Containers/Item/FileStorageContainerItemRequestBuilder.php index 02f9a6c2a35..a1d6e55576e 100644 --- a/src/Generated/Storage/FileStorage/Containers/Item/FileStorageContainerItemRequestBuilder.php +++ b/src/Generated/Storage/FileStorage/Containers/Item/FileStorageContainerItemRequestBuilder.php @@ -8,6 +8,7 @@ use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Storage\FileStorage\Containers\Item\Activate\ActivateRequestBuilder; use Microsoft\Graph\Generated\Storage\FileStorage\Containers\Item\Drive\DriveRequestBuilder; +use Microsoft\Graph\Generated\Storage\FileStorage\Containers\Item\PermanentDelete\PermanentDeleteRequestBuilder; use Microsoft\Graph\Generated\Storage\FileStorage\Containers\Item\Permissions\PermissionsRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; @@ -33,6 +34,13 @@ public function drive(): DriveRequestBuilder { return new DriveRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the permanentDelete method. + */ + public function permanentDelete(): PermanentDeleteRequestBuilder { + return new PermanentDeleteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the permissions property of the microsoft.graph.fileStorageContainer entity. */ diff --git a/src/Generated/Storage/FileStorage/Containers/Item/PermanentDelete/PermanentDeleteRequestBuilder.php b/src/Generated/Storage/FileStorage/Containers/Item/PermanentDelete/PermanentDeleteRequestBuilder.php new file mode 100644 index 00000000000..8a2520c8710 --- /dev/null +++ b/src/Generated/Storage/FileStorage/Containers/Item/PermanentDelete/PermanentDeleteRequestBuilder.php @@ -0,0 +1,73 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/permanentDelete'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action permanentDelete + * @param PermanentDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(?PermanentDeleteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Invoke action permanentDelete + * @param PermanentDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?PermanentDeleteRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return PermanentDeleteRequestBuilder + */ + public function withUrl(string $rawUrl): PermanentDeleteRequestBuilder { + return new PermanentDeleteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Invitations/Item/InvitationItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Storage/FileStorage/Containers/Item/PermanentDelete/PermanentDeleteRequestBuilderPostRequestConfiguration.php similarity index 73% rename from src/Generated/Invitations/Item/InvitationItemRequestBuilderPatchRequestConfiguration.php rename to src/Generated/Storage/FileStorage/Containers/Item/PermanentDelete/PermanentDeleteRequestBuilderPostRequestConfiguration.php index a795c456805..99128a4bd70 100644 --- a/src/Generated/Invitations/Item/InvitationItemRequestBuilderPatchRequestConfiguration.php +++ b/src/Generated/Storage/FileStorage/Containers/Item/PermanentDelete/PermanentDeleteRequestBuilderPostRequestConfiguration.php @@ -1,6 +1,6 @@ |string>|null $headers Request headers * @param array|null $options Request options */ diff --git a/src/Generated/Storage/Settings/Quota/QuotaRequestBuilder.php b/src/Generated/Storage/Settings/Quota/QuotaRequestBuilder.php new file mode 100644 index 00000000000..19144b68396 --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/QuotaRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new QuotaRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/storage/settings/quota{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property quota for storage + * @param QuotaRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?QuotaRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get quota from storage + * @param QuotaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?QuotaRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [UnifiedStorageQuota::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property quota in storage + * @param UnifiedStorageQuota $body The request body + * @param QuotaRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(UnifiedStorageQuota $body, ?QuotaRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [UnifiedStorageQuota::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property quota for storage + * @param QuotaRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?QuotaRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get quota from storage + * @param QuotaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?QuotaRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property quota in storage + * @param UnifiedStorageQuota $body The request body + * @param QuotaRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(UnifiedStorageQuota $body, ?QuotaRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return QuotaRequestBuilder + */ + public function withUrl(string $rawUrl): QuotaRequestBuilder { + return new QuotaRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Invitations/Item/InvitationItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Storage/Settings/Quota/QuotaRequestBuilderDeleteRequestConfiguration.php similarity index 67% rename from src/Generated/Invitations/Item/InvitationItemRequestBuilderDeleteRequestConfiguration.php rename to src/Generated/Storage/Settings/Quota/QuotaRequestBuilderDeleteRequestConfiguration.php index bc1b5e615be..a0e242e0fc4 100644 --- a/src/Generated/Invitations/Item/InvitationItemRequestBuilderDeleteRequestConfiguration.php +++ b/src/Generated/Storage/Settings/Quota/QuotaRequestBuilderDeleteRequestConfiguration.php @@ -1,6 +1,6 @@ |string>|null $headers Request headers * @param array|null $options Request options */ diff --git a/src/Generated/Invitations/Item/InvitationItemRequestBuilderGetQueryParameters.php b/src/Generated/Storage/Settings/Quota/QuotaRequestBuilderGetQueryParameters.php similarity index 73% rename from src/Generated/Invitations/Item/InvitationItemRequestBuilderGetQueryParameters.php rename to src/Generated/Storage/Settings/Quota/QuotaRequestBuilderGetQueryParameters.php index 3da3fda1e18..2944bc27fa8 100644 --- a/src/Generated/Invitations/Item/InvitationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Storage/Settings/Quota/QuotaRequestBuilderGetQueryParameters.php @@ -1,13 +1,13 @@ |null $expand Expand related entities * @param array|null $select Select properties to be returned */ diff --git a/src/Generated/Storage/Settings/Quota/QuotaRequestBuilderGetRequestConfiguration.php b/src/Generated/Storage/Settings/Quota/QuotaRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0bf2f781c12 --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/QuotaRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param QuotaRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?QuotaRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new QuotaRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return QuotaRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): QuotaRequestBuilderGetQueryParameters { + return new QuotaRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Storage/Settings/Quota/QuotaRequestBuilderPatchRequestConfiguration.php b/src/Generated/Storage/Settings/Quota/QuotaRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..404182bdc39 --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/QuotaRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Storage/Settings/Quota/Services/Count/CountRequestBuilder.php b/src/Generated/Storage/Settings/Quota/Services/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..85de632c4ff --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/Services/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/storage/settings/quota/services/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Storage/Settings/Quota/Services/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Storage/Settings/Quota/Services/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9204292c408 --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/Services/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Storage/Settings/Quota/Services/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Storage/Settings/Quota/Services/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e92a43cbe02 --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/Services/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilder.php b/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilder.php new file mode 100644 index 00000000000..3d23dcf932f --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilder.php @@ -0,0 +1,144 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/storage/settings/quota/services/{serviceStorageQuotaBreakdown%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property services for storage + * @param ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get services from storage + * @param ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceStorageQuotaBreakdown::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property services in storage + * @param ServiceStorageQuotaBreakdown $body The request body + * @param ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(ServiceStorageQuotaBreakdown $body, ?ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceStorageQuotaBreakdown::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property services for storage + * @param ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get services from storage + * @param ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property services in storage + * @param ServiceStorageQuotaBreakdown $body The request body + * @param ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ServiceStorageQuotaBreakdown $body, ?ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return ServiceStorageQuotaBreakdownItemRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceStorageQuotaBreakdownItemRequestBuilder { + return new ServiceStorageQuotaBreakdownItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..021a1f49228 --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters.php b/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..062c6256700 --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..527608cd43a --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters { + return new ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..45e71e3b145 --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilder.php b/src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilder.php new file mode 100644 index 00000000000..16e57629cfb --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. + * @param string $serviceStorageQuotaBreakdownId The unique identifier of serviceStorageQuotaBreakdown + * @return ServiceStorageQuotaBreakdownItemRequestBuilder + */ + public function byServiceStorageQuotaBreakdownId(string $serviceStorageQuotaBreakdownId): ServiceStorageQuotaBreakdownItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['serviceStorageQuotaBreakdown%2Did'] = $serviceStorageQuotaBreakdownId; + return new ServiceStorageQuotaBreakdownItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ServicesRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/storage/settings/quota/services{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get services from storage + * @param ServicesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ServicesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceStorageQuotaBreakdownCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to services for storage + * @param ServiceStorageQuotaBreakdown $body The request body + * @param ServicesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(ServiceStorageQuotaBreakdown $body, ?ServicesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceStorageQuotaBreakdown::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get services from storage + * @param ServicesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServicesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to services for storage + * @param ServiceStorageQuotaBreakdown $body The request body + * @param ServicesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ServiceStorageQuotaBreakdown $body, ?ServicesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return ServicesRequestBuilder + */ + public function withUrl(string $rawUrl): ServicesRequestBuilder { + return new ServicesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilderGetQueryParameters.php b/src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d5fe7f30280 --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new ServicesRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilderGetRequestConfiguration.php b/src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7642cbceacc --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServicesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServicesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ServicesRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return ServicesRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): ServicesRequestBuilderGetQueryParameters { + return new ServicesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilderPostRequestConfiguration.php b/src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..d95c204d091 --- /dev/null +++ b/src/Generated/Storage/Settings/Quota/Services/ServicesRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Storage/Settings/SettingsRequestBuilder.php b/src/Generated/Storage/Settings/SettingsRequestBuilder.php new file mode 100644 index 00000000000..87701ad60c0 --- /dev/null +++ b/src/Generated/Storage/Settings/SettingsRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new SettingsRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/storage/settings{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property settings for storage + * @param SettingsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?SettingsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get settings from storage + * @param SettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?SettingsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [StorageSettings::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property settings in storage + * @param StorageSettings $body The request body + * @param SettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(StorageSettings $body, ?SettingsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [StorageSettings::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property settings for storage + * @param SettingsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?SettingsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get settings from storage + * @param SettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property settings in storage + * @param StorageSettings $body The request body + * @param SettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(StorageSettings $body, ?SettingsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return SettingsRequestBuilder + */ + public function withUrl(string $rawUrl): SettingsRequestBuilder { + return new SettingsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Storage/Settings/SettingsRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Storage/Settings/SettingsRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..cf2987a4825 --- /dev/null +++ b/src/Generated/Storage/Settings/SettingsRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Storage/Settings/SettingsRequestBuilderGetQueryParameters.php b/src/Generated/Storage/Settings/SettingsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..75059109da5 --- /dev/null +++ b/src/Generated/Storage/Settings/SettingsRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new SettingsRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Storage/Settings/SettingsRequestBuilderGetRequestConfiguration.php b/src/Generated/Storage/Settings/SettingsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..58f84af697d --- /dev/null +++ b/src/Generated/Storage/Settings/SettingsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param SettingsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?SettingsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new SettingsRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return SettingsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): SettingsRequestBuilderGetQueryParameters { + return new SettingsRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Storage/Settings/SettingsRequestBuilderPatchRequestConfiguration.php b/src/Generated/Storage/Settings/SettingsRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..ecfd21e5340 --- /dev/null +++ b/src/Generated/Storage/Settings/SettingsRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Storage/StorageRequestBuilder.php b/src/Generated/Storage/StorageRequestBuilder.php index 16afdb35e87..53d2f8e8cf9 100644 --- a/src/Generated/Storage/StorageRequestBuilder.php +++ b/src/Generated/Storage/StorageRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\Storage; use Microsoft\Graph\Generated\Storage\FileStorage\FileStorageRequestBuilder; +use Microsoft\Graph\Generated\Storage\Settings\SettingsRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; use Microsoft\Kiota\Abstractions\RequestAdapter; @@ -24,6 +25,13 @@ public function fileStorage(): FileStorageRequestBuilder { return new FileStorageRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the settings property of the microsoft.graph.storage entity. + */ + public function settings(): SettingsRequestBuilder { + return new SettingsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new StorageRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Teams/Item/Channels/ChannelsRequestBuilder.php b/src/Generated/Teams/Item/Channels/ChannelsRequestBuilder.php index 2d429701ee7..921e45da135 100644 --- a/src/Generated/Teams/Item/Channels/ChannelsRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/ChannelsRequestBuilder.php @@ -9,6 +9,7 @@ use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Teams\Item\Channels\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Teams\Item\Channels\GetAllMessages\GetAllMessagesRequestBuilder; +use Microsoft\Graph\Generated\Teams\Item\Channels\GetAllRetainedMessages\GetAllRetainedMessagesRequestBuilder; use Microsoft\Graph\Generated\Teams\Item\Channels\Item\ChannelItemRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; @@ -34,6 +35,13 @@ public function getAllMessages(): GetAllMessagesRequestBuilder { return new GetAllMessagesRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the getAllRetainedMessages method. + */ + public function getAllRetainedMessages(): GetAllRetainedMessagesRequestBuilder { + return new GetAllRetainedMessagesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the channels property of the microsoft.graph.team entity. * @param string $channelId The unique identifier of channel diff --git a/src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php b/src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php new file mode 100644 index 00000000000..b464c0a02c8 --- /dev/null +++ b/src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ChatMessage::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php b/src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php new file mode 100644 index 00000000000..68bd5b9e82b --- /dev/null +++ b/src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php @@ -0,0 +1,76 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/teams/{team%2Did}/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function getAllRetainedMessages + * @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [GetAllRetainedMessagesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke function getAllRetainedMessages + * @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return GetAllRetainedMessagesRequestBuilder + */ + public function withUrl(string $rawUrl): GetAllRetainedMessagesRequestBuilder { + return new GetAllRetainedMessagesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php b/src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bece3ce30eb --- /dev/null +++ b/src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new GetAllRetainedMessagesRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php b/src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ddc1ae7247e --- /dev/null +++ b/src/Generated/Teams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GetAllRetainedMessagesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GetAllRetainedMessagesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new GetAllRetainedMessagesRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return GetAllRetainedMessagesRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): GetAllRetainedMessagesRequestBuilderGetQueryParameters { + return new GetAllRetainedMessagesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Teams/Item/Channels/Item/Archive/ArchivePostRequestBody.php b/src/Generated/Teams/Item/Channels/Item/Archive/ArchivePostRequestBody.php new file mode 100644 index 00000000000..74fcf6dac49 --- /dev/null +++ b/src/Generated/Teams/Item/Channels/Item/Archive/ArchivePostRequestBody.php @@ -0,0 +1,114 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ArchivePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ArchivePostRequestBody { + return new ArchivePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'shouldSetSpoSiteReadOnlyForMembers' => fn(ParseNode $n) => $o->setShouldSetSpoSiteReadOnlyForMembers($n->getBooleanValue()), + ]; + } + + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return bool|null + */ + public function getShouldSetSpoSiteReadOnlyForMembers(): ?bool { + $val = $this->getBackingStore()->get('shouldSetSpoSiteReadOnlyForMembers'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'shouldSetSpoSiteReadOnlyForMembers'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeBooleanValue('shouldSetSpoSiteReadOnlyForMembers', $this->getShouldSetSpoSiteReadOnlyForMembers()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param bool|null $value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public function setShouldSetSpoSiteReadOnlyForMembers(?bool $value): void { + $this->getBackingStore()->set('shouldSetSpoSiteReadOnlyForMembers', $value); + } + +} diff --git a/src/Generated/Teams/Item/Channels/Item/Archive/ArchiveRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Archive/ArchiveRequestBuilder.php new file mode 100644 index 00000000000..c31aad748b6 --- /dev/null +++ b/src/Generated/Teams/Item/Channels/Item/Archive/ArchiveRequestBuilder.php @@ -0,0 +1,77 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/archive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-archive?view=graph-rest-1.0 Find more info here + */ + public function post(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return ArchiveRequestBuilder + */ + public function withUrl(string $rawUrl): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Teams/Item/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Teams/Item/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..d42a93f44ec --- /dev/null +++ b/src/Generated/Teams/Item/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.php index 70865275fb5..b2fe131dd6b 100644 --- a/src/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Models\Channel; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; +use Microsoft\Graph\Generated\Teams\Item\Channels\Item\Archive\ArchiveRequestBuilder; use Microsoft\Graph\Generated\Teams\Item\Channels\Item\CompleteMigration\CompleteMigrationRequestBuilder; use Microsoft\Graph\Generated\Teams\Item\Channels\Item\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; use Microsoft\Graph\Generated\Teams\Item\Channels\Item\FilesFolder\FilesFolderRequestBuilder; @@ -15,6 +16,7 @@ use Microsoft\Graph\Generated\Teams\Item\Channels\Item\RemoveEmail\RemoveEmailRequestBuilder; use Microsoft\Graph\Generated\Teams\Item\Channels\Item\SharedWithTeams\SharedWithTeamsRequestBuilder; use Microsoft\Graph\Generated\Teams\Item\Channels\Item\Tabs\TabsRequestBuilder; +use Microsoft\Graph\Generated\Teams\Item\Channels\Item\Unarchive\UnarchiveRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; use Microsoft\Kiota\Abstractions\RequestAdapter; @@ -25,6 +27,13 @@ */ class ChannelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + public function archive(): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to call the completeMigration method. */ @@ -88,6 +97,13 @@ public function tabs(): TabsRequestBuilder { return new TabsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the unarchive method. + */ + public function unarchive(): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new ChannelItemRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php index d4737b4d6cd..437b474e198 100644 --- a/src/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param ConversationMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0 Find more info here */ public function delete(?ConversationMemberItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -61,12 +61,12 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 Find more info here */ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -77,7 +77,7 @@ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBu } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param ConversationMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -116,7 +116,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.php index f324450624a..53df36713d4 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.php @@ -75,12 +75,12 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -112,7 +112,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Teams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilder.php new file mode 100644 index 00000000000..2e58ce37eff --- /dev/null +++ b/src/Generated/Teams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilder.php @@ -0,0 +1,74 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/unarchive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-unarchive?view=graph-rest-1.0 Find more info here + */ + public function post(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return UnarchiveRequestBuilder + */ + public function withUrl(string $rawUrl): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Teams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Teams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..51449d6550b --- /dev/null +++ b/src/Generated/Teams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Teams/Item/PrimaryChannel/Archive/ArchivePostRequestBody.php b/src/Generated/Teams/Item/PrimaryChannel/Archive/ArchivePostRequestBody.php new file mode 100644 index 00000000000..b529c18a5ed --- /dev/null +++ b/src/Generated/Teams/Item/PrimaryChannel/Archive/ArchivePostRequestBody.php @@ -0,0 +1,114 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ArchivePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ArchivePostRequestBody { + return new ArchivePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'shouldSetSpoSiteReadOnlyForMembers' => fn(ParseNode $n) => $o->setShouldSetSpoSiteReadOnlyForMembers($n->getBooleanValue()), + ]; + } + + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return bool|null + */ + public function getShouldSetSpoSiteReadOnlyForMembers(): ?bool { + $val = $this->getBackingStore()->get('shouldSetSpoSiteReadOnlyForMembers'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'shouldSetSpoSiteReadOnlyForMembers'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeBooleanValue('shouldSetSpoSiteReadOnlyForMembers', $this->getShouldSetSpoSiteReadOnlyForMembers()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param bool|null $value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public function setShouldSetSpoSiteReadOnlyForMembers(?bool $value): void { + $this->getBackingStore()->set('shouldSetSpoSiteReadOnlyForMembers', $value); + } + +} diff --git a/src/Generated/Teams/Item/PrimaryChannel/Archive/ArchiveRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Archive/ArchiveRequestBuilder.php new file mode 100644 index 00000000000..d5cf6a4f6a3 --- /dev/null +++ b/src/Generated/Teams/Item/PrimaryChannel/Archive/ArchiveRequestBuilder.php @@ -0,0 +1,77 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/teams/{team%2Did}/primaryChannel/archive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-archive?view=graph-rest-1.0 Find more info here + */ + public function post(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return ArchiveRequestBuilder + */ + public function withUrl(string $rawUrl): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Teams/Item/PrimaryChannel/Archive/ArchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Teams/Item/PrimaryChannel/Archive/ArchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..350aa55f4eb --- /dev/null +++ b/src/Generated/Teams/Item/PrimaryChannel/Archive/ArchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php index 3b3e3b88109..bc748d506fc 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Models\Channel; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; +use Microsoft\Graph\Generated\Teams\Item\PrimaryChannel\Archive\ArchiveRequestBuilder; use Microsoft\Graph\Generated\Teams\Item\PrimaryChannel\CompleteMigration\CompleteMigrationRequestBuilder; use Microsoft\Graph\Generated\Teams\Item\PrimaryChannel\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; use Microsoft\Graph\Generated\Teams\Item\PrimaryChannel\FilesFolder\FilesFolderRequestBuilder; @@ -15,6 +16,7 @@ use Microsoft\Graph\Generated\Teams\Item\PrimaryChannel\RemoveEmail\RemoveEmailRequestBuilder; use Microsoft\Graph\Generated\Teams\Item\PrimaryChannel\SharedWithTeams\SharedWithTeamsRequestBuilder; use Microsoft\Graph\Generated\Teams\Item\PrimaryChannel\Tabs\TabsRequestBuilder; +use Microsoft\Graph\Generated\Teams\Item\PrimaryChannel\Unarchive\UnarchiveRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; use Microsoft\Kiota\Abstractions\RequestAdapter; @@ -25,6 +27,13 @@ */ class PrimaryChannelRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + public function archive(): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to call the completeMigration method. */ @@ -88,6 +97,13 @@ public function tabs(): TabsRequestBuilder { return new TabsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the unarchive method. + */ + public function unarchive(): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new PrimaryChannelRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Teams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.php new file mode 100644 index 00000000000..f0925f4cbb4 --- /dev/null +++ b/src/Generated/Teams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.php @@ -0,0 +1,74 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/teams/{team%2Did}/primaryChannel/unarchive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-unarchive?view=graph-rest-1.0 Find more info here + */ + public function post(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return UnarchiveRequestBuilder + */ + public function withUrl(string $rawUrl): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Teams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Teams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..2f5d9ec1c30 --- /dev/null +++ b/src/Generated/Teams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/ChannelsRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/ChannelsRequestBuilder.php index 084cb5819ae..eb8f454c124 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/ChannelsRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/ChannelsRequestBuilder.php @@ -9,6 +9,7 @@ use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Teamwork\DeletedTeams\Item\Channels\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Teamwork\DeletedTeams\Item\Channels\GetAllMessages\GetAllMessagesRequestBuilder; +use Microsoft\Graph\Generated\Teamwork\DeletedTeams\Item\Channels\GetAllRetainedMessages\GetAllRetainedMessagesRequestBuilder; use Microsoft\Graph\Generated\Teamwork\DeletedTeams\Item\Channels\Item\ChannelItemRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; @@ -34,6 +35,13 @@ public function getAllMessages(): GetAllMessagesRequestBuilder { return new GetAllMessagesRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the getAllRetainedMessages method. + */ + public function getAllRetainedMessages(): GetAllRetainedMessagesRequestBuilder { + return new GetAllRetainedMessagesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the channels property of the microsoft.graph.deletedTeam entity. * @param string $channelId The unique identifier of channel diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php new file mode 100644 index 00000000000..6b7dc90e260 --- /dev/null +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ChatMessage::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php new file mode 100644 index 00000000000..cb3c5634aad --- /dev/null +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php @@ -0,0 +1,76 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function getAllRetainedMessages + * @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [GetAllRetainedMessagesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke function getAllRetainedMessages + * @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return GetAllRetainedMessagesRequestBuilder + */ + public function withUrl(string $rawUrl): GetAllRetainedMessagesRequestBuilder { + return new GetAllRetainedMessagesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..28b74506c16 --- /dev/null +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new GetAllRetainedMessagesRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6d72d69278b --- /dev/null +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GetAllRetainedMessagesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GetAllRetainedMessagesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new GetAllRetainedMessagesRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return GetAllRetainedMessagesRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): GetAllRetainedMessagesRequestBuilderGetQueryParameters { + return new GetAllRetainedMessagesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Archive/ArchivePostRequestBody.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Archive/ArchivePostRequestBody.php new file mode 100644 index 00000000000..e5ccbe2d4a8 --- /dev/null +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Archive/ArchivePostRequestBody.php @@ -0,0 +1,114 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ArchivePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ArchivePostRequestBody { + return new ArchivePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'shouldSetSpoSiteReadOnlyForMembers' => fn(ParseNode $n) => $o->setShouldSetSpoSiteReadOnlyForMembers($n->getBooleanValue()), + ]; + } + + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return bool|null + */ + public function getShouldSetSpoSiteReadOnlyForMembers(): ?bool { + $val = $this->getBackingStore()->get('shouldSetSpoSiteReadOnlyForMembers'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'shouldSetSpoSiteReadOnlyForMembers'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeBooleanValue('shouldSetSpoSiteReadOnlyForMembers', $this->getShouldSetSpoSiteReadOnlyForMembers()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param bool|null $value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public function setShouldSetSpoSiteReadOnlyForMembers(?bool $value): void { + $this->getBackingStore()->set('shouldSetSpoSiteReadOnlyForMembers', $value); + } + +} diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilder.php new file mode 100644 index 00000000000..831853a32e4 --- /dev/null +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilder.php @@ -0,0 +1,77 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/archive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-archive?view=graph-rest-1.0 Find more info here + */ + public function post(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return ArchiveRequestBuilder + */ + public function withUrl(string $rawUrl): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..490c81da791 --- /dev/null +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php index 187dad324b5..19a56c6f00c 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Models\Channel; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; +use Microsoft\Graph\Generated\Teamwork\DeletedTeams\Item\Channels\Item\Archive\ArchiveRequestBuilder; use Microsoft\Graph\Generated\Teamwork\DeletedTeams\Item\Channels\Item\CompleteMigration\CompleteMigrationRequestBuilder; use Microsoft\Graph\Generated\Teamwork\DeletedTeams\Item\Channels\Item\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; use Microsoft\Graph\Generated\Teamwork\DeletedTeams\Item\Channels\Item\FilesFolder\FilesFolderRequestBuilder; @@ -15,6 +16,7 @@ use Microsoft\Graph\Generated\Teamwork\DeletedTeams\Item\Channels\Item\RemoveEmail\RemoveEmailRequestBuilder; use Microsoft\Graph\Generated\Teamwork\DeletedTeams\Item\Channels\Item\SharedWithTeams\SharedWithTeamsRequestBuilder; use Microsoft\Graph\Generated\Teamwork\DeletedTeams\Item\Channels\Item\Tabs\TabsRequestBuilder; +use Microsoft\Graph\Generated\Teamwork\DeletedTeams\Item\Channels\Item\Unarchive\UnarchiveRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; use Microsoft\Kiota\Abstractions\RequestAdapter; @@ -25,6 +27,13 @@ */ class ChannelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + public function archive(): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to call the completeMigration method. */ @@ -88,6 +97,13 @@ public function tabs(): TabsRequestBuilder { return new TabsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the unarchive method. + */ + public function unarchive(): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new ChannelItemRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilder.php new file mode 100644 index 00000000000..44d3ea87a47 --- /dev/null +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilder.php @@ -0,0 +1,74 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/unarchive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-unarchive?view=graph-rest-1.0 Find more info here + */ + public function post(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return UnarchiveRequestBuilder + */ + public function withUrl(string $rawUrl): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..797cb646ebe --- /dev/null +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.php b/src/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.php index 4e1e2a7105f..40848d38e3b 100644 --- a/src/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.php @@ -45,7 +45,7 @@ public function delete(?LongRunningOperationItemRequestBuilderDeleteRequestConfi } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param LongRunningOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -93,7 +93,7 @@ public function toDeleteRequestInformation(?LongRunningOperationItemRequestBuild } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param LongRunningOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilderGetQueryParameters.php index acb5086e7d2..11bcb5a50c6 100644 --- a/src/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. */ class LongRunningOperationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.php b/src/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.php index f9b56b06454..0ce5bb420da 100644 --- a/src/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -81,7 +81,7 @@ public function post(LongRunningOperation $body, ?OperationsRequestBuilderPostRe } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilderGetQueryParameters.php index 94dd15a8690..a074e9c3990 100644 --- a/src/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. */ class OperationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Chats/ChatsRequestBuilder.php b/src/Generated/Users/Item/Chats/ChatsRequestBuilder.php index d1ad56be453..f29f4d4c5ce 100644 --- a/src/Generated/Users/Item/Chats/ChatsRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/ChatsRequestBuilder.php @@ -9,6 +9,7 @@ use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Users\Item\Chats\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Users\Item\Chats\GetAllMessages\GetAllMessagesRequestBuilder; +use Microsoft\Graph\Generated\Users\Item\Chats\GetAllRetainedMessages\GetAllRetainedMessagesRequestBuilder; use Microsoft\Graph\Generated\Users\Item\Chats\Item\ChatItemRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; @@ -34,6 +35,13 @@ public function getAllMessages(): GetAllMessagesRequestBuilder { return new GetAllMessagesRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the getAllRetainedMessages method. + */ + public function getAllRetainedMessages(): GetAllRetainedMessagesRequestBuilder { + return new GetAllRetainedMessagesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the chats property of the microsoft.graph.user entity. * @param string $chatId The unique identifier of chat diff --git a/src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php b/src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php new file mode 100644 index 00000000000..f545dc2d624 --- /dev/null +++ b/src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ChatMessage::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php b/src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php new file mode 100644 index 00000000000..7d541b891fb --- /dev/null +++ b/src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php @@ -0,0 +1,76 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/users/{user%2Did}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function getAllRetainedMessages + * @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [GetAllRetainedMessagesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke function getAllRetainedMessages + * @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return GetAllRetainedMessagesRequestBuilder + */ + public function withUrl(string $rawUrl): GetAllRetainedMessagesRequestBuilder { + return new GetAllRetainedMessagesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..09ec3b0c975 --- /dev/null +++ b/src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new GetAllRetainedMessagesRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php b/src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ba994eba02e --- /dev/null +++ b/src/Generated/Users/Item/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GetAllRetainedMessagesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GetAllRetainedMessagesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new GetAllRetainedMessagesRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return GetAllRetainedMessagesRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): GetAllRetainedMessagesRequestBuilderGetQueryParameters { + return new GetAllRetainedMessagesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 3810e5e2df1..1cf9e6a0ddd 100644 --- a/src/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -30,7 +30,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -46,7 +46,7 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Users/Item/Insights/InsightsRequestBuilder.php b/src/Generated/Users/Item/Insights/InsightsRequestBuilder.php index 0adc21c25e3..52a69e64c5b 100644 --- a/src/Generated/Users/Item/Insights/InsightsRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/InsightsRequestBuilder.php @@ -4,8 +4,8 @@ use Exception; use Http\Promise\Promise; +use Microsoft\Graph\Generated\Models\ItemInsights; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; -use Microsoft\Graph\Generated\Models\OfficeGraphInsights; use Microsoft\Graph\Generated\Users\Item\Insights\Shared\SharedRequestBuilder; use Microsoft\Graph\Generated\Users\Item\Insights\Trending\TrendingRequestBuilder; use Microsoft\Graph\Generated\Users\Item\Insights\Used\UsedRequestBuilder; @@ -71,7 +71,7 @@ public function delete(?InsightsRequestBuilderDeleteRequestConfiguration $reques /** * Get insights from users * @param InsightsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise + * @return Promise * @throws Exception */ public function get(?InsightsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { @@ -79,22 +79,22 @@ public function get(?InsightsRequestBuilderGetRequestConfiguration $requestConfi $errorMappings = [ 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [OfficeGraphInsights::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [ItemInsights::class, 'createFromDiscriminatorValue'], $errorMappings); } /** * Update the navigation property insights in users - * @param OfficeGraphInsights $body The request body + * @param ItemInsights $body The request body * @param InsightsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise + * @return Promise * @throws Exception */ - public function patch(OfficeGraphInsights $body, ?InsightsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + public function patch(ItemInsights $body, ?InsightsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); $errorMappings = [ 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [OfficeGraphInsights::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [ItemInsights::class, 'createFromDiscriminatorValue'], $errorMappings); } /** @@ -138,11 +138,11 @@ public function toGetRequestInformation(?InsightsRequestBuilderGetRequestConfigu /** * Update the navigation property insights in users - * @param OfficeGraphInsights $body The request body + * @param ItemInsights $body The request body * @param InsightsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ - public function toPatchRequestInformation(OfficeGraphInsights $body, ?InsightsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + public function toPatchRequestInformation(ItemInsights $body, ?InsightsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { $requestInfo = new RequestInformation(); $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; diff --git a/src/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilder.php b/src/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilder.php index 1b28469db80..d4dd8b450c8 100644 --- a/src/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilder.php @@ -61,7 +61,7 @@ public function delete(?SharedInsightItemRequestBuilderDeleteRequestConfiguratio } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @param SharedInsightItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -108,7 +108,7 @@ public function toDeleteRequestInformation(?SharedInsightItemRequestBuilderDelet } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @param SharedInsightItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilderGetQueryParameters.php index 20a93ca0ff5..9a2dffe8b66 100644 --- a/src/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. */ class SharedInsightItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.php b/src/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.php index dc6b29d4e1e..6840acf7672 100644 --- a/src/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @param SharedRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -81,7 +81,7 @@ public function post(SharedInsight $body, ?SharedRequestBuilderPostRequestConfig } /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. * @param SharedRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Users/Item/Insights/Shared/SharedRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Insights/Shared/SharedRequestBuilderGetQueryParameters.php index cfe34de31bc..5fb9a0fa053 100644 --- a/src/Generated/Users/Item/Insights/Shared/SharedRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Insights/Shared/SharedRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. + * Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share. */ class SharedRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilder.php b/src/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilder.php index 2fd78299992..eceb8d2dcf0 100644 --- a/src/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilder.php @@ -53,7 +53,7 @@ public function delete(?TrendingItemRequestBuilderDeleteRequestConfiguration $re } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @param TrendingItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -100,7 +100,7 @@ public function toDeleteRequestInformation(?TrendingItemRequestBuilderDeleteRequ } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @param TrendingItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilderGetQueryParameters.php index c0bfc98bbe5..8b59d1f2b04 100644 --- a/src/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. */ class TrendingItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.php b/src/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.php index cb9a7ef8b9e..265e565002e 100644 --- a/src/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @param TrendingRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -81,7 +81,7 @@ public function post(Trending $body, ?TrendingRequestBuilderPostRequestConfigura } /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. * @param TrendingRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Users/Item/Insights/Trending/TrendingRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Insights/Trending/TrendingRequestBuilderGetQueryParameters.php index 7a5153ac7d8..a3140de670a 100644 --- a/src/Generated/Users/Item/Insights/Trending/TrendingRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Insights/Trending/TrendingRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. + * Calculated relationship that identifies documents trending around a user. Trending documents are calculated based on activity of the user's closest network of people and include files stored in OneDrive for work or school and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before. */ class TrendingRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilder.php b/src/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilder.php index 0d36b04a6c3..eb5cf891e94 100644 --- a/src/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilder.php @@ -53,7 +53,7 @@ public function delete(?UsedInsightItemRequestBuilderDeleteRequestConfiguration } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @param UsedInsightItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -100,7 +100,7 @@ public function toDeleteRequestInformation(?UsedInsightItemRequestBuilderDeleteR } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @param UsedInsightItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilderGetQueryParameters.php index 2d2792ca355..5803847f21d 100644 --- a/src/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. */ class UsedInsightItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Insights/Used/UsedRequestBuilder.php b/src/Generated/Users/Item/Insights/Used/UsedRequestBuilder.php index dc12877cd67..78dfc326601 100644 --- a/src/Generated/Users/Item/Insights/Used/UsedRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Used/UsedRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @param UsedRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -81,7 +81,7 @@ public function post(UsedInsight $body, ?UsedRequestBuilderPostRequestConfigurat } /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. * @param UsedRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Users/Item/Insights/Used/UsedRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Insights/Used/UsedRequestBuilderGetQueryParameters.php index deb77c70cde..63aec4379b8 100644 --- a/src/Generated/Users/Item/Insights/Used/UsedRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Insights/Used/UsedRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use. + * Calculated relationship that identifies the latest documents viewed or modified by a user, including OneDrive for work or school and SharePoint documents, ranked by recency of use. */ class UsedRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.php index 20f6c6dccf2..a83f1f1e865 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.php @@ -9,6 +9,7 @@ use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\Channels\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\Channels\GetAllMessages\GetAllMessagesRequestBuilder; +use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\Channels\GetAllRetainedMessages\GetAllRetainedMessagesRequestBuilder; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\Channels\Item\ChannelItemRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; @@ -34,6 +35,13 @@ public function getAllMessages(): GetAllMessagesRequestBuilder { return new GetAllMessagesRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the getAllRetainedMessages method. + */ + public function getAllRetainedMessages(): GetAllRetainedMessagesRequestBuilder { + return new GetAllRetainedMessagesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the channels property of the microsoft.graph.team entity. * @param string $channelId The unique identifier of channel diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php new file mode 100644 index 00000000000..69e9ed6acb2 --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ChatMessage::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php new file mode 100644 index 00000000000..bcb20e87923 --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php @@ -0,0 +1,76 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function getAllRetainedMessages + * @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [GetAllRetainedMessagesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke function getAllRetainedMessages + * @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return GetAllRetainedMessagesRequestBuilder + */ + public function withUrl(string $rawUrl): GetAllRetainedMessagesRequestBuilder { + return new GetAllRetainedMessagesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2ab92e474ca --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new GetAllRetainedMessagesRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d219a04e287 --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GetAllRetainedMessagesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GetAllRetainedMessagesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new GetAllRetainedMessagesRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return GetAllRetainedMessagesRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): GetAllRetainedMessagesRequestBuilderGetQueryParameters { + return new GetAllRetainedMessagesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Archive/ArchivePostRequestBody.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Archive/ArchivePostRequestBody.php new file mode 100644 index 00000000000..fadefa27029 --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Archive/ArchivePostRequestBody.php @@ -0,0 +1,114 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ArchivePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ArchivePostRequestBody { + return new ArchivePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'shouldSetSpoSiteReadOnlyForMembers' => fn(ParseNode $n) => $o->setShouldSetSpoSiteReadOnlyForMembers($n->getBooleanValue()), + ]; + } + + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return bool|null + */ + public function getShouldSetSpoSiteReadOnlyForMembers(): ?bool { + $val = $this->getBackingStore()->get('shouldSetSpoSiteReadOnlyForMembers'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'shouldSetSpoSiteReadOnlyForMembers'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeBooleanValue('shouldSetSpoSiteReadOnlyForMembers', $this->getShouldSetSpoSiteReadOnlyForMembers()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param bool|null $value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public function setShouldSetSpoSiteReadOnlyForMembers(?bool $value): void { + $this->getBackingStore()->set('shouldSetSpoSiteReadOnlyForMembers', $value); + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilder.php new file mode 100644 index 00000000000..fe356ab280c --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilder.php @@ -0,0 +1,77 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/archive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-archive?view=graph-rest-1.0 Find more info here + */ + public function post(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return ArchiveRequestBuilder + */ + public function withUrl(string $rawUrl): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..c0b598ddbc2 --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Archive/ArchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php index f1cd5aef057..a3a397b42db 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Models\Channel; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; +use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\Channels\Item\Archive\ArchiveRequestBuilder; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\Channels\Item\CompleteMigration\CompleteMigrationRequestBuilder; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\Channels\Item\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\Channels\Item\FilesFolder\FilesFolderRequestBuilder; @@ -15,6 +16,7 @@ use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\Channels\Item\RemoveEmail\RemoveEmailRequestBuilder; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\Channels\Item\SharedWithTeams\SharedWithTeamsRequestBuilder; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\Channels\Item\Tabs\TabsRequestBuilder; +use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\Channels\Item\Unarchive\UnarchiveRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; use Microsoft\Kiota\Abstractions\RequestAdapter; @@ -25,6 +27,13 @@ */ class ChannelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + public function archive(): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to call the completeMigration method. */ @@ -88,6 +97,13 @@ public function tabs(): TabsRequestBuilder { return new TabsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the unarchive method. + */ + public function unarchive(): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new ChannelItemRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilder.php new file mode 100644 index 00000000000..587b6249bc7 --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilder.php @@ -0,0 +1,74 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/unarchive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-unarchive?view=graph-rest-1.0 Find more info here + */ + public function post(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return UnarchiveRequestBuilder + */ + public function withUrl(string $rawUrl): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..038f6737683 --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Archive/ArchivePostRequestBody.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Archive/ArchivePostRequestBody.php new file mode 100644 index 00000000000..13f112d85b1 --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Archive/ArchivePostRequestBody.php @@ -0,0 +1,114 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ArchivePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ArchivePostRequestBody { + return new ArchivePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'shouldSetSpoSiteReadOnlyForMembers' => fn(ParseNode $n) => $o->setShouldSetSpoSiteReadOnlyForMembers($n->getBooleanValue()), + ]; + } + + /** + * Gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @return bool|null + */ + public function getShouldSetSpoSiteReadOnlyForMembers(): ?bool { + $val = $this->getBackingStore()->get('shouldSetSpoSiteReadOnlyForMembers'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'shouldSetSpoSiteReadOnlyForMembers'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeBooleanValue('shouldSetSpoSiteReadOnlyForMembers', $this->getShouldSetSpoSiteReadOnlyForMembers()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property + * @param bool|null $value Value to set for the shouldSetSpoSiteReadOnlyForMembers property. + */ + public function setShouldSetSpoSiteReadOnlyForMembers(?bool $value): void { + $this->getBackingStore()->set('shouldSetSpoSiteReadOnlyForMembers', $value); + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Archive/ArchiveRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Archive/ArchiveRequestBuilder.php new file mode 100644 index 00000000000..602058deb0c --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Archive/ArchiveRequestBuilder.php @@ -0,0 +1,77 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/archive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-archive?view=graph-rest-1.0 Find more info here + */ + public function post(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param ArchivePostRequestBody $body The request body + * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return ArchiveRequestBuilder + */ + public function withUrl(string $rawUrl): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Archive/ArchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Archive/ArchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..d3127709ba6 --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Archive/ArchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php index 775c2a0b0e1..69d07aac18d 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Models\Channel; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; +use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\PrimaryChannel\Archive\ArchiveRequestBuilder; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\PrimaryChannel\CompleteMigration\CompleteMigrationRequestBuilder; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\PrimaryChannel\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\PrimaryChannel\FilesFolder\FilesFolderRequestBuilder; @@ -15,6 +16,7 @@ use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\PrimaryChannel\RemoveEmail\RemoveEmailRequestBuilder; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\PrimaryChannel\SharedWithTeams\SharedWithTeamsRequestBuilder; use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\PrimaryChannel\Tabs\TabsRequestBuilder; +use Microsoft\Graph\Generated\Users\Item\JoinedTeams\Item\PrimaryChannel\Unarchive\UnarchiveRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; use Microsoft\Kiota\Abstractions\RequestAdapter; @@ -25,6 +27,13 @@ */ class PrimaryChannelRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + public function archive(): ArchiveRequestBuilder { + return new ArchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to call the completeMigration method. */ @@ -88,6 +97,13 @@ public function tabs(): TabsRequestBuilder { return new TabsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the unarchive method. + */ + public function unarchive(): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new PrimaryChannelRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.php new file mode 100644 index 00000000000..b35b869c50b --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.php @@ -0,0 +1,74 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/unarchive'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/channel-unarchive?view=graph-rest-1.0 Find more info here + */ + public function post(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?UnarchiveRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return UnarchiveRequestBuilder + */ + public function withUrl(string $rawUrl): UnarchiveRequestBuilder { + return new UnarchiveRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..37c8b54adfc --- /dev/null +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Unarchive/UnarchiveRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Invitations/Item/InvitationItemRequestBuilder.php b/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilder.php similarity index 52% rename from src/Generated/Invitations/Item/InvitationItemRequestBuilder.php rename to src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilder.php index f6a63b2c299..4b2937133b0 100644 --- a/src/Generated/Invitations/Item/InvitationItemRequestBuilder.php +++ b/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilder.php @@ -1,44 +1,28 @@ pathParameters, $this->requestAdapter); - } - - /** - * Provides operations to manage the invitedUserSponsors property of the microsoft.graph.invitation entity. - */ - public function invitedUserSponsors(): InvitedUserSponsorsRequestBuilder { - return new InvitedUserSponsorsRequestBuilder($this->pathParameters, $this->requestAdapter); - } - - /** - * Instantiates a new InvitationItemRequestBuilder and sets the default values. + * Instantiates a new ItemInsightsRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. */ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { - parent::__construct($requestAdapter, [], '{+baseurl}/invitations/{invitation%2Did}{?%24expand,%24select}'); + parent::__construct($requestAdapter, [], '{+baseurl}/users/{user%2Did}/settings/itemInsights{?%24expand,%24select}'); if (is_array($pathParametersOrRawUrl)) { $this->pathParameters = $pathParametersOrRawUrl; } else { @@ -47,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete entity from invitations - * @param InvitationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * Delete navigation property itemInsights for users + * @param ItemInsightsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception */ - public function delete(?InvitationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + public function delete(?ItemInsightsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); $errorMappings = [ 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], @@ -61,40 +45,40 @@ public function delete(?InvitationItemRequestBuilderDeleteRequestConfiguration $ } /** - * Get entity from invitations by key - * @param InvitationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise + * Get itemInsights from users + * @param ItemInsightsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise * @throws Exception */ - public function get(?InvitationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + public function get(?ItemInsightsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); $errorMappings = [ 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [Invitation::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [UserInsightsSettings::class, 'createFromDiscriminatorValue'], $errorMappings); } /** - * Update entity in invitations - * @param Invitation $body The request body - * @param InvitationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise + * Update the navigation property itemInsights in users + * @param UserInsightsSettings $body The request body + * @param ItemInsightsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise * @throws Exception */ - public function patch(Invitation $body, ?InvitationItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + public function patch(UserInsightsSettings $body, ?ItemInsightsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); $errorMappings = [ 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [Invitation::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [UserInsightsSettings::class, 'createFromDiscriminatorValue'], $errorMappings); } /** - * Delete entity from invitations - * @param InvitationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * Delete navigation property itemInsights for users + * @param ItemInsightsRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ - public function toDeleteRequestInformation(?InvitationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + public function toDeleteRequestInformation(?ItemInsightsRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { $requestInfo = new RequestInformation(); $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; @@ -108,11 +92,11 @@ public function toDeleteRequestInformation(?InvitationItemRequestBuilderDeleteRe } /** - * Get entity from invitations by key - * @param InvitationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * Get itemInsights from users + * @param ItemInsightsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ - public function toGetRequestInformation(?InvitationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + public function toGetRequestInformation(?ItemInsightsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { $requestInfo = new RequestInformation(); $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; @@ -129,12 +113,12 @@ public function toGetRequestInformation(?InvitationItemRequestBuilderGetRequestC } /** - * Update entity in invitations - * @param Invitation $body The request body - * @param InvitationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * Update the navigation property itemInsights in users + * @param UserInsightsSettings $body The request body + * @param ItemInsightsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ - public function toPatchRequestInformation(Invitation $body, ?InvitationItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + public function toPatchRequestInformation(UserInsightsSettings $body, ?ItemInsightsRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { $requestInfo = new RequestInformation(); $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; @@ -151,10 +135,10 @@ public function toPatchRequestInformation(Invitation $body, ?InvitationItemReque /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. * @param string $rawUrl The raw URL to use for the request builder. - * @return InvitationItemRequestBuilder + * @return ItemInsightsRequestBuilder */ - public function withUrl(string $rawUrl): InvitationItemRequestBuilder { - return new InvitationItemRequestBuilder($rawUrl, $this->requestAdapter); + public function withUrl(string $rawUrl): ItemInsightsRequestBuilder { + return new ItemInsightsRequestBuilder($rawUrl, $this->requestAdapter); } } diff --git a/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..b34dc64a931 --- /dev/null +++ b/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..732d8f7dc07 --- /dev/null +++ b/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new ItemInsightsRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderGetRequestConfiguration.php b/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..50f4e2b75bb --- /dev/null +++ b/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ItemInsightsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ItemInsightsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ItemInsightsRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ItemInsightsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ItemInsightsRequestBuilderGetQueryParameters { + return new ItemInsightsRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderPatchRequestConfiguration.php b/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..0c4ebbc99da --- /dev/null +++ b/src/Generated/Users/Item/Settings/ItemInsights/ItemInsightsRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/Settings/SettingsRequestBuilder.php b/src/Generated/Users/Item/Settings/SettingsRequestBuilder.php index 63779b90171..972377da7b4 100644 --- a/src/Generated/Users/Item/Settings/SettingsRequestBuilder.php +++ b/src/Generated/Users/Item/Settings/SettingsRequestBuilder.php @@ -6,7 +6,9 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\UserSettings; +use Microsoft\Graph\Generated\Users\Item\Settings\ItemInsights\ItemInsightsRequestBuilder; use Microsoft\Graph\Generated\Users\Item\Settings\ShiftPreferences\ShiftPreferencesRequestBuilder; +use Microsoft\Graph\Generated\Users\Item\Settings\Storage\StorageRequestBuilder; use Microsoft\Graph\Generated\Users\Item\Settings\Windows\WindowsRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\HttpMethod; @@ -18,6 +20,13 @@ */ class SettingsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the itemInsights property of the microsoft.graph.userSettings entity. + */ + public function itemInsights(): ItemInsightsRequestBuilder { + return new ItemInsightsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the shiftPreferences property of the microsoft.graph.userSettings entity. */ @@ -25,6 +34,13 @@ public function shiftPreferences(): ShiftPreferencesRequestBuilder { return new ShiftPreferencesRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the storage property of the microsoft.graph.userSettings entity. + */ + public function storage(): StorageRequestBuilder { + return new StorageRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the windows property of the microsoft.graph.userSettings entity. */ diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilder.php b/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilder.php new file mode 100644 index 00000000000..61761bb2f67 --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new QuotaRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/users/{user%2Did}/settings/storage/quota{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property quota for users + * @param QuotaRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?QuotaRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get quota from users + * @param QuotaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?QuotaRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [UnifiedStorageQuota::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property quota in users + * @param UnifiedStorageQuota $body The request body + * @param QuotaRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(UnifiedStorageQuota $body, ?QuotaRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [UnifiedStorageQuota::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property quota for users + * @param QuotaRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?QuotaRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get quota from users + * @param QuotaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?QuotaRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property quota in users + * @param UnifiedStorageQuota $body The request body + * @param QuotaRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(UnifiedStorageQuota $body, ?QuotaRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return QuotaRequestBuilder + */ + public function withUrl(string $rawUrl): QuotaRequestBuilder { + return new QuotaRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..73289a82e0d --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e6c7f06c677 --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new QuotaRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderGetRequestConfiguration.php b/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3eb0c61c443 --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param QuotaRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?QuotaRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new QuotaRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return QuotaRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): QuotaRequestBuilderGetQueryParameters { + return new QuotaRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderPatchRequestConfiguration.php b/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..867df9f5949 --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/QuotaRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/Services/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..81508ed2a8a --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/users/{user%2Did}/settings/storage/quota/services/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/Services/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b42c974c0de --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/Services/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8a0a8dbf565 --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilder.php b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilder.php new file mode 100644 index 00000000000..4f1e5755570 --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilder.php @@ -0,0 +1,144 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/users/{user%2Did}/settings/storage/quota/services/{serviceStorageQuotaBreakdown%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property services for users + * @param ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get services from users + * @param ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceStorageQuotaBreakdown::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property services in users + * @param ServiceStorageQuotaBreakdown $body The request body + * @param ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(ServiceStorageQuotaBreakdown $body, ?ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceStorageQuotaBreakdown::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property services for users + * @param ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get services from users + * @param ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property services in users + * @param ServiceStorageQuotaBreakdown $body The request body + * @param ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ServiceStorageQuotaBreakdown $body, ?ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return ServiceStorageQuotaBreakdownItemRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceStorageQuotaBreakdownItemRequestBuilder { + return new ServiceStorageQuotaBreakdownItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..9be6d8fa77a --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b7879cbaf26 --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..4e5f3e5dc3b --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters { + return new ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..f4e793f63a5 --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/Services/Item/ServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilder.php b/src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilder.php new file mode 100644 index 00000000000..1958ff6ccf2 --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. + * @param string $serviceStorageQuotaBreakdownId The unique identifier of serviceStorageQuotaBreakdown + * @return ServiceStorageQuotaBreakdownItemRequestBuilder + */ + public function byServiceStorageQuotaBreakdownId(string $serviceStorageQuotaBreakdownId): ServiceStorageQuotaBreakdownItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['serviceStorageQuotaBreakdown%2Did'] = $serviceStorageQuotaBreakdownId; + return new ServiceStorageQuotaBreakdownItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ServicesRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/users/{user%2Did}/settings/storage/quota/services{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get services from users + * @param ServicesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ServicesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceStorageQuotaBreakdownCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to services for users + * @param ServiceStorageQuotaBreakdown $body The request body + * @param ServicesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(ServiceStorageQuotaBreakdown $body, ?ServicesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceStorageQuotaBreakdown::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get services from users + * @param ServicesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServicesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to services for users + * @param ServiceStorageQuotaBreakdown $body The request body + * @param ServicesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ServiceStorageQuotaBreakdown $body, ?ServicesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return ServicesRequestBuilder + */ + public function withUrl(string $rawUrl): ServicesRequestBuilder { + return new ServicesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2e65dabb4bc --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new ServicesRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilderGetRequestConfiguration.php b/src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5db8132f4bc --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServicesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServicesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ServicesRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return ServicesRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): ServicesRequestBuilderGetQueryParameters { + return new ServicesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilderPostRequestConfiguration.php b/src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..6d0ca17159b --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/Quota/Services/ServicesRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilder.php b/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilder.php new file mode 100644 index 00000000000..93101ce7059 --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new StorageRequestBuilder and sets the default values. + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/users/{user%2Did}/settings/storage{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property storage for users + * @param StorageRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?StorageRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get storage from users + * @param StorageRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?StorageRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [UserStorage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property storage in users + * @param UserStorage $body The request body + * @param StorageRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(UserStorage $body, ?StorageRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [UserStorage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property storage for users + * @param StorageRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?StorageRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get storage from users + * @param StorageRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?StorageRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property storage in users + * @param UserStorage $body The request body + * @param StorageRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(UserStorage $body, ?StorageRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return StorageRequestBuilder + */ + public function withUrl(string $rawUrl): StorageRequestBuilder { + return new StorageRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..c367de756ff --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..39761903cf9 --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new StorageRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderGetRequestConfiguration.php b/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7e7a8d56a5e --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param StorageRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?StorageRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new StorageRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return StorageRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): StorageRequestBuilderGetQueryParameters { + return new StorageRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderPatchRequestConfiguration.php b/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..ba86760ef0d --- /dev/null +++ b/src/Generated/Users/Item/Settings/Storage/StorageRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Users/Item/UserItemRequestBuilder.php b/src/Generated/Users/Item/UserItemRequestBuilder.php index 3c2a3e31507..1f5e87acb49 100644 --- a/src/Generated/Users/Item/UserItemRequestBuilder.php +++ b/src/Generated/Users/Item/UserItemRequestBuilder.php @@ -617,11 +617,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Deletes a user. * @param UserItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/user-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-user-delete?view=graph-rest-1.0 Find more info here */ public function delete(?UserItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -646,7 +646,7 @@ public function exportDeviceAndAppManagementDataWithSkipWithTop(int $skip, int $ * @param UserItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-user-get?view=graph-rest-1.0 Find more info here */ public function get(?UserItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -662,7 +662,7 @@ public function get(?UserItemRequestBuilderGetRequestConfiguration $requestConfi * @param UserItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/intune-onboarding-user-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-user-update?view=graph-rest-1.0 Find more info here */ public function patch(User $body, ?UserItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -683,7 +683,7 @@ public function reminderViewWithStartDateTimeWithEndDateTime(string $endDateTime } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Deletes a user. * @param UserItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/kiota-lock.json b/src/Generated/kiota-lock.json index d52d4443650..de9271f9597 100644 --- a/src/Generated/kiota-lock.json +++ b/src/Generated/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "BAE153A5255CE4702D8B10B11316559C604F18CC1755FE28BBBFC1F09DFBB547AFADB870E235EBC1E5B212FAEAEB4BD7054EB5CEF68EBC1900824127F45676B4", + "descriptionHash": "227D08764F92CCC7142281D206B6EC321057594F488AB5EC4B1AF2A5D1F655E02C7A8DF2678733DE5064C184ABD0A88D3E4829F30B6F36980D3A642F09A3583E", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.16.0", + "kiotaVersion": "1.17.0", "clientClassName": "BaseGraphClient", "clientNamespaceName": "Microsoft\\Graph\\Generated", "language": "PHP",