From 567a33ea7ce865da6873e78819410d1277bf2db4 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Wed, 18 Mar 2026 20:04:27 +0000 Subject: [PATCH] feat(generation): update request builders and models Update generated files with build 213120 --- .../Admin/People/PeopleRequestBuilder.php | 18 + .../Count/CountRequestBuilder.php | 78 + .../CountRequestBuilderGetQueryParameters.php | 34 + ...tRequestBuilderGetRequestConfiguration.php | 39 + .../Item/ProfileSourceItemRequestBuilder.php | 146 ++ ...questBuilderDeleteRequestConfiguration.php | 22 + ...ceItemRequestBuilderGetQueryParameters.php | 34 + ...mRequestBuilderGetRequestConfiguration.php | 39 + ...equestBuilderPatchRequestConfiguration.php | 22 + .../ProfileSourcesRequestBuilder.php | 135 ++ ...ourcesRequestBuilderGetQueryParameters.php | 82 + ...sRequestBuilderGetRequestConfiguration.php | 45 + ...RequestBuilderPostRequestConfiguration.php | 22 + ...ofileSourcesWithSourceIdRequestBuilder.php | 149 ++ ...questBuilderDeleteRequestConfiguration.php | 22 + ...urceIdRequestBuilderGetQueryParameters.php | 34 + ...dRequestBuilderGetRequestConfiguration.php | 39 + ...equestBuilderPatchRequestConfiguration.php | 22 + .../Admin/Teams/TeamsRequestBuilder.php | 12 +- .../TeamsRequestBuilderGetQueryParameters.php | 2 +- .../Count/CountRequestBuilder.php | 78 + .../CountRequestBuilderGetQueryParameters.php | 34 + ...tRequestBuilderGetRequestConfiguration.php | 39 + .../NumberAssignmentItemRequestBuilder.php | 144 ++ ...questBuilderDeleteRequestConfiguration.php | 22 + ...ntItemRequestBuilderGetQueryParameters.php | 34 + ...mRequestBuilderGetRequestConfiguration.php | 39 + ...equestBuilderPatchRequestConfiguration.php | 22 + .../AssignNumberPostRequestBody.php | 204 +++ ...ministrationAssignNumberRequestBuilder.php | 77 + ...RequestBuilderPostRequestConfiguration.php | 22 + ...nistrationUnassignNumberRequestBuilder.php | 77 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../UnassignNumberPostRequestBody.php | 137 ++ ...ministrationUpdateNumberRequestBuilder.php | 77 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../UpdateNumberPostRequestBody.php | 190 ++ .../NumberAssignmentsRequestBuilder.php | 158 ++ ...nmentsRequestBuilderGetQueryParameters.php | 82 + ...sRequestBuilderGetRequestConfiguration.php | 45 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Operations/Count/CountRequestBuilder.php | 78 + .../CountRequestBuilderGetQueryParameters.php | 34 + ...tRequestBuilderGetRequestConfiguration.php | 39 + ...LongRunningOperationItemRequestBuilder.php | 145 ++ ...questBuilderDeleteRequestConfiguration.php | 22 + ...onItemRequestBuilderGetQueryParameters.php | 34 + ...mRequestBuilderGetRequestConfiguration.php | 39 + ...equestBuilderPatchRequestConfiguration.php | 22 + .../Operations/OperationsRequestBuilder.php | 133 ++ ...ationsRequestBuilderGetQueryParameters.php | 82 + ...sRequestBuilderGetRequestConfiguration.php | 45 + ...RequestBuilderPostRequestConfiguration.php | 22 + ...elephoneNumberManagementRequestBuilder.php | 160 ++ ...questBuilderDeleteRequestConfiguration.php | 22 + ...gementRequestBuilderGetQueryParameters.php | 34 + ...tRequestBuilderGetRequestConfiguration.php | 39 + ...equestBuilderPatchRequestConfiguration.php | 22 + .../ApplicationsRequestBuilder.php | 8 +- ...ationsRequestBuilderGetQueryParameters.php | 2 +- .../Applications/Delta/DeltaGetResponse.php | 12 +- .../Delta/DeltaRequestBuilder.php | 6 +- .../DeltaRequestBuilderGetQueryParameters.php | 2 +- .../Item/ApplicationItemRequestBuilder.php | 12 +- ...onItemRequestBuilderGetQueryParameters.php | 2 +- .../RemoveKey/RemoveKeyRequestBuilder.php | 6 +- .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../SetVerifiedPublisherRequestBuilder.php | 6 +- .../UnsetVerifiedPublisherRequestBuilder.php | 6 +- .../ApplicationsWithAppIdRequestBuilder.php | 12 +- ...hAppIdRequestBuilderGetQueryParameters.php | 2 +- ...plicationsWithUniqueNameRequestBuilder.php | 12 +- ...ueNameRequestBuilderGetQueryParameters.php | 2 +- .../Item/Replies/RepliesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Messages/MessagesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Restore/RestoreRequestBuilder.php | 4 +- ...RetryServiceProvisioningRequestBuilder.php | 5 +- .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../DeletedItemsRequestBuilder.php | 4 +- ...dItemsRequestBuilderGetQueryParameters.php | 2 +- .../GraphGroup/GraphGroupRequestBuilder.php | 4 +- ...hGroupRequestBuilderGetQueryParameters.php | 2 +- .../DirectoryObjectItemRequestBuilder.php | 4 +- ...ctItemRequestBuilderGetQueryParameters.php | 2 +- .../GraphGroup/GraphGroupRequestBuilder.php | 4 +- ...hGroupRequestBuilderGetQueryParameters.php | 2 +- .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../Item/Replies/RepliesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Messages/MessagesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Replies/RepliesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Messages/MessagesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../AccessPackageRequestBuilder.php | 4 +- ...ackageRequestBuilderGetQueryParameters.php | 2 +- .../AccessPackageRequestBuilder.php | 4 +- ...ackageRequestBuilderGetQueryParameters.php | 2 +- ...ministrationScopeTargetsRequestBuilder.php | 4 +- ...argetsRequestBuilderGetQueryParameters.php | 2 +- .../DirectoryObjectItemRequestBuilder.php | 4 +- ...ctItemRequestBuilderGetQueryParameters.php | 2 +- ...ministrationScopeTargetsRequestBuilder.php | 4 +- ...argetsRequestBuilderGetQueryParameters.php | 2 +- .../DirectoryObjectItemRequestBuilder.php | 4 +- ...ctItemRequestBuilderGetQueryParameters.php | 2 +- ...ministrationScopeTargetsRequestBuilder.php | 4 +- ...argetsRequestBuilderGetQueryParameters.php | 2 +- .../DirectoryObjectItemRequestBuilder.php | 4 +- ...ctItemRequestBuilderGetQueryParameters.php | 2 +- ...ministrationScopeTargetsRequestBuilder.php | 4 +- ...argetsRequestBuilderGetQueryParameters.php | 2 +- .../DirectoryObjectItemRequestBuilder.php | 4 +- ...ctItemRequestBuilderGetQueryParameters.php | 2 +- .../Models/AccessPackageAssignmentPolicy.php | 8 +- src/Generated/Models/Admin.php | 4 +- src/Generated/Models/AgentIdentity.php | 138 ++ .../Models/AgentIdentityBlueprint.php | 117 ++ .../AgentIdentityBlueprintPrincipal.php | 93 + src/Generated/Models/AgentUser.php | 49 + src/Generated/Models/Alert.php | 24 +- src/Generated/Models/AllAllowedScopes.php | 46 + src/Generated/Models/Application.php | 7 + src/Generated/Models/Authentication.php | 4 +- src/Generated/Models/AuthenticationMethod.php | 1 + .../AuthenticationMethodConfiguration.php | 1 + .../Models/AuthenticationMethodModes.php | 1 + .../Models/BaseAuthenticationMethod.php | 1 + src/Generated/Models/Contact.php | 66 + src/Generated/Models/DirectoryObject.php | 4 + src/Generated/Models/DlpAction.php | 1 + src/Generated/Models/Entity.php | 17 + src/Generated/Models/EnumeratedScopes.php | 78 + src/Generated/Models/ErrorCorrectionLevel.php | 13 + .../Models/ExternalAuthenticationMethod.php | 4 +- ...ernalAuthenticationMethodConfiguration.php | 4 +- .../ExternalConnectors/ContentCategory.php | 23 + .../ExternalConnectors/ExternalConnection.php | 22 + .../Models/ExternalConnectors/Label.php | 38 + .../Models/ExternalConnectors/Property.php | 26 +- .../ExternalConnectors/PropertyType.php | 2 + src/Generated/Models/FileStorageContainer.php | 28 +- src/Generated/Models/Group.php | 22 + src/Generated/Models/Identity.php | 1 + .../IdentityGovernance/WorkflowBase.php | 4 +- src/Generated/Models/IncludeTarget.php | 158 ++ .../Models/InheritablePermission.php | 158 ++ src/Generated/Models/InheritableScopes.php | 145 ++ src/Generated/Models/NoScopes.php | 46 + src/Generated/Models/PeopleAdminSettings.php | 24 + src/Generated/Models/ProfileSource.php | 158 ++ .../ProfileSourceCollectionResponse.php | 70 + .../Models/ProfileSourceLocalization.php | 180 ++ src/Generated/Models/QrCode.php | 156 ++ src/Generated/Models/QrCodeImageDetails.php | 203 +++ .../Models/QrCodePinAuthenticationMethod.php | 112 ++ ...dePinAuthenticationMethodConfiguration.php | 115 ++ src/Generated/Models/QrPin.php | 134 ++ src/Generated/Models/ScopeCollectionKind.php | 13 + src/Generated/Models/ServicePrincipal.php | 8 + src/Generated/Models/SharePointGroup.php | 136 ++ .../SharePointGroupCollectionResponse.php | 70 + .../Models/SharePointGroupIdentity.php | 90 + .../Models/SharePointGroupMember.php | 67 + ...harePointGroupMemberCollectionResponse.php | 70 + .../Models/SharePointIdentitySet.php | 22 + src/Generated/Models/Simulation.php | 4 +- .../TeamsAdministration/ActivationState.php | 14 + .../TeamsAdministration/AssignmentStatus.php | 16 + .../TeamsAdministration/CustomerAction.php | 11 + .../TeamsAdministration/NumberAssignment.php | 427 +++++ .../NumberAssignmentCollectionResponse.php | 71 + .../TeamsAdministration/NumberCapability.php | 13 + .../TeamsAdministration/NumberSource.php | 11 + .../Models/TeamsAdministration/NumberType.php | 13 + .../TeamsAdministration/PortInStatus.php | 11 + .../ReverseNumberLookupOption.php | 10 + .../TeamsAdministration/TeamsAdminRoot.php | 22 + .../TelephoneNumberLongRunningOperation.php | 116 ++ ...LongRunningOperationCollectionResponse.php | 71 + ...phoneNumberLongRunningOperationDetails.php | 181 ++ .../TelephoneNumberManagementRoot.php | 95 + src/Generated/Models/User.php | 29 + ...icateAuthenticationMethodConfiguration.php | 46 + .../Models/X509CertificateAuthorityScope.php | 183 ++ ...509CertificateIssuerHintsConfiguration.php | 136 ++ .../X509CertificateIssuerHintsState.php | 11 + .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../ServicePrincipalItemRequestBuilder.php | 12 +- ...alItemRequestBuilderGetQueryParameters.php | 2 +- .../ServicePrincipalsRequestBuilder.php | 8 +- ...cipalsRequestBuilderGetQueryParameters.php | 2 +- ...rvicePrincipalsWithAppIdRequestBuilder.php | 12 +- ...hAppIdRequestBuilderGetQueryParameters.php | 2 +- .../Item/Columns/ColumnsRequestBuilder.php | 4 +- ...olumnsRequestBuilderGetQueryParameters.php | 2 +- .../ColumnDefinitionItemRequestBuilder.php | 4 +- ...onItemRequestBuilderGetQueryParameters.php | 2 +- ...FileStorageContainerItemRequestBuilder.php | 8 + .../Count/CountRequestBuilder.php | 78 + .../CountRequestBuilderGetQueryParameters.php | 34 + ...tRequestBuilderGetRequestConfiguration.php | 39 + .../Members/Count/CountRequestBuilder.php | 78 + .../CountRequestBuilderGetQueryParameters.php | 34 + ...tRequestBuilderGetRequestConfiguration.php | 39 + ...harePointGroupMemberItemRequestBuilder.php | 144 ++ ...questBuilderDeleteRequestConfiguration.php | 22 + ...erItemRequestBuilderGetQueryParameters.php | 34 + ...mRequestBuilderGetRequestConfiguration.php | 39 + ...equestBuilderPatchRequestConfiguration.php | 22 + .../Item/Members/MembersRequestBuilder.php | 133 ++ ...embersRequestBuilderGetQueryParameters.php | 82 + ...sRequestBuilderGetRequestConfiguration.php | 45 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../SharePointGroupItemRequestBuilder.php | 152 ++ ...questBuilderDeleteRequestConfiguration.php | 22 + ...pItemRequestBuilderGetQueryParameters.php} | 8 +- ...RequestBuilderGetRequestConfiguration.php} | 22 +- ...equestBuilderPatchRequestConfiguration.php | 22 + .../SharePointGroupsRequestBuilder.php | 133 ++ ...GroupsRequestBuilderGetQueryParameters.php | 82 + ...sRequestBuilderGetRequestConfiguration.php | 45 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Columns/ColumnsRequestBuilder.php | 4 +- ...olumnsRequestBuilderGetQueryParameters.php | 2 +- .../ColumnDefinitionItemRequestBuilder.php | 4 +- ...onItemRequestBuilderGetQueryParameters.php | 2 +- ...FileStorageContainerItemRequestBuilder.php | 8 + .../Count/CountRequestBuilder.php | 78 + .../CountRequestBuilderGetQueryParameters.php | 34 + ...tRequestBuilderGetRequestConfiguration.php | 39 + .../Members/Count/CountRequestBuilder.php | 78 + .../CountRequestBuilderGetQueryParameters.php | 34 + ...tRequestBuilderGetRequestConfiguration.php | 39 + ...harePointGroupMemberItemRequestBuilder.php | 144 ++ ...questBuilderDeleteRequestConfiguration.php | 22 + ...erItemRequestBuilderGetQueryParameters.php | 34 + ...mRequestBuilderGetRequestConfiguration.php | 39 + ...equestBuilderPatchRequestConfiguration.php | 22 + .../Item/Members/MembersRequestBuilder.php | 133 ++ ...embersRequestBuilderGetQueryParameters.php | 82 + ...sRequestBuilderGetRequestConfiguration.php | 45 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../SharePointGroupItemRequestBuilder.php | 152 ++ ...questBuilderDeleteRequestConfiguration.php | 22 + ...upItemRequestBuilderGetQueryParameters.php | 34 + ...mRequestBuilderGetRequestConfiguration.php | 39 + ...equestBuilderPatchRequestConfiguration.php | 22 + .../SharePointGroupsRequestBuilder.php | 133 ++ ...GroupsRequestBuilderGetQueryParameters.php | 82 + ...sRequestBuilderGetRequestConfiguration.php | 45 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Replies/RepliesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Messages/MessagesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Replies/RepliesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Messages/MessagesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Replies/RepliesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Messages/MessagesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + ...ntOrganizationMemberItemRequestBuilder.php | 5 +- ...nalAuthenticationMethodsRequestBuilder.php | 4 +- ...ethodsRequestBuilderGetQueryParameters.php | 2 +- ...AuthenticationMethodItemRequestBuilder.php | 4 +- ...odItemRequestBuilderGetQueryParameters.php | 2 +- .../Item/Replies/RepliesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Messages/MessagesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Replies/RepliesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Messages/MessagesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Replies/RepliesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Messages/MessagesRequestBuilder.php | 8 + .../ReplyWithQuotePostRequestBody.php | 147 ++ .../ReplyWithQuoteRequestBuilder.php | 78 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../CreateForwardRequestBuilder.php | 5 +- .../CreateForwardRequestBuilder.php | 5 +- .../CreateForwardRequestBuilder.php | 5 +- .../Item/Restore/RestoreRequestBuilder.php | 4 +- .../DirectoryObjectItemRequestBuilder.php | 62 +- .../Sponsors/Item/Ref/RefRequestBuilder.php | 74 + ...questBuilderDeleteRequestConfiguration.php | 22 + .../Item/Sponsors/Ref/RefRequestBuilder.php | 151 ++ ...RefRequestBuilderDeleteQueryParameters.php | 26 + ...questBuilderDeleteRequestConfiguration.php | 38 + .../RefRequestBuilderGetQueryParameters.php | 66 + ...fRequestBuilderGetRequestConfiguration.php | 43 + ...RequestBuilderPostRequestConfiguration.php | 22 + .../Item/Sponsors/SponsorsRequestBuilder.php | 10 +- src/Generated/kiota-dom-export.txt | 1598 ++++++++++++++++- src/Generated/kiota-lock.json | 2 +- 344 files changed, 17506 insertions(+), 280 deletions(-) create mode 100644 src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilder.php create mode 100644 src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilder.php create mode 100644 src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilder.php create mode 100644 src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilder.php create mode 100644 src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilder.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilder.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/AssignNumberPostRequestBody.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/UnassignNumberPostRequestBody.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/UpdateNumberPostRequestBody.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilder.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilder.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilder.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilder.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilder.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Models/AgentIdentity.php create mode 100644 src/Generated/Models/AgentIdentityBlueprint.php create mode 100644 src/Generated/Models/AgentIdentityBlueprintPrincipal.php create mode 100644 src/Generated/Models/AgentUser.php create mode 100644 src/Generated/Models/AllAllowedScopes.php create mode 100644 src/Generated/Models/EnumeratedScopes.php create mode 100644 src/Generated/Models/ErrorCorrectionLevel.php create mode 100644 src/Generated/Models/ExternalConnectors/ContentCategory.php create mode 100644 src/Generated/Models/IncludeTarget.php create mode 100644 src/Generated/Models/InheritablePermission.php create mode 100644 src/Generated/Models/InheritableScopes.php create mode 100644 src/Generated/Models/NoScopes.php create mode 100644 src/Generated/Models/ProfileSource.php create mode 100644 src/Generated/Models/ProfileSourceCollectionResponse.php create mode 100644 src/Generated/Models/ProfileSourceLocalization.php create mode 100644 src/Generated/Models/QrCode.php create mode 100644 src/Generated/Models/QrCodeImageDetails.php create mode 100644 src/Generated/Models/QrCodePinAuthenticationMethod.php create mode 100644 src/Generated/Models/QrCodePinAuthenticationMethodConfiguration.php create mode 100644 src/Generated/Models/QrPin.php create mode 100644 src/Generated/Models/ScopeCollectionKind.php create mode 100644 src/Generated/Models/SharePointGroup.php create mode 100644 src/Generated/Models/SharePointGroupCollectionResponse.php create mode 100644 src/Generated/Models/SharePointGroupIdentity.php create mode 100644 src/Generated/Models/SharePointGroupMember.php create mode 100644 src/Generated/Models/SharePointGroupMemberCollectionResponse.php create mode 100644 src/Generated/Models/TeamsAdministration/ActivationState.php create mode 100644 src/Generated/Models/TeamsAdministration/AssignmentStatus.php create mode 100644 src/Generated/Models/TeamsAdministration/CustomerAction.php create mode 100644 src/Generated/Models/TeamsAdministration/NumberAssignment.php create mode 100644 src/Generated/Models/TeamsAdministration/NumberAssignmentCollectionResponse.php create mode 100644 src/Generated/Models/TeamsAdministration/NumberCapability.php create mode 100644 src/Generated/Models/TeamsAdministration/NumberSource.php create mode 100644 src/Generated/Models/TeamsAdministration/NumberType.php create mode 100644 src/Generated/Models/TeamsAdministration/PortInStatus.php create mode 100644 src/Generated/Models/TeamsAdministration/ReverseNumberLookupOption.php create mode 100644 src/Generated/Models/TeamsAdministration/TelephoneNumberLongRunningOperation.php create mode 100644 src/Generated/Models/TeamsAdministration/TelephoneNumberLongRunningOperationCollectionResponse.php create mode 100644 src/Generated/Models/TeamsAdministration/TelephoneNumberLongRunningOperationDetails.php create mode 100644 src/Generated/Models/TeamsAdministration/TelephoneNumberManagementRoot.php create mode 100644 src/Generated/Models/X509CertificateAuthorityScope.php create mode 100644 src/Generated/Models/X509CertificateIssuerHintsConfiguration.php create mode 100644 src/Generated/Models/X509CertificateIssuerHintsState.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Count/CountRequestBuilder.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/Members/Count/CountRequestBuilder.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/Members/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/Members/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/Members/Item/SharePointGroupMemberItemRequestBuilder.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/Members/Item/SharePointGroupMemberItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/Members/Item/SharePointGroupMemberItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/Members/Item/SharePointGroupMemberItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/Members/Item/SharePointGroupMemberItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/Members/MembersRequestBuilder.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/Members/MembersRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/Members/MembersRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/Members/MembersRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/SharePointGroupItemRequestBuilder.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/SharePointGroupItemRequestBuilderDeleteRequestConfiguration.php rename src/Generated/{Users/Item/Sponsors/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php => Storage/FileStorage/Containers/Item/SharePointGroups/Item/SharePointGroupItemRequestBuilderGetQueryParameters.php} (66%) rename src/Generated/{Users/Item/Sponsors/Item/DirectoryObjectItemRequestBuilderGetRequestConfiguration.php => Storage/FileStorage/Containers/Item/SharePointGroups/Item/SharePointGroupItemRequestBuilderGetRequestConfiguration.php} (60%) create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/Item/SharePointGroupItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/SharePointGroupsRequestBuilder.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/SharePointGroupsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/SharePointGroupsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/Containers/Item/SharePointGroups/SharePointGroupsRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Count/CountRequestBuilder.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/Members/Count/CountRequestBuilder.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/Members/Count/CountRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/Members/Count/CountRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/Members/Item/SharePointGroupMemberItemRequestBuilder.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/Members/Item/SharePointGroupMemberItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/Members/Item/SharePointGroupMemberItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/Members/Item/SharePointGroupMemberItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/Members/Item/SharePointGroupMemberItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/Members/MembersRequestBuilder.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/Members/MembersRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/Members/MembersRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/Members/MembersRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/SharePointGroupItemRequestBuilder.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/SharePointGroupItemRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/SharePointGroupItemRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/SharePointGroupItemRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/Item/SharePointGroupItemRequestBuilderPatchRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/SharePointGroupsRequestBuilder.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/SharePointGroupsRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/SharePointGroupsRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Storage/FileStorage/DeletedContainers/Item/SharePointGroups/SharePointGroupsRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Teams/Item/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Teams/Item/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Teams/Item/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Teams/Item/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Teams/Item/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Teams/Item/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Users/Item/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Users/Item/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php create mode 100644 src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Sponsors/Item/Ref/RefRequestBuilder.php create mode 100644 src/Generated/Users/Item/Sponsors/Item/Ref/RefRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Sponsors/Ref/RefRequestBuilder.php create mode 100644 src/Generated/Users/Item/Sponsors/Ref/RefRequestBuilderDeleteQueryParameters.php create mode 100644 src/Generated/Users/Item/Sponsors/Ref/RefRequestBuilderDeleteRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Sponsors/Ref/RefRequestBuilderGetQueryParameters.php create mode 100644 src/Generated/Users/Item/Sponsors/Ref/RefRequestBuilderGetRequestConfiguration.php create mode 100644 src/Generated/Users/Item/Sponsors/Ref/RefRequestBuilderPostRequestConfiguration.php diff --git a/src/Generated/Admin/People/PeopleRequestBuilder.php b/src/Generated/Admin/People/PeopleRequestBuilder.php index 78eca30167c..480bd5caad3 100644 --- a/src/Generated/Admin/People/PeopleRequestBuilder.php +++ b/src/Generated/Admin/People/PeopleRequestBuilder.php @@ -6,6 +6,8 @@ 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\ProfileSources\ProfileSourcesRequestBuilder; +use Microsoft\Graph\Generated\Admin\People\ProfileSourcesWithSourceId\ProfileSourcesWithSourceIdRequestBuilder; use Microsoft\Graph\Generated\Admin\People\Pronouns\PronounsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\PeopleAdminSettings; @@ -33,6 +35,13 @@ public function profileCardProperties(): ProfileCardPropertiesRequestBuilder { return new ProfileCardPropertiesRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity. + */ + public function profileSources(): ProfileSourcesRequestBuilder { + return new ProfileSourcesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity. */ @@ -69,6 +78,15 @@ public function get(?PeopleRequestBuilderGetRequestConfiguration $requestConfigu return $this->requestAdapter->sendAsync($requestInfo, [PeopleAdminSettings::class, 'createFromDiscriminatorValue'], $errorMappings); } + /** + * Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity. + * @param string $sourceId Alternate key of profileSource + * @return ProfileSourcesWithSourceIdRequestBuilder + */ + public function profileSourcesWithSourceId(string $sourceId): ProfileSourcesWithSourceIdRequestBuilder { + return new ProfileSourcesWithSourceIdRequestBuilder($this->pathParameters, $this->requestAdapter, $sourceId); + } + /** * Retrieve the properties and relationships of a peopleAdminSettings object. * @param PeopleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilder.php b/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..86d536b1919 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/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}/admin/people/profileSources/$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/Admin/People/ProfileSources/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bb8a113230c --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..eb663633c88 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/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/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilder.php b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilder.php new file mode 100644 index 00000000000..5c491ab0eeb --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilder.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/profileSources/{profileSource%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete a profileSource object. + * @param ProfileSourceItemRequestBuilderDeleteRequestConfiguration|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/profilesource-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?ProfileSourceItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * A collection of profile source settings configured by an administrator in an organization. + * @param ProfileSourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ProfileSourceItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ProfileSource::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the properties of a profileSource object. + * @param ProfileSource $body The request body + * @param ProfileSourceItemRequestBuilderPatchRequestConfiguration|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/profilesource-update?view=graph-rest-1.0 Find more info here + */ + public function patch(ProfileSource $body, ?ProfileSourceItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ProfileSource::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete a profileSource object. + * @param ProfileSourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ProfileSourceItemRequestBuilderDeleteRequestConfiguration $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; + } + + /** + * A collection of profile source settings configured by an administrator in an organization. + * @param ProfileSourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ProfileSourceItemRequestBuilderGetRequestConfiguration $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 properties of a profileSource object. + * @param ProfileSource $body The request body + * @param ProfileSourceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ProfileSource $body, ?ProfileSourceItemRequestBuilderPatchRequestConfiguration $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 ProfileSourceItemRequestBuilder + */ + public function withUrl(string $rawUrl): ProfileSourceItemRequestBuilder { + return new ProfileSourceItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..2133053b9df --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderDeleteRequestConfiguration.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/ProfileSources/Item/ProfileSourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..52d2fb0d165 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderGetQueryParameters.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 ProfileSourceItemRequestBuilderGetQueryParameters 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/ProfileSources/Item/ProfileSourceItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..70e2ed15b3a --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ProfileSourceItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ProfileSourceItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ProfileSourceItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ProfileSourceItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ProfileSourceItemRequestBuilderGetQueryParameters { + return new ProfileSourceItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..67ce6ed0dde --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderPatchRequestConfiguration.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/ProfileSources/ProfileSourcesRequestBuilder.php b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilder.php new file mode 100644 index 00000000000..fea1e90fdb5 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilder.php @@ -0,0 +1,135 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity. + * @param string $profileSourceId The unique identifier of profileSource + * @return ProfileSourceItemRequestBuilder + */ + public function byProfileSourceId(string $profileSourceId): ProfileSourceItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['profileSource%2Did'] = $profileSourceId; + return new ProfileSourceItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ProfileSourcesRequestBuilder 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}/admin/people/profileSources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get a list of the profileSource objects and their properties, which represent both external data sources and out-of-the-box Microsoft data sources configured for user profiles in an organization. + * @param ProfileSourcesRequestBuilderGetRequestConfiguration|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-profilesources?view=graph-rest-1.0 Find more info here + */ + public function get(?ProfileSourcesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ProfileSourceCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create a new profileSource object. + * @param ProfileSource $body The request body + * @param ProfileSourcesRequestBuilderPostRequestConfiguration|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-post-profilesources?view=graph-rest-1.0 Find more info here + */ + public function post(ProfileSource $body, ?ProfileSourcesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ProfileSource::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get a list of the profileSource objects and their properties, which represent both external data sources and out-of-the-box Microsoft data sources configured for user profiles in an organization. + * @param ProfileSourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ProfileSourcesRequestBuilderGetRequestConfiguration $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 a new profileSource object. + * @param ProfileSource $body The request body + * @param ProfileSourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ProfileSource $body, ?ProfileSourcesRequestBuilderPostRequestConfiguration $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 ProfileSourcesRequestBuilder + */ + public function withUrl(string $rawUrl): ProfileSourcesRequestBuilder { + return new ProfileSourcesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetQueryParameters.php b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0c72a5eb850 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetQueryParameters.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 ProfileSourcesRequestBuilderGetQueryParameters 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/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..04dd3040c05 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ProfileSourcesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ProfileSourcesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ProfileSourcesRequestBuilderGetQueryParameters. + * @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 ProfileSourcesRequestBuilderGetQueryParameters + */ + 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): ProfileSourcesRequestBuilderGetQueryParameters { + return new ProfileSourcesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..4a266e19769 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderPostRequestConfiguration.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/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilder.php b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilder.php new file mode 100644 index 00000000000..02b53a10ab3 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilder.php @@ -0,0 +1,149 @@ +|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 $sourceId Alternate key of profileSource + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $sourceId = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/admin/people/profileSources(sourceId=\'{sourceId}\'){?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['sourceId'] = $sourceId; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete a profileSource object. + * @param ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration|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/profilesource-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * A collection of profile source settings configured by an administrator in an organization. + * @param ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ProfileSource::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the properties of a profileSource object. + * @param ProfileSource $body The request body + * @param ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration|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/profilesource-update?view=graph-rest-1.0 Find more info here + */ + public function patch(ProfileSource $body, ?ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ProfileSource::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete a profileSource object. + * @param ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration $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; + } + + /** + * A collection of profile source settings configured by an administrator in an organization. + * @param ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration $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 properties of a profileSource object. + * @param ProfileSource $body The request body + * @param ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ProfileSource $body, ?ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration $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 ProfileSourcesWithSourceIdRequestBuilder + */ + public function withUrl(string $rawUrl): ProfileSourcesWithSourceIdRequestBuilder { + return new ProfileSourcesWithSourceIdRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..efef8b8db2f --- /dev/null +++ b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration.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/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters.php b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d9ffb1d4a1d --- /dev/null +++ b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters.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 ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters 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/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3ab61f20778 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters { + return new ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..60d32cbffe9 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration.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/Teams/TeamsRequestBuilder.php b/src/Generated/Admin/Teams/TeamsRequestBuilder.php index b6ca388c149..31701ef3fd4 100644 --- a/src/Generated/Admin/Teams/TeamsRequestBuilder.php +++ b/src/Generated/Admin/Teams/TeamsRequestBuilder.php @@ -5,6 +5,7 @@ use Exception; use Http\Promise\Promise; use Microsoft\Graph\Generated\Admin\Teams\Policy\PolicyRequestBuilder; +use Microsoft\Graph\Generated\Admin\Teams\TelephoneNumberManagement\TelephoneNumberManagementRequestBuilder; use Microsoft\Graph\Generated\Admin\Teams\UserConfigurations\UserConfigurationsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\TeamsAdministration\TeamsAdminRoot; @@ -25,6 +26,13 @@ public function policy(): PolicyRequestBuilder { return new PolicyRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the telephoneNumberManagement property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity. + */ + public function telephoneNumberManagement(): TelephoneNumberManagementRequestBuilder { + return new TelephoneNumberManagementRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the userConfigurations property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity. */ @@ -61,7 +69,7 @@ public function delete(?TeamsRequestBuilderDeleteRequestConfiguration $requestCo } /** - * A container for Teams administration functionalities, such as user configurations and policy assignments. + * A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. * @param TeamsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -108,7 +116,7 @@ public function toDeleteRequestInformation(?TeamsRequestBuilderDeleteRequestConf } /** - * A container for Teams administration functionalities, such as user configurations and policy assignments. + * A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. * @param TeamsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Admin/Teams/TeamsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TeamsRequestBuilderGetQueryParameters.php index 311e6040828..3f7f21a5e93 100644 --- a/src/Generated/Admin/Teams/TeamsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/Teams/TeamsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * A container for Teams administration functionalities, such as user configurations and policy assignments. + * A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. */ class TeamsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..6972acaad04 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/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}/admin/teams/telephoneNumberManagement/numberAssignments/$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/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..78d8ed13a24 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..92b30666c51 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/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/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..c9a6e0a37d9 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilder.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}/admin/teams/telephoneNumberManagement/numberAssignments/{numberAssignment%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property numberAssignments for admin + * @param NumberAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?NumberAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Represents a collection of synchronous telephone number management operations. + * @param NumberAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?NumberAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NumberAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property numberAssignments in admin + * @param NumberAssignment $body The request body + * @param NumberAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(NumberAssignment $body, ?NumberAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NumberAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property numberAssignments for admin + * @param NumberAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?NumberAssignmentItemRequestBuilderDeleteRequestConfiguration $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; + } + + /** + * Represents a collection of synchronous telephone number management operations. + * @param NumberAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?NumberAssignmentItemRequestBuilderGetRequestConfiguration $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 numberAssignments in admin + * @param NumberAssignment $body The request body + * @param NumberAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(NumberAssignment $body, ?NumberAssignmentItemRequestBuilderPatchRequestConfiguration $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 NumberAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): NumberAssignmentItemRequestBuilder { + return new NumberAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..ee08f2ccea1 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderDeleteRequestConfiguration.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/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..86de0943dc1 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetQueryParameters.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 NumberAssignmentItemRequestBuilderGetQueryParameters 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/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..82f80e1adab --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param NumberAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?NumberAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new NumberAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return NumberAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): NumberAssignmentItemRequestBuilderGetQueryParameters { + return new NumberAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..cfe94570030 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderPatchRequestConfiguration.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/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/AssignNumberPostRequestBody.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/AssignNumberPostRequestBody.php new file mode 100644 index 00000000000..43f51505b31 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/AssignNumberPostRequestBody.php @@ -0,0 +1,204 @@ +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 AssignNumberPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AssignNumberPostRequestBody { + return new AssignNumberPostRequestBody(); + } + + /** + * 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 assignmentCategory property value. The assignmentCategory property + * @return AssignmentCategory|null + */ + public function getAssignmentCategory(): ?AssignmentCategory { + $val = $this->getBackingStore()->get('assignmentCategory'); + if (is_null($val) || $val instanceof AssignmentCategory) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'assignmentCategory'"); + } + + /** + * Gets the assignmentTargetId property value. The assignmentTargetId property + * @return string|null + */ + public function getAssignmentTargetId(): ?string { + $val = $this->getBackingStore()->get('assignmentTargetId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'assignmentTargetId'"); + } + + /** + * 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 [ + 'assignmentCategory' => fn(ParseNode $n) => $o->setAssignmentCategory($n->getEnumValue(AssignmentCategory::class)), + 'assignmentTargetId' => fn(ParseNode $n) => $o->setAssignmentTargetId($n->getStringValue()), + 'locationId' => fn(ParseNode $n) => $o->setLocationId($n->getStringValue()), + 'numberType' => fn(ParseNode $n) => $o->setNumberType($n->getEnumValue(NumberType::class)), + 'telephoneNumber' => fn(ParseNode $n) => $o->setTelephoneNumber($n->getStringValue()), + ]; + } + + /** + * Gets the locationId property value. The locationId property + * @return string|null + */ + public function getLocationId(): ?string { + $val = $this->getBackingStore()->get('locationId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'locationId'"); + } + + /** + * Gets the numberType property value. The numberType property + * @return NumberType|null + */ + public function getNumberType(): ?NumberType { + $val = $this->getBackingStore()->get('numberType'); + if (is_null($val) || $val instanceof NumberType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'numberType'"); + } + + /** + * Gets the telephoneNumber property value. The telephoneNumber property + * @return string|null + */ + public function getTelephoneNumber(): ?string { + $val = $this->getBackingStore()->get('telephoneNumber'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'telephoneNumber'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeEnumValue('assignmentCategory', $this->getAssignmentCategory()); + $writer->writeStringValue('assignmentTargetId', $this->getAssignmentTargetId()); + $writer->writeStringValue('locationId', $this->getLocationId()); + $writer->writeEnumValue('numberType', $this->getNumberType()); + $writer->writeStringValue('telephoneNumber', $this->getTelephoneNumber()); + $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 assignmentCategory property value. The assignmentCategory property + * @param AssignmentCategory|null $value Value to set for the assignmentCategory property. + */ + public function setAssignmentCategory(?AssignmentCategory $value): void { + $this->getBackingStore()->set('assignmentCategory', $value); + } + + /** + * Sets the assignmentTargetId property value. The assignmentTargetId property + * @param string|null $value Value to set for the assignmentTargetId property. + */ + public function setAssignmentTargetId(?string $value): void { + $this->getBackingStore()->set('assignmentTargetId', $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 locationId property value. The locationId property + * @param string|null $value Value to set for the locationId property. + */ + public function setLocationId(?string $value): void { + $this->getBackingStore()->set('locationId', $value); + } + + /** + * Sets the numberType property value. The numberType property + * @param NumberType|null $value Value to set for the numberType property. + */ + public function setNumberType(?NumberType $value): void { + $this->getBackingStore()->set('numberType', $value); + } + + /** + * Sets the telephoneNumber property value. The telephoneNumber property + * @param string|null $value Value to set for the telephoneNumber property. + */ + public function setTelephoneNumber(?string $value): void { + $this->getBackingStore()->set('telephoneNumber', $value); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder.php new file mode 100644 index 00000000000..b8aa04388f2 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder.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}/admin/teams/telephoneNumberManagement/numberAssignments/microsoft.graph.teamsAdministration.assignNumber'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Creates an asynchronous order to assign a telephone number to a user account. + * @param AssignNumberPostRequestBody $body The request body + * @param MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration|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/teamsadministration-numberassignment-assignnumber?view=graph-rest-1.0 Find more info here + */ + public function post(AssignNumberPostRequestBody $body, ?MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Creates an asynchronous order to assign a telephone number to a user account. + * @param AssignNumberPostRequestBody $body The request body + * @param MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(AssignNumberPostRequestBody $body, ?MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration $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 MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder + */ + public function withUrl(string $rawUrl): MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder { + return new MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..7c51d8d1201 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration.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/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder.php new file mode 100644 index 00000000000..21918fbc88f --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder.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}/admin/teams/telephoneNumberManagement/numberAssignments/microsoft.graph.teamsAdministration.unassignNumber'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Creates an asynchronous order to unassign a telephone number from a user account. + * @param UnassignNumberPostRequestBody $body The request body + * @param MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration|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/teamsadministration-numberassignment-unassignnumber?view=graph-rest-1.0 Find more info here + */ + public function post(UnassignNumberPostRequestBody $body, ?MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Creates an asynchronous order to unassign a telephone number from a user account. + * @param UnassignNumberPostRequestBody $body The request body + * @param MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(UnassignNumberPostRequestBody $body, ?MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration $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 MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder + */ + public function withUrl(string $rawUrl): MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder { + return new MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..3e4cf97331f --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration.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/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/UnassignNumberPostRequestBody.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/UnassignNumberPostRequestBody.php new file mode 100644 index 00000000000..926bf906804 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/UnassignNumberPostRequestBody.php @@ -0,0 +1,137 @@ +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 UnassignNumberPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): UnassignNumberPostRequestBody { + return new UnassignNumberPostRequestBody(); + } + + /** + * 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 [ + 'numberType' => fn(ParseNode $n) => $o->setNumberType($n->getEnumValue(NumberType::class)), + 'telephoneNumber' => fn(ParseNode $n) => $o->setTelephoneNumber($n->getStringValue()), + ]; + } + + /** + * Gets the numberType property value. The numberType property + * @return NumberType|null + */ + public function getNumberType(): ?NumberType { + $val = $this->getBackingStore()->get('numberType'); + if (is_null($val) || $val instanceof NumberType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'numberType'"); + } + + /** + * Gets the telephoneNumber property value. The telephoneNumber property + * @return string|null + */ + public function getTelephoneNumber(): ?string { + $val = $this->getBackingStore()->get('telephoneNumber'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'telephoneNumber'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeEnumValue('numberType', $this->getNumberType()); + $writer->writeStringValue('telephoneNumber', $this->getTelephoneNumber()); + $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 numberType property value. The numberType property + * @param NumberType|null $value Value to set for the numberType property. + */ + public function setNumberType(?NumberType $value): void { + $this->getBackingStore()->set('numberType', $value); + } + + /** + * Sets the telephoneNumber property value. The telephoneNumber property + * @param string|null $value Value to set for the telephoneNumber property. + */ + public function setTelephoneNumber(?string $value): void { + $this->getBackingStore()->set('telephoneNumber', $value); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder.php new file mode 100644 index 00000000000..33b8e922c20 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder.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}/admin/teams/telephoneNumberManagement/numberAssignments/microsoft.graph.teamsAdministration.updateNumber'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * This method is used to update an existing number with optional attributes. Currently supported attributes are locationId, networkSiteId, and reverseNumberLookupOptions. + * @param UpdateNumberPostRequestBody $body The request body + * @param MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration|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/teamsadministration-numberassignment-updatenumber?view=graph-rest-1.0 Find more info here + */ + public function post(UpdateNumberPostRequestBody $body, ?MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * This method is used to update an existing number with optional attributes. Currently supported attributes are locationId, networkSiteId, and reverseNumberLookupOptions. + * @param UpdateNumberPostRequestBody $body The request body + * @param MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(UpdateNumberPostRequestBody $body, ?MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration $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 MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder + */ + public function withUrl(string $rawUrl): MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder { + return new MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..07e21179c7b --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration.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/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/UpdateNumberPostRequestBody.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/UpdateNumberPostRequestBody.php new file mode 100644 index 00000000000..5d78740a0f9 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/UpdateNumberPostRequestBody.php @@ -0,0 +1,190 @@ +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 UpdateNumberPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): UpdateNumberPostRequestBody { + return new UpdateNumberPostRequestBody(); + } + + /** + * 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 [ + 'locationId' => fn(ParseNode $n) => $o->setLocationId($n->getStringValue()), + 'networkSiteId' => fn(ParseNode $n) => $o->setNetworkSiteId($n->getStringValue()), + 'reverseNumberLookupOptions' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setReverseNumberLookupOptions($val); + }, + 'telephoneNumber' => fn(ParseNode $n) => $o->setTelephoneNumber($n->getStringValue()), + ]; + } + + /** + * Gets the locationId property value. The locationId property + * @return string|null + */ + public function getLocationId(): ?string { + $val = $this->getBackingStore()->get('locationId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'locationId'"); + } + + /** + * Gets the networkSiteId property value. The networkSiteId property + * @return string|null + */ + public function getNetworkSiteId(): ?string { + $val = $this->getBackingStore()->get('networkSiteId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'networkSiteId'"); + } + + /** + * Gets the reverseNumberLookupOptions property value. The reverseNumberLookupOptions property + * @return array|null + */ + public function getReverseNumberLookupOptions(): ?array { + $val = $this->getBackingStore()->get('reverseNumberLookupOptions'); + 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 'reverseNumberLookupOptions'"); + } + + /** + * Gets the telephoneNumber property value. The telephoneNumber property + * @return string|null + */ + public function getTelephoneNumber(): ?string { + $val = $this->getBackingStore()->get('telephoneNumber'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'telephoneNumber'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('locationId', $this->getLocationId()); + $writer->writeStringValue('networkSiteId', $this->getNetworkSiteId()); + $writer->writeCollectionOfPrimitiveValues('reverseNumberLookupOptions', $this->getReverseNumberLookupOptions()); + $writer->writeStringValue('telephoneNumber', $this->getTelephoneNumber()); + $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 locationId property value. The locationId property + * @param string|null $value Value to set for the locationId property. + */ + public function setLocationId(?string $value): void { + $this->getBackingStore()->set('locationId', $value); + } + + /** + * Sets the networkSiteId property value. The networkSiteId property + * @param string|null $value Value to set for the networkSiteId property. + */ + public function setNetworkSiteId(?string $value): void { + $this->getBackingStore()->set('networkSiteId', $value); + } + + /** + * Sets the reverseNumberLookupOptions property value. The reverseNumberLookupOptions property + * @param array|null $value Value to set for the reverseNumberLookupOptions property. + */ + public function setReverseNumberLookupOptions(?array $value): void { + $this->getBackingStore()->set('reverseNumberLookupOptions', $value); + } + + /** + * Sets the telephoneNumber property value. The telephoneNumber property + * @param string|null $value Value to set for the telephoneNumber property. + */ + public function setTelephoneNumber(?string $value): void { + $this->getBackingStore()->set('telephoneNumber', $value); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilder.php new file mode 100644 index 00000000000..25bc3159b67 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilder.php @@ -0,0 +1,158 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the assignNumber method. + */ + public function microsoftGraphTeamsAdministrationAssignNumber(): MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder { + return new MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the unassignNumber method. + */ + public function microsoftGraphTeamsAdministrationUnassignNumber(): MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder { + return new MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the updateNumber method. + */ + public function microsoftGraphTeamsAdministrationUpdateNumber(): MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder { + return new MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the numberAssignments property of the microsoft.graph.teamsAdministration.telephoneNumberManagementRoot entity. + * @param string $numberAssignmentId The unique identifier of numberAssignment + * @return NumberAssignmentItemRequestBuilder + */ + public function byNumberAssignmentId(string $numberAssignmentId): NumberAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['numberAssignment%2Did'] = $numberAssignmentId; + return new NumberAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new NumberAssignmentsRequestBuilder 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}/admin/teams/telephoneNumberManagement/numberAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Read the properties and relationships of microsoft.graph.teamsAdministration.numberAssignment object. + * @param NumberAssignmentsRequestBuilderGetRequestConfiguration|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/teamsadministration-telephonenumbermanagementroot-list-numberassignments?view=graph-rest-1.0 Find more info here + */ + public function get(?NumberAssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NumberAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to numberAssignments for admin + * @param NumberAssignment $body The request body + * @param NumberAssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(NumberAssignment $body, ?NumberAssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NumberAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Read the properties and relationships of microsoft.graph.teamsAdministration.numberAssignment object. + * @param NumberAssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?NumberAssignmentsRequestBuilderGetRequestConfiguration $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 numberAssignments for admin + * @param NumberAssignment $body The request body + * @param NumberAssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(NumberAssignment $body, ?NumberAssignmentsRequestBuilderPostRequestConfiguration $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 NumberAssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): NumberAssignmentsRequestBuilder { + return new NumberAssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8f73bd1af73 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetQueryParameters.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 NumberAssignmentsRequestBuilderGetQueryParameters 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/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7affb45efed --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param NumberAssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?NumberAssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new NumberAssignmentsRequestBuilderGetQueryParameters. + * @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 NumberAssignmentsRequestBuilderGetQueryParameters + */ + 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): NumberAssignmentsRequestBuilderGetQueryParameters { + return new NumberAssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..b4aea96e92d --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderPostRequestConfiguration.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/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..26863f9effc --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/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}/admin/teams/telephoneNumberManagement/operations/$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/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..46249372267 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..26220125f54 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/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/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilder.php new file mode 100644 index 00000000000..fabf2f30b61 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilder.php @@ -0,0 +1,145 @@ +|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/teams/telephoneNumberManagement/operations/{telephoneNumberLongRunningOperation%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property operations for admin + * @param TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Read the properties and relationships of microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation object. This method is used to query the status of an assign or unassign number action using Graph API. This link is returned in the Location response header found in assign or unassign operation result. + * @param TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration|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/teamsadministration-telephonenumberlongrunningoperation-get?view=graph-rest-1.0 Find more info here + */ + public function get(?TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TelephoneNumberLongRunningOperation::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property operations in admin + * @param TelephoneNumberLongRunningOperation $body The request body + * @param TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(TelephoneNumberLongRunningOperation $body, ?TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TelephoneNumberLongRunningOperation::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property operations for admin + * @param TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration $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; + } + + /** + * Read the properties and relationships of microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation object. This method is used to query the status of an assign or unassign number action using Graph API. This link is returned in the Location response header found in assign or unassign operation result. + * @param TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration $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 operations in admin + * @param TelephoneNumberLongRunningOperation $body The request body + * @param TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(TelephoneNumberLongRunningOperation $body, ?TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration $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 TelephoneNumberLongRunningOperationItemRequestBuilder + */ + public function withUrl(string $rawUrl): TelephoneNumberLongRunningOperationItemRequestBuilder { + return new TelephoneNumberLongRunningOperationItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..398d16cfd44 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration.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/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e9f0a0d95fc --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters.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 TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters 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/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..11a1be0fc2b --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters { + return new TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..d3887d70b74 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration.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/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilder.php new file mode 100644 index 00000000000..4b2b0de1d83 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the operations property of the microsoft.graph.teamsAdministration.telephoneNumberManagementRoot entity. + * @param string $telephoneNumberLongRunningOperationId The unique identifier of telephoneNumberLongRunningOperation + * @return TelephoneNumberLongRunningOperationItemRequestBuilder + */ + public function byTelephoneNumberLongRunningOperationId(string $telephoneNumberLongRunningOperationId): TelephoneNumberLongRunningOperationItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['telephoneNumberLongRunningOperation%2Did'] = $telephoneNumberLongRunningOperationId; + return new TelephoneNumberLongRunningOperationItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new OperationsRequestBuilder 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}/admin/teams/telephoneNumberManagement/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Read the properties and relationships of microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation object. This method is used to query the status of an assign or unassign number action using Graph API. This link is returned in the Location response header found in assign or unassign operation result. + * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?OperationsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TelephoneNumberLongRunningOperationCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to operations for admin + * @param TelephoneNumberLongRunningOperation $body The request body + * @param OperationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(TelephoneNumberLongRunningOperation $body, ?OperationsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TelephoneNumberLongRunningOperation::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Read the properties and relationships of microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation object. This method is used to query the status of an assign or unassign number action using Graph API. This link is returned in the Location response header found in assign or unassign operation result. + * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfiguration $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 operations for admin + * @param TelephoneNumberLongRunningOperation $body The request body + * @param OperationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(TelephoneNumberLongRunningOperation $body, ?OperationsRequestBuilderPostRequestConfiguration $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 OperationsRequestBuilder + */ + public function withUrl(string $rawUrl): OperationsRequestBuilder { + return new OperationsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7eba3ef0fd6 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetQueryParameters.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 OperationsRequestBuilderGetQueryParameters 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/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e31871bf625 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param OperationsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?OperationsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new OperationsRequestBuilderGetQueryParameters. + * @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 OperationsRequestBuilderGetQueryParameters + */ + 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): OperationsRequestBuilderGetQueryParameters { + return new OperationsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..a00b503c7d2 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderPostRequestConfiguration.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/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilder.php new file mode 100644 index 00000000000..f16db57fbe1 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilder.php @@ -0,0 +1,160 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the operations property of the microsoft.graph.teamsAdministration.telephoneNumberManagementRoot entity. + */ + public function operations(): OperationsRequestBuilder { + return new OperationsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new TelephoneNumberManagementRequestBuilder 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}/admin/teams/telephoneNumberManagement{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property telephoneNumberManagement for admin + * @param TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Represents a collection of available telephone number management operations. + * @param TelephoneNumberManagementRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?TelephoneNumberManagementRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TelephoneNumberManagementRoot::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property telephoneNumberManagement in admin + * @param TelephoneNumberManagementRoot $body The request body + * @param TelephoneNumberManagementRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(TelephoneNumberManagementRoot $body, ?TelephoneNumberManagementRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TelephoneNumberManagementRoot::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property telephoneNumberManagement for admin + * @param TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration $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; + } + + /** + * Represents a collection of available telephone number management operations. + * @param TelephoneNumberManagementRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TelephoneNumberManagementRequestBuilderGetRequestConfiguration $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 telephoneNumberManagement in admin + * @param TelephoneNumberManagementRoot $body The request body + * @param TelephoneNumberManagementRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(TelephoneNumberManagementRoot $body, ?TelephoneNumberManagementRequestBuilderPatchRequestConfiguration $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 TelephoneNumberManagementRequestBuilder + */ + public function withUrl(string $rawUrl): TelephoneNumberManagementRequestBuilder { + return new TelephoneNumberManagementRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..578a4c29c88 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration.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/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..52879f00639 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetQueryParameters.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 TelephoneNumberManagementRequestBuilderGetQueryParameters 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/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..19bd9ed4090 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TelephoneNumberManagementRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TelephoneNumberManagementRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new TelephoneNumberManagementRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return TelephoneNumberManagementRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): TelephoneNumberManagementRequestBuilderGetQueryParameters { + return new TelephoneNumberManagementRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..8a59b4ae80a --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderPatchRequestConfiguration.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/Applications/ApplicationsRequestBuilder.php b/src/Generated/Applications/ApplicationsRequestBuilder.php index c55ed46458c..f8f0ef803b3 100644 --- a/src/Generated/Applications/ApplicationsRequestBuilder.php +++ b/src/Generated/Applications/ApplicationsRequestBuilder.php @@ -84,7 +84,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of applications in this organization. + * Get the list of applications in this organization. This API also returns agentIdentityBlueprint objects, which are identified by the @odata.type property of #microsoft.graph.agentIdentityBlueprint. * @param ApplicationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -99,7 +99,7 @@ public function get(?ApplicationsRequestBuilderGetRequestConfiguration $requestC } /** - * Create a new application object. + * Create a new application object. This API can also create an agentIdentityBlueprint object when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -115,7 +115,7 @@ public function post(Application $body, ?ApplicationsRequestBuilderPostRequestCo } /** - * Get the list of applications in this organization. + * Get the list of applications in this organization. This API also returns agentIdentityBlueprint objects, which are identified by the @odata.type property of #microsoft.graph.agentIdentityBlueprint. * @param ApplicationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?ApplicationsRequestBuilderGetRequestCon } /** - * Create a new application object. + * Create a new application object. This API can also create an agentIdentityBlueprint object when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/ApplicationsRequestBuilderGetQueryParameters.php b/src/Generated/Applications/ApplicationsRequestBuilderGetQueryParameters.php index d3fc94f332d..c118ad08700 100644 --- a/src/Generated/Applications/ApplicationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/ApplicationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of applications in this organization. + * Get the list of applications in this organization. This API also returns agentIdentityBlueprint objects, which are identified by the @odata.type property of #microsoft.graph.agentIdentityBlueprint. */ class ApplicationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Delta/DeltaGetResponse.php b/src/Generated/Applications/Delta/DeltaGetResponse.php index e24ac561833..54fdc03a0e0 100644 --- a/src/Generated/Applications/Delta/DeltaGetResponse.php +++ b/src/Generated/Applications/Delta/DeltaGetResponse.php @@ -2,8 +2,8 @@ namespace Microsoft\Graph\Generated\Applications\Delta; -use Microsoft\Graph\Generated\Models\Application; use Microsoft\Graph\Generated\Models\BaseDeltaFunctionResponse; +use Microsoft\Graph\Generated\Models\DirectoryObject; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; @@ -34,19 +34,19 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Delta public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Application::class, 'createFromDiscriminatorValue'])), + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::class, 'createFromDiscriminatorValue'])), ]); } /** * Gets the value property value. The value property - * @return array|null + * @return array|null */ public function getValue(): ?array { $val = $this->getBackingStore()->get('value'); if (is_array($val) || is_null($val)) { - TypeUtils::validateCollectionValues($val, Application::class); - /** @var array|null $val */ + TypeUtils::validateCollectionValues($val, DirectoryObject::class); + /** @var array|null $val */ return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); @@ -63,7 +63,7 @@ public function serialize(SerializationWriter $writer): void { /** * Sets the value property value. The value property - * @param array|null $value Value to set for 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/Applications/Delta/DeltaRequestBuilder.php b/src/Generated/Applications/Delta/DeltaRequestBuilder.php index 9a38e8e7a22..406774f3787 100644 --- a/src/Generated/Applications/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Applications/Delta/DeltaRequestBuilder.php @@ -30,11 +30,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. + * Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. * @param DeltaRequestBuilderGetRequestConfiguration|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/application-delta?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-1.0 Find more info here */ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -45,7 +45,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. + * Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Delta/DeltaRequestBuilderGetQueryParameters.php index e99f63bc713..0782f0f4f16 100644 --- a/src/Generated/Applications/Delta/DeltaRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. + * Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. */ class DeltaRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php b/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php index 32c17978b10..1a11ebbccf2 100644 --- a/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php +++ b/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php @@ -200,7 +200,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API can also delete an agentIdentityBlueprint object by its ID. * @param ApplicationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -224,7 +224,7 @@ public function federatedIdentityCredentialsWithName(string $name): FederatedIde } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. * @param ApplicationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -239,7 +239,7 @@ public function get(?ApplicationItemRequestBuilderGetRequestConfiguration $reque } /** - * Create a new application object if it doesn't exist, or update the properties of an existing application object. + * Create a new application object if it doesn't exist, or update the properties of an existing application object. This API can also create an agentIdentityBlueprint object if it doesn't exist, or update properties of an existing agentIdentityBlueprint, when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -255,7 +255,7 @@ public function patch(Application $body, ?ApplicationItemRequestBuilderPatchRequ } /** - * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API can also delete an agentIdentityBlueprint object by its ID. * @param ApplicationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -273,7 +273,7 @@ public function toDeleteRequestInformation(?ApplicationItemRequestBuilderDeleteR } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. * @param ApplicationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -294,7 +294,7 @@ public function toGetRequestInformation(?ApplicationItemRequestBuilderGetRequest } /** - * Create a new application object if it doesn't exist, or update the properties of an existing application object. + * Create a new application object if it doesn't exist, or update the properties of an existing application object. This API can also create an agentIdentityBlueprint object if it doesn't exist, or update properties of an existing agentIdentityBlueprint, when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/ApplicationItemRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/ApplicationItemRequestBuilderGetQueryParameters.php index 80efee1e46d..f76a8deecce 100644 --- a/src/Generated/Applications/Item/ApplicationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/ApplicationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. */ class ApplicationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php b/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php index ba075e44994..43866f0c0bc 100644 --- a/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php +++ b/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php @@ -30,12 +30,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a key credential from an application. This method along with addKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. + * Remove a key credential from an agentIdentityBlueprint. This method along with addKey can be used to automate rolling its expiring keys. * @param RemoveKeyPostRequestBody $body The request body * @param RemoveKeyRequestBuilderPostRequestConfiguration|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/application-removekey?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/agentidentityblueprint-removekey?view=graph-rest-1.0 Find more info here */ public function post(RemoveKeyPostRequestBody $body, ?RemoveKeyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -46,7 +46,7 @@ public function post(RemoveKeyPostRequestBody $body, ?RemoveKeyRequestBuilderPos } /** - * Remove a key credential from an application. This method along with addKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. + * Remove a key credential from an agentIdentityBlueprint. This method along with addKey can be used to automate rolling its expiring keys. * @param RemoveKeyPostRequestBody $body The request body * @param RemoveKeyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php index 28b9406dc7e..a22ca6d32b3 100644 --- a/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php b/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php index 1d988176032..ab0bba7aee3 100644 --- a/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php +++ b/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php @@ -30,12 +30,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Set the verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. + * Set the the verifiedPublisher on an agentIdentityBlueprint. For more information, including prerequisites to setting a verified publisher, see Publisher verification. * @param SetVerifiedPublisherPostRequestBody $body The request body * @param SetVerifiedPublisherRequestBuilderPostRequestConfiguration|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/application-setverifiedpublisher?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/agentidentityblueprint-setverifiedpublisher?view=graph-rest-1.0 Find more info here */ public function post(SetVerifiedPublisherPostRequestBody $body, ?SetVerifiedPublisherRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -46,7 +46,7 @@ public function post(SetVerifiedPublisherPostRequestBody $body, ?SetVerifiedPubl } /** - * Set the verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. + * Set the the verifiedPublisher on an agentIdentityBlueprint. For more information, including prerequisites to setting a verified publisher, see Publisher verification. * @param SetVerifiedPublisherPostRequestBody $body The request body * @param SetVerifiedPublisherRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php b/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php index eb44a0b2354..63fc4bab534 100644 --- a/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php +++ b/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php @@ -30,11 +30,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Unset the verifiedPublisher previously set on an application, removing all verified publisher properties. For more information, see Publisher verification. + * Unset the verifiedPublisher previously set on an agentIdentityBlueprint, removing all verified publisher properties. For more information, see Publisher verification. * @param UnsetVerifiedPublisherRequestBuilderPostRequestConfiguration|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/application-unsetverifiedpublisher?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/agentidentityblueprint-unsetverifiedpublisher?view=graph-rest-1.0 Find more info here */ public function post(?UnsetVerifiedPublisherRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($requestConfiguration); @@ -45,7 +45,7 @@ public function post(?UnsetVerifiedPublisherRequestBuilderPostRequestConfigurati } /** - * Unset the verifiedPublisher previously set on an application, removing all verified publisher properties. For more information, see Publisher verification. + * Unset the verifiedPublisher previously set on an agentIdentityBlueprint, removing all verified publisher properties. For more information, see Publisher verification. * @param UnsetVerifiedPublisherRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php b/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php index 88dac72a5d0..4f0194a793d 100644 --- a/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php +++ b/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php @@ -34,7 +34,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API can also delete an agentIdentityBlueprint object by its ID. * @param ApplicationsWithAppIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -49,7 +49,7 @@ public function delete(?ApplicationsWithAppIdRequestBuilderDeleteRequestConfigur } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. * @param ApplicationsWithAppIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -64,7 +64,7 @@ public function get(?ApplicationsWithAppIdRequestBuilderGetRequestConfiguration } /** - * Create a new application object if it doesn't exist, or update the properties of an existing application object. + * Create a new application object if it doesn't exist, or update the properties of an existing application object. This API can also create an agentIdentityBlueprint object if it doesn't exist, or update properties of an existing agentIdentityBlueprint, when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationsWithAppIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -80,7 +80,7 @@ public function patch(Application $body, ?ApplicationsWithAppIdRequestBuilderPat } /** - * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API can also delete an agentIdentityBlueprint object by its ID. * @param ApplicationsWithAppIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -98,7 +98,7 @@ public function toDeleteRequestInformation(?ApplicationsWithAppIdRequestBuilderD } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. * @param ApplicationsWithAppIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -119,7 +119,7 @@ public function toGetRequestInformation(?ApplicationsWithAppIdRequestBuilderGetR } /** - * Create a new application object if it doesn't exist, or update the properties of an existing application object. + * Create a new application object if it doesn't exist, or update the properties of an existing application object. This API can also create an agentIdentityBlueprint object if it doesn't exist, or update properties of an existing agentIdentityBlueprint, when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationsWithAppIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilderGetQueryParameters.php b/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilderGetQueryParameters.php index 1bb9c47d15b..3be5d8a1d39 100644 --- a/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilderGetQueryParameters.php +++ b/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. */ class ApplicationsWithAppIdRequestBuilderGetQueryParameters { diff --git a/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilder.php b/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilder.php index 0f72b200a96..c1ebaf26c85 100644 --- a/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilder.php +++ b/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilder.php @@ -34,7 +34,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API can also delete an agentIdentityBlueprint object by its ID. * @param ApplicationsWithUniqueNameRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -49,7 +49,7 @@ public function delete(?ApplicationsWithUniqueNameRequestBuilderDeleteRequestCon } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. * @param ApplicationsWithUniqueNameRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -64,7 +64,7 @@ public function get(?ApplicationsWithUniqueNameRequestBuilderGetRequestConfigura } /** - * Create a new application object if it doesn't exist, or update the properties of an existing application object. + * Create a new application object if it doesn't exist, or update the properties of an existing application object. This API can also create an agentIdentityBlueprint object if it doesn't exist, or update properties of an existing agentIdentityBlueprint, when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationsWithUniqueNameRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -80,7 +80,7 @@ public function patch(Application $body, ?ApplicationsWithUniqueNameRequestBuild } /** - * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API can also delete an agentIdentityBlueprint object by its ID. * @param ApplicationsWithUniqueNameRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -98,7 +98,7 @@ public function toDeleteRequestInformation(?ApplicationsWithUniqueNameRequestBui } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. * @param ApplicationsWithUniqueNameRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -119,7 +119,7 @@ public function toGetRequestInformation(?ApplicationsWithUniqueNameRequestBuilde } /** - * Create a new application object if it doesn't exist, or update the properties of an existing application object. + * Create a new application object if it doesn't exist, or update the properties of an existing application object. This API can also create an agentIdentityBlueprint object if it doesn't exist, or update properties of an existing agentIdentityBlueprint, when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationsWithUniqueNameRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilderGetQueryParameters.php b/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilderGetQueryParameters.php index 9f7b2285c9b..e329f64d705 100644 --- a/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilderGetQueryParameters.php +++ b/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. */ class ApplicationsWithUniqueNameRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php index ded1b130c2b..3c20bb95137 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Chats\Item\Messages\Item\Replies\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Chats\Item\Messages\Item\Replies\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Chats\Item\Messages\Item\Replies\Item\ChatMessageItemRequestBuilder; +use Microsoft\Graph\Generated\Chats\Item\Messages\Item\Replies\ReplyWithQuote\ReplyWithQuoteRequestBuilder; use Microsoft\Graph\Generated\Models\ChatMessage; use Microsoft\Graph\Generated\Models\ChatMessageCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -34,6 +35,13 @@ public function delta(): DeltaRequestBuilder { return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the replyWithQuote method. + */ + public function replyWithQuote(): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. * @param string $chatMessageId1 The unique identifier of chatMessage diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php b/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php new file mode 100644 index 00000000000..d5fde632643 --- /dev/null +++ b/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php @@ -0,0 +1,147 @@ +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 ReplyWithQuotePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReplyWithQuotePostRequestBody { + return new ReplyWithQuotePostRequestBody(); + } + + /** + * 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 [ + 'messageIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setMessageIds($val); + }, + 'replyMessage' => fn(ParseNode $n) => $o->setReplyMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the messageIds property value. The messageIds property + * @return array|null + */ + public function getMessageIds(): ?array { + $val = $this->getBackingStore()->get('messageIds'); + 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 'messageIds'"); + } + + /** + * Gets the replyMessage property value. The replyMessage property + * @return ChatMessage|null + */ + public function getReplyMessage(): ?ChatMessage { + $val = $this->getBackingStore()->get('replyMessage'); + if (is_null($val) || $val instanceof ChatMessage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'replyMessage'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds()); + $writer->writeObjectValue('replyMessage', $this->getReplyMessage()); + $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 messageIds property value. The messageIds property + * @param array|null $value Value to set for the messageIds property. + */ + public function setMessageIds(?array $value): void { + $this->getBackingStore()->set('messageIds', $value); + } + + /** + * Sets the replyMessage property value. The replyMessage property + * @param ChatMessage|null $value Value to set for the replyMessage property. + */ + public function setReplyMessage(?ChatMessage $value): void { + $this->getBackingStore()->set('replyMessage', $value); + } + +} diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php new file mode 100644 index 00000000000..94ba01729b5 --- /dev/null +++ b/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.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}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/replyWithQuote'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|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/chatmessage-replywithquote?view=graph-rest-1.0 Find more info here + */ + public function post(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ChatMessage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $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 ReplyWithQuoteRequestBuilder + */ + public function withUrl(string $rawUrl): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php b/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..e71bb4c9d6a --- /dev/null +++ b/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.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/Chats/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php index fc210c496a2..d38bd6fec56 100644 --- a/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Chats\Item\Messages\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Chats\Item\Messages\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Chats\Item\Messages\Item\ChatMessageItemRequestBuilder; +use Microsoft\Graph\Generated\Chats\Item\Messages\ReplyWithQuote\ReplyWithQuoteRequestBuilder; use Microsoft\Graph\Generated\Models\ChatMessage; use Microsoft\Graph\Generated\Models\ChatMessageCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -34,6 +35,13 @@ public function delta(): DeltaRequestBuilder { return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the replyWithQuote method. + */ + public function replyWithQuote(): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the messages property of the microsoft.graph.chat entity. * @param string $chatMessageId The unique identifier of chatMessage diff --git a/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php b/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php new file mode 100644 index 00000000000..4757597597d --- /dev/null +++ b/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php @@ -0,0 +1,147 @@ +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 ReplyWithQuotePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReplyWithQuotePostRequestBody { + return new ReplyWithQuotePostRequestBody(); + } + + /** + * 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 [ + 'messageIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setMessageIds($val); + }, + 'replyMessage' => fn(ParseNode $n) => $o->setReplyMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the messageIds property value. The messageIds property + * @return array|null + */ + public function getMessageIds(): ?array { + $val = $this->getBackingStore()->get('messageIds'); + 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 'messageIds'"); + } + + /** + * Gets the replyMessage property value. The replyMessage property + * @return ChatMessage|null + */ + public function getReplyMessage(): ?ChatMessage { + $val = $this->getBackingStore()->get('replyMessage'); + if (is_null($val) || $val instanceof ChatMessage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'replyMessage'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds()); + $writer->writeObjectValue('replyMessage', $this->getReplyMessage()); + $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 messageIds property value. The messageIds property + * @param array|null $value Value to set for the messageIds property. + */ + public function setMessageIds(?array $value): void { + $this->getBackingStore()->set('messageIds', $value); + } + + /** + * Sets the replyMessage property value. The replyMessage property + * @param ChatMessage|null $value Value to set for the replyMessage property. + */ + public function setReplyMessage(?ChatMessage $value): void { + $this->getBackingStore()->set('replyMessage', $value); + } + +} diff --git a/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php b/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php new file mode 100644 index 00000000000..b2adb9fe719 --- /dev/null +++ b/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.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}/chats/{chat%2Did}/messages/replyWithQuote'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|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/chatmessage-replywithquote?view=graph-rest-1.0 Find more info here + */ + public function post(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ChatMessage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $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 ReplyWithQuoteRequestBuilder + */ + public function withUrl(string $rawUrl): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php b/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..400a63e011e --- /dev/null +++ b/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.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/Contacts/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php index 182c6c0fd89..0786bc86a0e 100644 --- a/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php b/src/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php index 29d6112893a..d55f73db7c7 100644 --- a/src/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php +++ b/src/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php @@ -30,10 +30,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Invoke action retryServiceProvisioning + * Retry the orgContact service provisioning. * @param RetryServiceProvisioningRequestBuilderPostRequestConfiguration|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/orgcontact-retryserviceprovisioning?view=graph-rest-1.0 Find more info here */ public function post(?RetryServiceProvisioningRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($requestConfiguration); @@ -44,7 +45,7 @@ public function post(?RetryServiceProvisioningRequestBuilderPostRequestConfigura } /** - * Invoke action retryServiceProvisioning + * Retry the orgContact service provisioning. * @param RetryServiceProvisioningRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php index 887ef16bbc9..d5b54ee7eea 100644 --- a/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php index 5e444678b4c..edb463178b1 100644 --- a/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php index 8276bffac10..cc03ced3d14 100644 --- a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php @@ -123,7 +123,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param DeletedItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -137,7 +137,7 @@ public function get(?DeletedItemsRequestBuilderGetRequestConfiguration $requestC } /** - * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param DeletedItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderGetQueryParameters.php b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderGetQueryParameters.php index 144f98a7b55..07be66ab291 100644 --- a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user */ class DeletedItemsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilder.php index d9242d62e62..19f7f19701f 100644 --- a/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilder.php @@ -39,7 +39,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param GraphGroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -54,7 +54,7 @@ public function get(?GraphGroupRequestBuilderGetRequestConfiguration $requestCon } /** - * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param GraphGroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php b/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php index d29ccc7f574..e03d135b47e 100644 --- a/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user */ class GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php index f2d0cbf3cdc..02c3c52c149 100644 --- a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php @@ -134,7 +134,7 @@ public function delete(?DirectoryObjectItemRequestBuilderDeleteRequestConfigurat } /** - * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -167,7 +167,7 @@ public function toDeleteRequestInformation(?DirectoryObjectItemRequestBuilderDel } /** - * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index 9c55b7ec951..cef7eca8f97 100644 --- a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.php index 5e6e2090347..6e1f1e1013b 100644 --- a/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param GraphGroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function get(?GraphGroupRequestBuilderGetRequestConfiguration $requestCon } /** - * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param GraphGroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php b/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php index 3ebc95ebebc..b89367a0fe0 100644 --- a/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user */ class GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php index 2348defacba..2491c10ba1c 100644 --- a/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php b/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php index 860cbda73d4..0ce4707ad03 100644 --- a/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php index 47b7836300d..61cb8c0f774 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php index 622731b5867..0a77ed77b04 100644 --- a/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php index 2ec83c7f3d8..25505ba4344 100644 --- a/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php index 7febbdb4051..c2995761b44 100644 --- a/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. * @param RestoreRequestBuilderPostRequestConfiguration|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/Item/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php index a96e91edc14..3a71af15adf 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Item\Replies\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Item\Replies\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Item\Replies\Item\ChatMessageItemRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Item\Replies\ReplyWithQuote\ReplyWithQuoteRequestBuilder; use Microsoft\Graph\Generated\Models\ChatMessage; use Microsoft\Graph\Generated\Models\ChatMessageCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -34,6 +35,13 @@ public function delta(): DeltaRequestBuilder { return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the replyWithQuote method. + */ + public function replyWithQuote(): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. * @param string $chatMessageId1 The unique identifier of chatMessage diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php new file mode 100644 index 00000000000..caef5eb8160 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php @@ -0,0 +1,147 @@ +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 ReplyWithQuotePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReplyWithQuotePostRequestBody { + return new ReplyWithQuotePostRequestBody(); + } + + /** + * 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 [ + 'messageIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setMessageIds($val); + }, + 'replyMessage' => fn(ParseNode $n) => $o->setReplyMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the messageIds property value. The messageIds property + * @return array|null + */ + public function getMessageIds(): ?array { + $val = $this->getBackingStore()->get('messageIds'); + 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 'messageIds'"); + } + + /** + * Gets the replyMessage property value. The replyMessage property + * @return ChatMessage|null + */ + public function getReplyMessage(): ?ChatMessage { + $val = $this->getBackingStore()->get('replyMessage'); + if (is_null($val) || $val instanceof ChatMessage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'replyMessage'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds()); + $writer->writeObjectValue('replyMessage', $this->getReplyMessage()); + $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 messageIds property value. The messageIds property + * @param array|null $value Value to set for the messageIds property. + */ + public function setMessageIds(?array $value): void { + $this->getBackingStore()->set('messageIds', $value); + } + + /** + * Sets the replyMessage property value. The replyMessage property + * @param ChatMessage|null $value Value to set for the replyMessage property. + */ + public function setReplyMessage(?ChatMessage $value): void { + $this->getBackingStore()->set('replyMessage', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php new file mode 100644 index 00000000000..5b141ff3eaa --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.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}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/replyWithQuote'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|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/chatmessage-replywithquote?view=graph-rest-1.0 Find more info here + */ + public function post(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ChatMessage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $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 ReplyWithQuoteRequestBuilder + */ + public function withUrl(string $rawUrl): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..f3cd3f48da0 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.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/Messages/MessagesRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php index fc9486248a3..cce700dda64 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Item\ChatMessageItemRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\ReplyWithQuote\ReplyWithQuoteRequestBuilder; use Microsoft\Graph\Generated\Models\ChatMessage; use Microsoft\Graph\Generated\Models\ChatMessageCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -34,6 +35,13 @@ public function delta(): DeltaRequestBuilder { return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the replyWithQuote method. + */ + public function replyWithQuote(): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the messages property of the microsoft.graph.channel entity. * @param string $chatMessageId The unique identifier of chatMessage diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php new file mode 100644 index 00000000000..e51b8d5c590 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php @@ -0,0 +1,147 @@ +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 ReplyWithQuotePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReplyWithQuotePostRequestBody { + return new ReplyWithQuotePostRequestBody(); + } + + /** + * 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 [ + 'messageIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setMessageIds($val); + }, + 'replyMessage' => fn(ParseNode $n) => $o->setReplyMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the messageIds property value. The messageIds property + * @return array|null + */ + public function getMessageIds(): ?array { + $val = $this->getBackingStore()->get('messageIds'); + 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 'messageIds'"); + } + + /** + * Gets the replyMessage property value. The replyMessage property + * @return ChatMessage|null + */ + public function getReplyMessage(): ?ChatMessage { + $val = $this->getBackingStore()->get('replyMessage'); + if (is_null($val) || $val instanceof ChatMessage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'replyMessage'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds()); + $writer->writeObjectValue('replyMessage', $this->getReplyMessage()); + $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 messageIds property value. The messageIds property + * @param array|null $value Value to set for the messageIds property. + */ + public function setMessageIds(?array $value): void { + $this->getBackingStore()->set('messageIds', $value); + } + + /** + * Sets the replyMessage property value. The replyMessage property + * @param ChatMessage|null $value Value to set for the replyMessage property. + */ + public function setReplyMessage(?ChatMessage $value): void { + $this->getBackingStore()->set('replyMessage', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php new file mode 100644 index 00000000000..97f1714ad4d --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.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}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/replyWithQuote'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|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/chatmessage-replywithquote?view=graph-rest-1.0 Find more info here + */ + public function post(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ChatMessage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $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 ReplyWithQuoteRequestBuilder + */ + public function withUrl(string $rawUrl): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..85fc348d327 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.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/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php index a56285f2149..a7c4d60140c 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Item\Replies\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Item\Replies\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Item\Replies\Item\ChatMessageItemRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Item\Replies\ReplyWithQuote\ReplyWithQuoteRequestBuilder; use Microsoft\Graph\Generated\Models\ChatMessage; use Microsoft\Graph\Generated\Models\ChatMessageCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -34,6 +35,13 @@ public function delta(): DeltaRequestBuilder { return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the replyWithQuote method. + */ + public function replyWithQuote(): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. * @param string $chatMessageId1 The unique identifier of chatMessage diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php new file mode 100644 index 00000000000..00529de2129 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php @@ -0,0 +1,147 @@ +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 ReplyWithQuotePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReplyWithQuotePostRequestBody { + return new ReplyWithQuotePostRequestBody(); + } + + /** + * 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 [ + 'messageIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setMessageIds($val); + }, + 'replyMessage' => fn(ParseNode $n) => $o->setReplyMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the messageIds property value. The messageIds property + * @return array|null + */ + public function getMessageIds(): ?array { + $val = $this->getBackingStore()->get('messageIds'); + 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 'messageIds'"); + } + + /** + * Gets the replyMessage property value. The replyMessage property + * @return ChatMessage|null + */ + public function getReplyMessage(): ?ChatMessage { + $val = $this->getBackingStore()->get('replyMessage'); + if (is_null($val) || $val instanceof ChatMessage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'replyMessage'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds()); + $writer->writeObjectValue('replyMessage', $this->getReplyMessage()); + $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 messageIds property value. The messageIds property + * @param array|null $value Value to set for the messageIds property. + */ + public function setMessageIds(?array $value): void { + $this->getBackingStore()->set('messageIds', $value); + } + + /** + * Sets the replyMessage property value. The replyMessage property + * @param ChatMessage|null $value Value to set for the replyMessage property. + */ + public function setReplyMessage(?ChatMessage $value): void { + $this->getBackingStore()->set('replyMessage', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php new file mode 100644 index 00000000000..8b08049f7d7 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.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}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/replyWithQuote'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|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/chatmessage-replywithquote?view=graph-rest-1.0 Find more info here + */ + public function post(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ChatMessage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $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 ReplyWithQuoteRequestBuilder + */ + public function withUrl(string $rawUrl): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..dcaa474254e --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.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/Messages/MessagesRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php index 5dbf63d3419..3935340bc83 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Item\ChatMessageItemRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\ReplyWithQuote\ReplyWithQuoteRequestBuilder; use Microsoft\Graph\Generated\Models\ChatMessage; use Microsoft\Graph\Generated\Models\ChatMessageCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -34,6 +35,13 @@ public function delta(): DeltaRequestBuilder { return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the replyWithQuote method. + */ + public function replyWithQuote(): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the messages property of the microsoft.graph.channel entity. * @param string $chatMessageId The unique identifier of chatMessage diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php new file mode 100644 index 00000000000..72e302269ac --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php @@ -0,0 +1,147 @@ +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 ReplyWithQuotePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReplyWithQuotePostRequestBody { + return new ReplyWithQuotePostRequestBody(); + } + + /** + * 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 [ + 'messageIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setMessageIds($val); + }, + 'replyMessage' => fn(ParseNode $n) => $o->setReplyMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the messageIds property value. The messageIds property + * @return array|null + */ + public function getMessageIds(): ?array { + $val = $this->getBackingStore()->get('messageIds'); + 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 'messageIds'"); + } + + /** + * Gets the replyMessage property value. The replyMessage property + * @return ChatMessage|null + */ + public function getReplyMessage(): ?ChatMessage { + $val = $this->getBackingStore()->get('replyMessage'); + if (is_null($val) || $val instanceof ChatMessage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'replyMessage'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds()); + $writer->writeObjectValue('replyMessage', $this->getReplyMessage()); + $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 messageIds property value. The messageIds property + * @param array|null $value Value to set for the messageIds property. + */ + public function setMessageIds(?array $value): void { + $this->getBackingStore()->set('messageIds', $value); + } + + /** + * Sets the replyMessage property value. The replyMessage property + * @param ChatMessage|null $value Value to set for the replyMessage property. + */ + public function setReplyMessage(?ChatMessage $value): void { + $this->getBackingStore()->set('replyMessage', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php new file mode 100644 index 00000000000..9fcf654d0ed --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.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}/groups/{group%2Did}/team/primaryChannel/messages/replyWithQuote'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|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/chatmessage-replywithquote?view=graph-rest-1.0 Find more info here + */ + public function post(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ChatMessage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $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 ReplyWithQuoteRequestBuilder + */ + public function withUrl(string $rawUrl): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..75146bec4d0 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.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/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php index 5c6f844cdbe..b47e6304533 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Access package containing this policy. Read-only. Supports $expand. + * Access package containing this policy. Read-only. Supports $expand. * @param AccessPackageRequestBuilderGetRequestConfiguration|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(?AccessPackageRequestBuilderGetRequestConfiguration $request } /** - * Access package containing this policy. Read-only. Supports $expand. + * Access package containing this policy. Read-only. Supports $expand. * @param AccessPackageRequestBuilderGetRequestConfiguration|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/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php index 601b4fdb867..31d55fa7a0c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Access package containing this policy. Read-only. Supports $expand. + * Access package containing this policy. Read-only. Supports $expand. */ class AccessPackageRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php index fc802b3b229..9b4fe9e9c54 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Access package containing this policy. Read-only. Supports $expand. + * Access package containing this policy. Read-only. Supports $expand. * @param AccessPackageRequestBuilderGetRequestConfiguration|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(?AccessPackageRequestBuilderGetRequestConfiguration $request } /** - * Access package containing this policy. Read-only. Supports $expand. + * Access package containing this policy. Read-only. Supports $expand. * @param AccessPackageRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php index e4df5193042..0f92b34f0ad 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Access package containing this policy. Read-only. Supports $expand. + * Access package containing this policy. Read-only. Supports $expand. */ class AccessPackageRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php index a3cd42a23c4..beec522f144 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php @@ -51,7 +51,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -65,7 +65,7 @@ public function get(?AdministrationScopeTargetsRequestBuilderGetRequestConfigura } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php index 9aa78568662..971e95018c9 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class AdministrationScopeTargetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php index 6494416a2fd..64692e35710 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|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(?DirectoryObjectItemRequestBuilderGetRequestConfiguration $r } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index 8fb59833d32..c8ac07210c2 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php index 908527ed8c4..87fd8d31a1f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php @@ -51,7 +51,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -65,7 +65,7 @@ public function get(?AdministrationScopeTargetsRequestBuilderGetRequestConfigura } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php index 8b0a09a0286..50be7446d03 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class AdministrationScopeTargetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php index c31f9a960c6..90aa6670e8f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|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(?DirectoryObjectItemRequestBuilderGetRequestConfiguration $r } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index c3f068094f6..649db5d7aa9 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php index 0757a690053..3bc831c5cf0 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php @@ -51,7 +51,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -65,7 +65,7 @@ public function get(?AdministrationScopeTargetsRequestBuilderGetRequestConfigura } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php index d3e0a837d96..374fb9a23d1 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class AdministrationScopeTargetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php index a48bb7e7253..7b20cd6719f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|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(?DirectoryObjectItemRequestBuilderGetRequestConfiguration $r } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index 12e6e0405b8..f1eaa901b63 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php index c3027fcd04e..daad9434fa2 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php @@ -51,7 +51,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -65,7 +65,7 @@ public function get(?AdministrationScopeTargetsRequestBuilderGetRequestConfigura } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php index 0e13d0c0e22..ecc5ba2c5ca 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class AdministrationScopeTargetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php index 186f59fa974..6522ec3ddfc 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|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(?DirectoryObjectItemRequestBuilderGetRequestConfiguration $r } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index 6774ae498fd..40cb9ca5d45 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Models/AccessPackageAssignmentPolicy.php b/src/Generated/Models/AccessPackageAssignmentPolicy.php index 9880b9cad84..76e124ae91e 100644 --- a/src/Generated/Models/AccessPackageAssignmentPolicy.php +++ b/src/Generated/Models/AccessPackageAssignmentPolicy.php @@ -27,7 +27,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Acces } /** - * Gets the accessPackage property value. Access package containing this policy. Read-only. Supports $expand. + * Gets the accessPackage property value. Access package containing this policy. Read-only. Supports $expand. * @return AccessPackage|null */ public function getAccessPackage(): ?AccessPackage { @@ -39,7 +39,7 @@ public function getAccessPackage(): ?AccessPackage { } /** - * Gets the allowedTargetScope property value. Principals that can be assigned the access package through this policy. The possible values are: notSpecified, specificDirectoryUsers, specificConnectedOrganizationUsers, specificDirectoryServicePrincipals, allMemberUsers, allDirectoryUsers, allDirectoryServicePrincipals, allConfiguredConnectedOrganizationUsers, allExternalUsers, unknownFutureValue. + * Gets the allowedTargetScope property value. Principals that can be assigned the access package through this policy. The possible values are: notSpecified, specificDirectoryUsers, specificConnectedOrganizationUsers, specificDirectoryServicePrincipals, allMemberUsers, allDirectoryUsers, allDirectoryServicePrincipals, allConfiguredConnectedOrganizationUsers, allExternalUsers, allDirectoryAgentIdentities, unknownFutureValue. * @return AllowedTargetScope|null */ public function getAllowedTargetScope(): ?AllowedTargetScope { @@ -275,7 +275,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the accessPackage property value. Access package containing this policy. Read-only. Supports $expand. + * Sets the accessPackage property value. Access package containing this policy. Read-only. Supports $expand. * @param AccessPackage|null $value Value to set for the accessPackage property. */ public function setAccessPackage(?AccessPackage $value): void { @@ -283,7 +283,7 @@ public function setAccessPackage(?AccessPackage $value): void { } /** - * Sets the allowedTargetScope property value. Principals that can be assigned the access package through this policy. The possible values are: notSpecified, specificDirectoryUsers, specificConnectedOrganizationUsers, specificDirectoryServicePrincipals, allMemberUsers, allDirectoryUsers, allDirectoryServicePrincipals, allConfiguredConnectedOrganizationUsers, allExternalUsers, unknownFutureValue. + * Sets the allowedTargetScope property value. Principals that can be assigned the access package through this policy. The possible values are: notSpecified, specificDirectoryUsers, specificConnectedOrganizationUsers, specificDirectoryServicePrincipals, allMemberUsers, allDirectoryUsers, allDirectoryServicePrincipals, allConfiguredConnectedOrganizationUsers, allExternalUsers, allDirectoryAgentIdentities, unknownFutureValue. * @param AllowedTargetScope|null $value Value to set for the allowedTargetScope property. */ public function setAllowedTargetScope(?AllowedTargetScope $value): void { diff --git a/src/Generated/Models/Admin.php b/src/Generated/Models/Admin.php index 035aed04deb..5b54febed91 100644 --- a/src/Generated/Models/Admin.php +++ b/src/Generated/Models/Admin.php @@ -172,7 +172,7 @@ public function getSharepoint(): ?Sharepoint { } /** - * Gets the teams property value. A container for Teams administration functionalities, such as user configurations and policy assignments. + * Gets the teams property value. A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. * @return TeamsAdminRoot|null */ public function getTeams(): ?TeamsAdminRoot { @@ -281,7 +281,7 @@ public function setSharepoint(?Sharepoint $value): void { } /** - * Sets the teams property value. A container for Teams administration functionalities, such as user configurations and policy assignments. + * Sets the teams property value. A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. * @param TeamsAdminRoot|null $value Value to set for the teams property. */ public function setTeams(?TeamsAdminRoot $value): void { diff --git a/src/Generated/Models/AgentIdentity.php b/src/Generated/Models/AgentIdentity.php new file mode 100644 index 00000000000..f300bafd874 --- /dev/null +++ b/src/Generated/Models/AgentIdentity.php @@ -0,0 +1,138 @@ +setOdataType('#microsoft.graph.agentIdentity'); + } + + /** + * 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 AgentIdentity + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AgentIdentity { + return new AgentIdentity(); + } + + /** + * Gets the agentIdentityBlueprintId property value. The appId of the agent identity blueprint that defines the configuration for this agent identity. + * @return string|null + */ + public function getAgentIdentityBlueprintId(): ?string { + $val = $this->getBackingStore()->get('agentIdentityBlueprintId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'agentIdentityBlueprintId'"); + } + + /** + * Gets the createdByAppId property value. The appId of the application that created this agent identity. Set internally by Microsoft Entra ID. Read-only. Inherited from servicePrincipal. + * @return string|null + */ + public function getCreatedByAppId(): ?string { + $val = $this->getBackingStore()->get('createdByAppId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdByAppId'"); + } + + /** + * Gets the createdDateTime property value. The date and time the agent identity was created. Read-only. Inherited from servicePrincipal. + * @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'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'agentIdentityBlueprintId' => fn(ParseNode $n) => $o->setAgentIdentityBlueprintId($n->getStringValue()), + 'createdByAppId' => fn(ParseNode $n) => $o->setCreatedByAppId($n->getStringValue()), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), + 'sponsors' => fn(ParseNode $n) => $o->setSponsors($n->getCollectionOfObjectValues([DirectoryObject::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the sponsors property value. The sponsors for this agent identity. + * @return array|null + */ + public function getSponsors(): ?array { + $val = $this->getBackingStore()->get('sponsors'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, DirectoryObject::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'sponsors'"); + } + + /** + * 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('agentIdentityBlueprintId', $this->getAgentIdentityBlueprintId()); + $writer->writeStringValue('createdByAppId', $this->getCreatedByAppId()); + $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); + $writer->writeCollectionOfObjectValues('sponsors', $this->getSponsors()); + } + + /** + * Sets the agentIdentityBlueprintId property value. The appId of the agent identity blueprint that defines the configuration for this agent identity. + * @param string|null $value Value to set for the agentIdentityBlueprintId property. + */ + public function setAgentIdentityBlueprintId(?string $value): void { + $this->getBackingStore()->set('agentIdentityBlueprintId', $value); + } + + /** + * Sets the createdByAppId property value. The appId of the application that created this agent identity. Set internally by Microsoft Entra ID. Read-only. Inherited from servicePrincipal. + * @param string|null $value Value to set for the createdByAppId property. + */ + public function setCreatedByAppId(?string $value): void { + $this->getBackingStore()->set('createdByAppId', $value); + } + + /** + * Sets the createdDateTime property value. The date and time the agent identity was created. Read-only. Inherited from servicePrincipal. + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + + /** + * Sets the sponsors property value. The sponsors for this agent identity. + * @param array|null $value Value to set for the sponsors property. + */ + public function setSponsors(?array $value): void { + $this->getBackingStore()->set('sponsors', $value); + } + +} diff --git a/src/Generated/Models/AgentIdentityBlueprint.php b/src/Generated/Models/AgentIdentityBlueprint.php new file mode 100644 index 00000000000..ddd01623269 --- /dev/null +++ b/src/Generated/Models/AgentIdentityBlueprint.php @@ -0,0 +1,117 @@ +setOdataType('#microsoft.graph.agentIdentityBlueprint'); + } + + /** + * 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 AgentIdentityBlueprint + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AgentIdentityBlueprint { + return new AgentIdentityBlueprint(); + } + + /** + * Gets the createdByAppId property value. The appId of the application that created this agent identity blueprint. Set internally by Microsoft Entra ID. Read-only. Inherited from application. + * @return string|null + */ + public function getCreatedByAppId(): ?string { + $val = $this->getBackingStore()->get('createdByAppId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdByAppId'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'createdByAppId' => fn(ParseNode $n) => $o->setCreatedByAppId($n->getStringValue()), + 'inheritablePermissions' => fn(ParseNode $n) => $o->setInheritablePermissions($n->getCollectionOfObjectValues([InheritablePermission::class, 'createFromDiscriminatorValue'])), + 'sponsors' => fn(ParseNode $n) => $o->setSponsors($n->getCollectionOfObjectValues([DirectoryObject::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the inheritablePermissions property value. Defines scopes of a resource application that may be automatically granted to agent identities without additional consent. + * @return array|null + */ + public function getInheritablePermissions(): ?array { + $val = $this->getBackingStore()->get('inheritablePermissions'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, InheritablePermission::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'inheritablePermissions'"); + } + + /** + * Gets the sponsors property value. The sponsors for this agent identity blueprint. Sponsors are users or groups who can authorize and manage the lifecycle of agent identity instances. Required during the create operation. + * @return array|null + */ + public function getSponsors(): ?array { + $val = $this->getBackingStore()->get('sponsors'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, DirectoryObject::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'sponsors'"); + } + + /** + * 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('createdByAppId', $this->getCreatedByAppId()); + $writer->writeCollectionOfObjectValues('inheritablePermissions', $this->getInheritablePermissions()); + $writer->writeCollectionOfObjectValues('sponsors', $this->getSponsors()); + } + + /** + * Sets the createdByAppId property value. The appId of the application that created this agent identity blueprint. Set internally by Microsoft Entra ID. Read-only. Inherited from application. + * @param string|null $value Value to set for the createdByAppId property. + */ + public function setCreatedByAppId(?string $value): void { + $this->getBackingStore()->set('createdByAppId', $value); + } + + /** + * Sets the inheritablePermissions property value. Defines scopes of a resource application that may be automatically granted to agent identities without additional consent. + * @param array|null $value Value to set for the inheritablePermissions property. + */ + public function setInheritablePermissions(?array $value): void { + $this->getBackingStore()->set('inheritablePermissions', $value); + } + + /** + * Sets the sponsors property value. The sponsors for this agent identity blueprint. Sponsors are users or groups who can authorize and manage the lifecycle of agent identity instances. Required during the create operation. + * @param array|null $value Value to set for the sponsors property. + */ + public function setSponsors(?array $value): void { + $this->getBackingStore()->set('sponsors', $value); + } + +} diff --git a/src/Generated/Models/AgentIdentityBlueprintPrincipal.php b/src/Generated/Models/AgentIdentityBlueprintPrincipal.php new file mode 100644 index 00000000000..73e03b5448d --- /dev/null +++ b/src/Generated/Models/AgentIdentityBlueprintPrincipal.php @@ -0,0 +1,93 @@ +setOdataType('#microsoft.graph.agentIdentityBlueprintPrincipal'); + } + + /** + * 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 AgentIdentityBlueprintPrincipal + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AgentIdentityBlueprintPrincipal { + return new AgentIdentityBlueprintPrincipal(); + } + + /** + * Gets the createdByAppId property value. The appId of the application that created this agent identity blueprint principal. Set internally by Microsoft Entra ID. Read-only. Inherited from servicePrincipal. + * @return string|null + */ + public function getCreatedByAppId(): ?string { + $val = $this->getBackingStore()->get('createdByAppId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdByAppId'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'createdByAppId' => fn(ParseNode $n) => $o->setCreatedByAppId($n->getStringValue()), + 'sponsors' => fn(ParseNode $n) => $o->setSponsors($n->getCollectionOfObjectValues([DirectoryObject::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the sponsors property value. The sponsors for this agent identity blueprint principal. Sponsors are users or service principals who can authorize and manage the lifecycle of agent identity instances. + * @return array|null + */ + public function getSponsors(): ?array { + $val = $this->getBackingStore()->get('sponsors'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, DirectoryObject::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'sponsors'"); + } + + /** + * 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('createdByAppId', $this->getCreatedByAppId()); + $writer->writeCollectionOfObjectValues('sponsors', $this->getSponsors()); + } + + /** + * Sets the createdByAppId property value. The appId of the application that created this agent identity blueprint principal. Set internally by Microsoft Entra ID. Read-only. Inherited from servicePrincipal. + * @param string|null $value Value to set for the createdByAppId property. + */ + public function setCreatedByAppId(?string $value): void { + $this->getBackingStore()->set('createdByAppId', $value); + } + + /** + * Sets the sponsors property value. The sponsors for this agent identity blueprint principal. Sponsors are users or service principals who can authorize and manage the lifecycle of agent identity instances. + * @param array|null $value Value to set for the sponsors property. + */ + public function setSponsors(?array $value): void { + $this->getBackingStore()->set('sponsors', $value); + } + +} diff --git a/src/Generated/Models/AgentUser.php b/src/Generated/Models/AgentUser.php new file mode 100644 index 00000000000..d1c689b92bf --- /dev/null +++ b/src/Generated/Models/AgentUser.php @@ -0,0 +1,49 @@ +setOdataType('#microsoft.graph.agentUser'); + } + + /** + * 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 AgentUser + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AgentUser { + return new AgentUser(); + } + + /** + * 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/Alert.php b/src/Generated/Models/Alert.php index 9b323b59f0d..2cef9ac7311 100644 --- a/src/Generated/Models/Alert.php +++ b/src/Generated/Models/Alert.php @@ -203,7 +203,7 @@ public function getEventDateTime(): ?DateTime { } /** - * Gets the feedback property value. Analyst feedback on the alert. The possible values are: unknown, truePositive, falsePositive, benignPositive. Supports update. + * Gets the feedback property value. Analyst feedback on the alert. The possible values are: unknown, truePositive, falsePositive, benignPositive. Updatable. * @return AlertFeedback|null */ public function getFeedback(): ?AlertFeedback { @@ -306,7 +306,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the fileStates property value. Security-related stateful information generated by the provider about the file(s) related to this alert. + * Gets the fileStates property value. Security-related stateful information generated by the provider about the files related to this alert. * @return array|null */ public function getFileStates(): ?array { @@ -334,7 +334,7 @@ public function getHistoryStates(): ?array { } /** - * Gets the hostStates property value. Security-related stateful information generated by the provider about the host(s) related to this alert. + * Gets the hostStates property value. Security-related stateful information generated by the provider about the hosts related to this alert. * @return array|null */ public function getHostStates(): ?array { @@ -428,7 +428,7 @@ public function getMessageSecurityStates(): ?array { } /** - * Gets the networkConnections property value. Security-related stateful information generated by the provider about the network connection(s) related to this alert. + * Gets the networkConnections property value. Security-related stateful information generated by the provider about the network connections related to this alert. * @return array|null */ public function getNetworkConnections(): ?array { @@ -456,7 +456,7 @@ public function getProcesses(): ?array { } /** - * Gets the recommendedActions property value. Vendor/provider recommended action(s) to take as a result of the alert (for example, isolate machine, enforce2FA, reimage host). + * Gets the recommendedActions property value. Vendor/provider recommended actions to take as a result of the alert (for example, isolate machine, enforce2FA, reimage host). * @return array|null */ public function getRecommendedActions(): ?array { @@ -536,7 +536,7 @@ public function getStatus(): ?AlertStatus { } /** - * Gets the tags property value. User-definable labels that can be applied to an alert and can serve as filter conditions (for example 'HVA', 'SAW') (supports update). + * Gets the tags property value. User-definable labels that can be applied to an alert and can serve as filter conditions (for example, 'HVA', 'SAW') (supports update). * @return array|null */ public function getTags(): ?array { @@ -789,7 +789,7 @@ public function setEventDateTime(?DateTime $value): void { } /** - * Sets the feedback property value. Analyst feedback on the alert. The possible values are: unknown, truePositive, falsePositive, benignPositive. Supports update. + * Sets the feedback property value. Analyst feedback on the alert. The possible values are: unknown, truePositive, falsePositive, benignPositive. Updatable. * @param AlertFeedback|null $value Value to set for the feedback property. */ public function setFeedback(?AlertFeedback $value): void { @@ -797,7 +797,7 @@ public function setFeedback(?AlertFeedback $value): void { } /** - * Sets the fileStates property value. Security-related stateful information generated by the provider about the file(s) related to this alert. + * Sets the fileStates property value. Security-related stateful information generated by the provider about the files related to this alert. * @param array|null $value Value to set for the fileStates property. */ public function setFileStates(?array $value): void { @@ -813,7 +813,7 @@ public function setHistoryStates(?array $value): void { } /** - * Sets the hostStates property value. Security-related stateful information generated by the provider about the host(s) related to this alert. + * Sets the hostStates property value. Security-related stateful information generated by the provider about the hosts related to this alert. * @param array|null $value Value to set for the hostStates property. */ public function setHostStates(?array $value): void { @@ -869,7 +869,7 @@ public function setMessageSecurityStates(?array $value): void { } /** - * Sets the networkConnections property value. Security-related stateful information generated by the provider about the network connection(s) related to this alert. + * Sets the networkConnections property value. Security-related stateful information generated by the provider about the network connections related to this alert. * @param array|null $value Value to set for the networkConnections property. */ public function setNetworkConnections(?array $value): void { @@ -885,7 +885,7 @@ public function setProcesses(?array $value): void { } /** - * Sets the recommendedActions property value. Vendor/provider recommended action(s) to take as a result of the alert (for example, isolate machine, enforce2FA, reimage host). + * Sets the recommendedActions property value. Vendor/provider recommended actions to take as a result of the alert (for example, isolate machine, enforce2FA, reimage host). * @param array|null $value Value to set for the recommendedActions property. */ public function setRecommendedActions(?array $value): void { @@ -933,7 +933,7 @@ public function setStatus(?AlertStatus $value): void { } /** - * Sets the tags property value. User-definable labels that can be applied to an alert and can serve as filter conditions (for example 'HVA', 'SAW') (supports update). + * Sets the tags property value. User-definable labels that can be applied to an alert and can serve as filter conditions (for example, 'HVA', 'SAW') (supports update). * @param array|null $value Value to set for the tags property. */ public function setTags(?array $value): void { diff --git a/src/Generated/Models/AllAllowedScopes.php b/src/Generated/Models/AllAllowedScopes.php new file mode 100644 index 00000000000..033f1a33fc5 --- /dev/null +++ b/src/Generated/Models/AllAllowedScopes.php @@ -0,0 +1,46 @@ +setOdataType('#microsoft.graph.allAllowedScopes'); + } + + /** + * 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 AllAllowedScopes + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AllAllowedScopes { + return new AllAllowedScopes(); + } + + /** + * 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 3bf2895de7a..59c2bfe6912 100644 --- a/src/Generated/Models/Application.php +++ b/src/Generated/Models/Application.php @@ -25,6 +25,13 @@ public function __construct() { * @return Application */ public static function createFromDiscriminatorValue(ParseNode $parseNode): Application { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.agentIdentityBlueprint': return new AgentIdentityBlueprint(); + } + } return new Application(); } diff --git a/src/Generated/Models/Authentication.php b/src/Generated/Models/Authentication.php index 688b28949be..f7978c0d54f 100644 --- a/src/Generated/Models/Authentication.php +++ b/src/Generated/Models/Authentication.php @@ -40,7 +40,7 @@ public function getEmailMethods(): ?array { } /** - * Gets the externalAuthenticationMethods property value. Represents the external authentication methods registered to a user for authentication using an external identity provider. + * Gets the externalAuthenticationMethods property value. Represents the external MFA registered to a user for authentication using an external identity provider. * @return array|null */ public function getExternalAuthenticationMethods(): ?array { @@ -244,7 +244,7 @@ public function setEmailMethods(?array $value): void { } /** - * Sets the externalAuthenticationMethods property value. Represents the external authentication methods registered to a user for authentication using an external identity provider. + * Sets the externalAuthenticationMethods property value. Represents the external MFA registered to a user for authentication using an external identity provider. * @param array|null $value Value to set for the externalAuthenticationMethods property. */ public function setExternalAuthenticationMethods(?array $value): void { diff --git a/src/Generated/Models/AuthenticationMethod.php b/src/Generated/Models/AuthenticationMethod.php index c5bd4f0bdb4..a57d830e6b8 100644 --- a/src/Generated/Models/AuthenticationMethod.php +++ b/src/Generated/Models/AuthenticationMethod.php @@ -33,6 +33,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Authe case '#microsoft.graph.passwordAuthenticationMethod': return new PasswordAuthenticationMethod(); case '#microsoft.graph.phoneAuthenticationMethod': return new PhoneAuthenticationMethod(); case '#microsoft.graph.platformCredentialAuthenticationMethod': return new PlatformCredentialAuthenticationMethod(); + case '#microsoft.graph.qrCodePinAuthenticationMethod': return new QrCodePinAuthenticationMethod(); case '#microsoft.graph.softwareOathAuthenticationMethod': return new SoftwareOathAuthenticationMethod(); case '#microsoft.graph.temporaryAccessPassAuthenticationMethod': return new TemporaryAccessPassAuthenticationMethod(); case '#microsoft.graph.windowsHelloForBusinessAuthenticationMethod': return new WindowsHelloForBusinessAuthenticationMethod(); diff --git a/src/Generated/Models/AuthenticationMethodConfiguration.php b/src/Generated/Models/AuthenticationMethodConfiguration.php index 18e5cde97f4..9292c9bcf6b 100644 --- a/src/Generated/Models/AuthenticationMethodConfiguration.php +++ b/src/Generated/Models/AuthenticationMethodConfiguration.php @@ -30,6 +30,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Authe case '#microsoft.graph.externalAuthenticationMethodConfiguration': return new ExternalAuthenticationMethodConfiguration(); case '#microsoft.graph.fido2AuthenticationMethodConfiguration': return new Fido2AuthenticationMethodConfiguration(); case '#microsoft.graph.microsoftAuthenticatorAuthenticationMethodConfiguration': return new MicrosoftAuthenticatorAuthenticationMethodConfiguration(); + case '#microsoft.graph.qrCodePinAuthenticationMethodConfiguration': return new QrCodePinAuthenticationMethodConfiguration(); case '#microsoft.graph.smsAuthenticationMethodConfiguration': return new SmsAuthenticationMethodConfiguration(); case '#microsoft.graph.softwareOathAuthenticationMethodConfiguration': return new SoftwareOathAuthenticationMethodConfiguration(); case '#microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration': return new TemporaryAccessPassAuthenticationMethodConfiguration(); diff --git a/src/Generated/Models/AuthenticationMethodModes.php b/src/Generated/Models/AuthenticationMethodModes.php index 66684b06182..185217f9875 100644 --- a/src/Generated/Models/AuthenticationMethodModes.php +++ b/src/Generated/Models/AuthenticationMethodModes.php @@ -22,4 +22,5 @@ class AuthenticationMethodModes extends Enum { public const FEDERATED_SINGLE_FACTOR = "federatedSingleFactor"; public const FEDERATED_MULTI_FACTOR = "federatedMultiFactor"; public const UNKNOWN_FUTURE_VALUE = "unknownFutureValue"; + public const QR_CODE_PIN = "qrCodePin"; } diff --git a/src/Generated/Models/BaseAuthenticationMethod.php b/src/Generated/Models/BaseAuthenticationMethod.php index 03d41e915f3..a1a01e67abb 100644 --- a/src/Generated/Models/BaseAuthenticationMethod.php +++ b/src/Generated/Models/BaseAuthenticationMethod.php @@ -18,4 +18,5 @@ class BaseAuthenticationMethod extends Enum { public const X509_CERTIFICATE = "x509Certificate"; public const FEDERATION = "federation"; public const UNKNOWN_FUTURE_VALUE = "unknownFutureValue"; + public const QR_CODE_PIN = "qrCodePin"; } diff --git a/src/Generated/Models/Contact.php b/src/Generated/Models/Contact.php index 60f9b86d709..68478e1f313 100644 --- a/src/Generated/Models/Contact.php +++ b/src/Generated/Models/Contact.php @@ -231,10 +231,13 @@ public function getFieldDeserializers(): array { 'parentFolderId' => fn(ParseNode $n) => $o->setParentFolderId($n->getStringValue()), 'personalNotes' => fn(ParseNode $n) => $o->setPersonalNotes($n->getStringValue()), 'photo' => fn(ParseNode $n) => $o->setPhoto($n->getObjectValue([ProfilePhoto::class, 'createFromDiscriminatorValue'])), + 'primaryEmailAddress' => fn(ParseNode $n) => $o->setPrimaryEmailAddress($n->getObjectValue([EmailAddress::class, 'createFromDiscriminatorValue'])), 'profession' => fn(ParseNode $n) => $o->setProfession($n->getStringValue()), + 'secondaryEmailAddress' => fn(ParseNode $n) => $o->setSecondaryEmailAddress($n->getObjectValue([EmailAddress::class, 'createFromDiscriminatorValue'])), 'singleValueExtendedProperties' => fn(ParseNode $n) => $o->setSingleValueExtendedProperties($n->getCollectionOfObjectValues([SingleValueLegacyExtendedProperty::class, 'createFromDiscriminatorValue'])), 'spouseName' => fn(ParseNode $n) => $o->setSpouseName($n->getStringValue()), 'surname' => fn(ParseNode $n) => $o->setSurname($n->getStringValue()), + 'tertiaryEmailAddress' => fn(ParseNode $n) => $o->setTertiaryEmailAddress($n->getObjectValue([EmailAddress::class, 'createFromDiscriminatorValue'])), 'title' => fn(ParseNode $n) => $o->setTitle($n->getStringValue()), 'yomiCompanyName' => fn(ParseNode $n) => $o->setYomiCompanyName($n->getStringValue()), 'yomiGivenName' => fn(ParseNode $n) => $o->setYomiGivenName($n->getStringValue()), @@ -464,6 +467,18 @@ public function getPhoto(): ?ProfilePhoto { throw new \UnexpectedValueException("Invalid type found in backing store for 'photo'"); } + /** + * Gets the primaryEmailAddress property value. The contact's primary email address. + * @return EmailAddress|null + */ + public function getPrimaryEmailAddress(): ?EmailAddress { + $val = $this->getBackingStore()->get('primaryEmailAddress'); + if (is_null($val) || $val instanceof EmailAddress) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'primaryEmailAddress'"); + } + /** * Gets the profession property value. The contact's profession. * @return string|null @@ -476,6 +491,18 @@ public function getProfession(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'profession'"); } + /** + * Gets the secondaryEmailAddress property value. The contact's secondary email address. + * @return EmailAddress|null + */ + public function getSecondaryEmailAddress(): ?EmailAddress { + $val = $this->getBackingStore()->get('secondaryEmailAddress'); + if (is_null($val) || $val instanceof EmailAddress) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'secondaryEmailAddress'"); + } + /** * Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the contact. Read-only. Nullable. * @return array|null @@ -514,6 +541,18 @@ public function getSurname(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'surname'"); } + /** + * Gets the tertiaryEmailAddress property value. The contact's tertiary email address. + * @return EmailAddress|null + */ + public function getTertiaryEmailAddress(): ?EmailAddress { + $val = $this->getBackingStore()->get('tertiaryEmailAddress'); + if (is_null($val) || $val instanceof EmailAddress) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'tertiaryEmailAddress'"); + } + /** * Gets the title property value. The contact's title. * @return string|null @@ -597,10 +636,13 @@ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('parentFolderId', $this->getParentFolderId()); $writer->writeStringValue('personalNotes', $this->getPersonalNotes()); $writer->writeObjectValue('photo', $this->getPhoto()); + $writer->writeObjectValue('primaryEmailAddress', $this->getPrimaryEmailAddress()); $writer->writeStringValue('profession', $this->getProfession()); + $writer->writeObjectValue('secondaryEmailAddress', $this->getSecondaryEmailAddress()); $writer->writeCollectionOfObjectValues('singleValueExtendedProperties', $this->getSingleValueExtendedProperties()); $writer->writeStringValue('spouseName', $this->getSpouseName()); $writer->writeStringValue('surname', $this->getSurname()); + $writer->writeObjectValue('tertiaryEmailAddress', $this->getTertiaryEmailAddress()); $writer->writeStringValue('title', $this->getTitle()); $writer->writeStringValue('yomiCompanyName', $this->getYomiCompanyName()); $writer->writeStringValue('yomiGivenName', $this->getYomiGivenName()); @@ -839,6 +881,14 @@ public function setPhoto(?ProfilePhoto $value): void { $this->getBackingStore()->set('photo', $value); } + /** + * Sets the primaryEmailAddress property value. The contact's primary email address. + * @param EmailAddress|null $value Value to set for the primaryEmailAddress property. + */ + public function setPrimaryEmailAddress(?EmailAddress $value): void { + $this->getBackingStore()->set('primaryEmailAddress', $value); + } + /** * Sets the profession property value. The contact's profession. * @param string|null $value Value to set for the profession property. @@ -847,6 +897,14 @@ public function setProfession(?string $value): void { $this->getBackingStore()->set('profession', $value); } + /** + * Sets the secondaryEmailAddress property value. The contact's secondary email address. + * @param EmailAddress|null $value Value to set for the secondaryEmailAddress property. + */ + public function setSecondaryEmailAddress(?EmailAddress $value): void { + $this->getBackingStore()->set('secondaryEmailAddress', $value); + } + /** * Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the contact. Read-only. Nullable. * @param array|null $value Value to set for the singleValueExtendedProperties property. @@ -871,6 +929,14 @@ public function setSurname(?string $value): void { $this->getBackingStore()->set('surname', $value); } + /** + * Sets the tertiaryEmailAddress property value. The contact's tertiary email address. + * @param EmailAddress|null $value Value to set for the tertiaryEmailAddress property. + */ + public function setTertiaryEmailAddress(?EmailAddress $value): void { + $this->getBackingStore()->set('tertiaryEmailAddress', $value); + } + /** * Sets the title property value. The contact's title. * @param string|null $value Value to set for the title property. diff --git a/src/Generated/Models/DirectoryObject.php b/src/Generated/Models/DirectoryObject.php index 0cc4f1c8553..1cacde08ae8 100644 --- a/src/Generated/Models/DirectoryObject.php +++ b/src/Generated/Models/DirectoryObject.php @@ -28,6 +28,10 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Direc switch ($mappingValue) { case '#microsoft.graph.activityBasedTimeoutPolicy': return new ActivityBasedTimeoutPolicy(); case '#microsoft.graph.administrativeUnit': return new AdministrativeUnit(); + case '#microsoft.graph.agentIdentity': return new AgentIdentity(); + case '#microsoft.graph.agentIdentityBlueprint': return new AgentIdentityBlueprint(); + case '#microsoft.graph.agentIdentityBlueprintPrincipal': return new AgentIdentityBlueprintPrincipal(); + case '#microsoft.graph.agentUser': return new AgentUser(); case '#microsoft.graph.application': return new Application(); case '#microsoft.graph.appManagementPolicy': return new AppManagementPolicy(); case '#microsoft.graph.appRoleAssignment': return new AppRoleAssignment(); diff --git a/src/Generated/Models/DlpAction.php b/src/Generated/Models/DlpAction.php index 44f5dfa05d1..e4c559ff149 100644 --- a/src/Generated/Models/DlpAction.php +++ b/src/Generated/Models/DlpAction.php @@ -17,4 +17,5 @@ class DlpAction extends Enum { public const S_P_RUNTIME_ACCESS_CONTROL = "sPRuntimeAccessControl"; public const S_P_SHARING_NOTIFY_USER = "sPSharingNotifyUser"; public const S_P_SHARING_GENERATE_INCIDENT_REPORT = "sPSharingGenerateIncidentReport"; + public const RESTRICT_WEB_GROUNDING = "restrictWebGrounding"; } diff --git a/src/Generated/Models/Entity.php b/src/Generated/Models/Entity.php index 41342a07cdb..367132cae7a 100644 --- a/src/Generated/Models/Entity.php +++ b/src/Generated/Models/Entity.php @@ -125,11 +125,14 @@ use Microsoft\Graph\Generated\Models\Security\WhoisBaseRecord; use Microsoft\Graph\Generated\Models\Security\WhoisHistoryRecord; use Microsoft\Graph\Generated\Models\Security\WhoisRecord; +use Microsoft\Graph\Generated\Models\TeamsAdministration\NumberAssignment; use Microsoft\Graph\Generated\Models\TeamsAdministration\PolicyIdentifierDetail; use Microsoft\Graph\Generated\Models\TeamsAdministration\TeamsAdminRoot; use Microsoft\Graph\Generated\Models\TeamsAdministration\TeamsPolicyAssignment; use Microsoft\Graph\Generated\Models\TeamsAdministration\TeamsPolicyUserAssignment; use Microsoft\Graph\Generated\Models\TeamsAdministration\TeamsUserConfiguration; +use Microsoft\Graph\Generated\Models\TeamsAdministration\TelephoneNumberLongRunningOperation; +use Microsoft\Graph\Generated\Models\TeamsAdministration\TelephoneNumberManagementRoot; use Microsoft\Graph\Generated\Models\TermStore\Group; use Microsoft\Graph\Generated\Models\TermStore\Relation; use Microsoft\Graph\Generated\Models\TermStore\Set; @@ -203,6 +206,10 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.administrativeUnit': return new AdministrativeUnit(); case '#microsoft.graph.adminMicrosoft365Apps': return new AdminMicrosoft365Apps(); case '#microsoft.graph.adminReportSettings': return new AdminReportSettings(); + case '#microsoft.graph.agentIdentity': return new AgentIdentity(); + case '#microsoft.graph.agentIdentityBlueprint': return new AgentIdentityBlueprint(); + case '#microsoft.graph.agentIdentityBlueprintPrincipal': return new AgentIdentityBlueprintPrincipal(); + case '#microsoft.graph.agentUser': return new AgentUser(); case '#microsoft.graph.agreement': return new Agreement(); case '#microsoft.graph.agreementAcceptance': return new AgreementAcceptance(); case '#microsoft.graph.agreementFile': return new AgreementFile(); @@ -807,6 +814,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.privilegedAccessScheduleRequest': return new PrivilegedAccessScheduleRequest(); case '#microsoft.graph.profileCardProperty': return new ProfileCardProperty(); case '#microsoft.graph.profilePhoto': return new ProfilePhoto(); + case '#microsoft.graph.profileSource': return new ProfileSource(); case '#microsoft.graph.pronounsSettings': return new PronounsSettings(); case '#microsoft.graph.protectionPolicyBase': return new ProtectionPolicyBase(); case '#microsoft.graph.protectionRuleBase': return new ProtectionRuleBase(); @@ -814,6 +822,10 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.protectionUnitsBulkJobBase': return new ProtectionUnitsBulkJobBase(); case '#microsoft.graph.provisioningObjectSummary': return new ProvisioningObjectSummary(); case '#microsoft.graph.publicKeyInfrastructureRoot': return new PublicKeyInfrastructureRoot(); + case '#microsoft.graph.qrCode': return new QrCode(); + case '#microsoft.graph.qrCodePinAuthenticationMethod': return new QrCodePinAuthenticationMethod(); + case '#microsoft.graph.qrCodePinAuthenticationMethodConfiguration': return new QrCodePinAuthenticationMethodConfiguration(); + case '#microsoft.graph.qrPin': return new QrPin(); case '#microsoft.graph.rbacApplication': return new RbacApplication(); case '#microsoft.graph.readingAssignmentSubmission': return new ReadingAssignmentSubmission(); case '#microsoft.graph.readingCoachPassage': return new ReadingCoachPassage(); @@ -961,6 +973,8 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.sharedPCConfiguration': return new SharedPCConfiguration(); case '#microsoft.graph.sharedWithChannelTeamInfo': return new SharedWithChannelTeamInfo(); case '#microsoft.graph.sharepoint': return new Sharepoint(); + case '#microsoft.graph.sharePointGroup': return new SharePointGroup(); + case '#microsoft.graph.sharePointGroupMember': return new SharePointGroupMember(); case '#microsoft.graph.sharePointMigrationEvent': return new SharePointMigrationEvent(); case '#microsoft.graph.sharePointMigrationFinishManifestFileUploadEvent': return new SharePointMigrationFinishManifestFileUploadEvent(); case '#microsoft.graph.sharePointMigrationJob': return new SharePointMigrationJob(); @@ -1019,11 +1033,14 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.taskFileAttachment': return new TaskFileAttachment(); case '#microsoft.graph.team': return new Team(); case '#microsoft.graph.teamInfo': return new TeamInfo(); + case '#microsoft.graph.teamsAdministration.numberAssignment': return new NumberAssignment(); case '#microsoft.graph.teamsAdministration.policyIdentifierDetail': return new PolicyIdentifierDetail(); case '#microsoft.graph.teamsAdministration.teamsAdminRoot': return new TeamsAdminRoot(); case '#microsoft.graph.teamsAdministration.teamsPolicyAssignment': return new TeamsPolicyAssignment(); case '#microsoft.graph.teamsAdministration.teamsPolicyUserAssignment': return new TeamsPolicyUserAssignment(); case '#microsoft.graph.teamsAdministration.teamsUserConfiguration': return new TeamsUserConfiguration(); + case '#microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation': return new TelephoneNumberLongRunningOperation(); + case '#microsoft.graph.teamsAdministration.telephoneNumberManagementRoot': return new TelephoneNumberManagementRoot(); case '#microsoft.graph.teamsApp': return new TeamsApp(); case '#microsoft.graph.teamsAppDefinition': return new TeamsAppDefinition(); case '#microsoft.graph.teamsAppInstallation': return new TeamsAppInstallation(); diff --git a/src/Generated/Models/EnumeratedScopes.php b/src/Generated/Models/EnumeratedScopes.php new file mode 100644 index 00000000000..4d4a1896ec8 --- /dev/null +++ b/src/Generated/Models/EnumeratedScopes.php @@ -0,0 +1,78 @@ +setOdataType('#microsoft.graph.enumeratedScopes'); + } + + /** + * 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 EnumeratedScopes + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): EnumeratedScopes { + return new EnumeratedScopes(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'scopes' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setScopes($val); + }, + ]); + } + + /** + * Gets the scopes property value. Required. Nonempty list of delegated permission scope identifiers published by the resource application to inherit. Entries must be unique and must not include any globally blocked scopes. + * @return array|null + */ + public function getScopes(): ?array { + $val = $this->getBackingStore()->get('scopes'); + 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 'scopes'"); + } + + /** + * 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('scopes', $this->getScopes()); + } + + /** + * Sets the scopes property value. Required. Nonempty list of delegated permission scope identifiers published by the resource application to inherit. Entries must be unique and must not include any globally blocked scopes. + * @param array|null $value Value to set for the scopes property. + */ + public function setScopes(?array $value): void { + $this->getBackingStore()->set('scopes', $value); + } + +} diff --git a/src/Generated/Models/ErrorCorrectionLevel.php b/src/Generated/Models/ErrorCorrectionLevel.php new file mode 100644 index 00000000000..dc6a05407ac --- /dev/null +++ b/src/Generated/Models/ErrorCorrectionLevel.php @@ -0,0 +1,13 @@ +getBackingStore()->get('contentCategory'); + if (is_null($val) || $val instanceof ContentCategory) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'contentCategory'"); + } + /** * Gets the description property value. Description of the connection displayed in the Microsoft 365 admin center. Optional. * @return string|null @@ -84,6 +96,7 @@ public function getFieldDeserializers(): array { 'activitySettings' => fn(ParseNode $n) => $o->setActivitySettings($n->getObjectValue([ActivitySettings::class, 'createFromDiscriminatorValue'])), 'configuration' => fn(ParseNode $n) => $o->setConfiguration($n->getObjectValue([Configuration::class, 'createFromDiscriminatorValue'])), 'connectorId' => fn(ParseNode $n) => $o->setConnectorId($n->getStringValue()), + 'contentCategory' => fn(ParseNode $n) => $o->setContentCategory($n->getEnumValue(ContentCategory::class)), 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), 'groups' => fn(ParseNode $n) => $o->setGroups($n->getCollectionOfObjectValues([ExternalGroup::class, 'createFromDiscriminatorValue'])), 'items' => fn(ParseNode $n) => $o->setItems($n->getCollectionOfObjectValues([ExternalItem::class, 'createFromDiscriminatorValue'])), @@ -194,6 +207,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeObjectValue('activitySettings', $this->getActivitySettings()); $writer->writeObjectValue('configuration', $this->getConfiguration()); $writer->writeStringValue('connectorId', $this->getConnectorId()); + $writer->writeEnumValue('contentCategory', $this->getContentCategory()); $writer->writeStringValue('description', $this->getDescription()); $writer->writeCollectionOfObjectValues('groups', $this->getGroups()); $writer->writeCollectionOfObjectValues('items', $this->getItems()); @@ -227,6 +241,14 @@ public function setConnectorId(?string $value): void { $this->getBackingStore()->set('connectorId', $value); } + /** + * Sets the contentCategory property value. The contentCategory property + * @param ContentCategory|null $value Value to set for the contentCategory property. + */ + public function setContentCategory(?ContentCategory $value): void { + $this->getBackingStore()->set('contentCategory', $value); + } + /** * Sets the description property value. Description of the connection displayed in the Microsoft 365 admin center. Optional. * @param string|null $value Value to set for the description property. diff --git a/src/Generated/Models/ExternalConnectors/Label.php b/src/Generated/Models/ExternalConnectors/Label.php index 5889bff8a3f..f4b9fcdbeca 100644 --- a/src/Generated/Models/ExternalConnectors/Label.php +++ b/src/Generated/Models/ExternalConnectors/Label.php @@ -15,5 +15,43 @@ class Label extends Enum { public const FILE_NAME = "fileName"; public const FILE_EXTENSION = "fileExtension"; public const UNKNOWN_FUTURE_VALUE = "unknownFutureValue"; + public const CONTAINER_NAME = "containerName"; + public const CONTAINER_URL = "containerUrl"; public const ICON_URL = "iconUrl"; + public const ASSIGNED_TO_PEOPLE = "assignedToPeople"; + public const CLOSED_BY = "closedBy"; + public const CLOSED_DATE = "closedDate"; + public const PRIORITY = "priority"; + public const SPRINT_NAME = "sprintName"; + public const TAGS = "tags"; + public const SEVERITY = "severity"; + public const STATE = "state"; + public const DUE_DATE = "dueDate"; + public const ITEM_PARENT_ID = "itemParentId"; + public const ITEM_PATH = "itemPath"; + public const ITEM_TYPE = "itemType"; + public const NUMBER_OF_REACTIONS = "numberOfReactions"; + public const PARENT_URL = "parentUrl"; + public const PRIORITY_NORMALIZED = "priorityNormalized"; + public const REPORTED_BY = "reportedBy"; + public const SECONDARY_ID = "secondaryId"; + public const PERSON_EMAILS = "personEmails"; + public const PERSON_ADDRESSES = "personAddresses"; + public const PERSON_ANNIVERSARIES = "personAnniversaries"; + public const PERSON_NAME = "personName"; + public const PERSON_NOTE = "personNote"; + public const PERSON_PHONES = "personPhones"; + public const PERSON_CURRENT_POSITION = "personCurrentPosition"; + public const PERSON_WEB_ACCOUNTS = "personWebAccounts"; + public const PERSON_WEB_SITE = "personWebSite"; + public const PERSON_SKILLS = "personSkills"; + public const PERSON_PROJECTS = "personProjects"; + public const PERSON_ACCOUNT = "personAccount"; + public const PERSON_AWARDS = "personAwards"; + public const PERSON_CERTIFICATIONS = "personCertifications"; + public const PERSON_ASSISTANTS = "personAssistants"; + public const PERSON_COLLEAGUES = "personColleagues"; + public const PERSON_MANAGER = "personManager"; + public const PERSON_ALTERNATE_CONTACTS = "personAlternateContacts"; + public const PERSON_EMERGENCY_CONTACTS = "personEmergencyContacts"; } diff --git a/src/Generated/Models/ExternalConnectors/Property.php b/src/Generated/Models/ExternalConnectors/Property.php index d677adfe12a..c02f763155b 100644 --- a/src/Generated/Models/ExternalConnectors/Property.php +++ b/src/Generated/Models/ExternalConnectors/Property.php @@ -70,6 +70,18 @@ public function getBackingStore(): BackingStore { return $this->backingStore; } + /** + * Gets the description property value. Specifies a human-readable description that explains the purpose, usage, or guidance related to the property. This property enhances semantic understanding by helping Copilot interpret queries and accurately map them to properties that results in more relevant and precise responses. Optional but we recommend that you use this property for queryable properties. The maximum supported length is 200 characters. + * @return string|null + */ + public function getDescription(): ?string { + $val = $this->getBackingStore()->get('description'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'description'"); + } + /** * The deserialization information for the current model * @return array @@ -85,6 +97,7 @@ public function getFieldDeserializers(): array { /** @var array|null $val */ $this->setAliases($val); }, + 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), 'isQueryable' => fn(ParseNode $n) => $o->setIsQueryable($n->getBooleanValue()), 'isRefinable' => fn(ParseNode $n) => $o->setIsRefinable($n->getBooleanValue()), 'isRetrievable' => fn(ParseNode $n) => $o->setIsRetrievable($n->getBooleanValue()), @@ -145,7 +158,7 @@ public function getIsSearchable(): ?bool { } /** - * Gets the labels property value. Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, iconUrl. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: iconUrl. + * Gets the labels property value. Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional..The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, containerName, containerUrl, iconUrl, assignedTo, dueDate, closedDate, closedBy, reportedBy, sprintName, severity, state, priority, secondaryId, itemParentId, parentUrl, tags, itemType, itemPath, numReactions. Use the Prefer: include-unknown-enum-members request header to retrieve additional values defined in this evolvable enum,For People Connectors you can include : personEmails, personAddresses, personAnniversaries, personName, personNote, personPhones, personCurrentPosition, personWebAccounts, personWebSite, personSkills, personProjects, personAccount, personAwards, personCertifications, personAssistants, personColleagues, personManager, personAlternateContacts, personEmergencyContacts. * @return array